Explanation of PHP programming language parsing process

Source: Internet
Author: User
Tags php programming language
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.