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

Is PHP compiled or interpreted?

WBOY
WBOYforward
2023-08-29 20:17:061132browse

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete