Home >Backend Development >PHP Problem >What is the PHP code execution process?

What is the PHP code execution process?

藏色散人
藏色散人Original
2020-06-30 11:06:473239browse

The PHP code execution process is: 1. PHP code->Start php and zend engine; 2. Load the registration extension module->Perform lexical and syntactic analysis of the code; 3. Compile it into opcode-> Execute opcode.

What is the PHP code execution process?

PHP code execution process

##PHP code=> Start php and zend engine, load registration Extension module => Perform lexical/grammatical analysis of the code => Compile into opcode (opcache) => Execute opcode

Note: PHP7 has added an abstract syntax tree (AST), which is generated during the syntax analysis stage AST, and then generate the opcode array

For more related knowledge, please visit

PHP Chinese website!

The above is the detailed content of What is the PHP code execution process?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn