Explanation of PHP execution process
Source code computers in any language cannot directly execute the commands, and must be converted into machine commands that can be recognized by computers.
The PHP programming language is also a high-level language and requires compilation (explanation)
PHP parsing process:
1. Request source code for lexical parsing and syntax parsing.
Lexical parsing mainly reads, judges, and analyzes words in the source code one by one. If an error occurs during lexical parsing, an error is returned. Compilation error.
Syntax parsing mainly determines whether the syntax structure is correct. For example, whether the process control structure is complete.
Result: the machine code is executable.
2. Execute. during execution, the main task is to perform memory operations. during execution, errors may occur. in this case, the error attribute is incorrectly executed.
Result: pure html code.
Illustration: