Home > Backend Development > PHP Tutorial > Is PHP compiled or interpreted?

Is PHP compiled or interpreted?

WBOY
Release: 2023-08-29 20:18:02
forward
1190 people have browsed it

Is PHP compiled or interpreted?

Basically, PHP is interpreted, but PHP is compiled to intermediate bytecode which is then interpreted by the runtime Zend engine.

The PHP compiler is responsible for

  • Converting the code into bytecode that can be used by the runtime engine.
  • Parse functions, names and class names
  • Create symbol table

PHP interpreter

  • Traverse the bytecode line by line and Execution
  • Handling runtime exception

The above is the detailed content of Is PHP compiled or interpreted?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template