pupuk / blog

My New Blog. Record & Share. Focus on PHP, MySQL, Javascript and Golang.
MIT License
9 stars 2 forks source link

PHP 执行过程 AST & Opcache #6

Open pupuk opened 6 years ago

pupuk commented 6 years ago
  1. Scanning(Lexing) ,将PHP代码转换为语言片段(Tokens)
  2. Parsing,将Tokens转换成简单而有意义的表达式
  3. Compilation,将表达式编译成Opocdes
  4. Execution,顺次执行Opcodes,每次一条,opcache在zend vm里执行