Does PHP have a virtual machine like Java?
Another important difference between the Zend Engine and a typical JVM is in the way they execute bytecodes:
Actually, JVM behaviour is more complicated than this. JVMs don't always compile to native code, and when they do, they typically delay JIT compilation until they figure it is worth doing. Prior to that, they execute the bytecodes directly.