oraoto / pib

PHP in Browser (powered by WebAssembly)
https://oraoto.github.io/pib/
Apache License 2.0
956 stars 112 forks source link

Evaluate opcode directly #6

Open oraoto opened 6 years ago

oraoto commented 6 years ago

Can we utilize zend_execute to evaluate opcode directly?

Some benefits:

  1. Reduce code size for faster load time
  2. Skip lexing and parsing for faster startup time

If possible, we can remove the lexer and parser entirely.

bigwasp commented 6 years ago

Have you seen https://github.com/symisc/PH7 may be this can give some Ideas. It is called PH7 but imho PHP5