Hi any body knows how the zend engine compiles php codes. For eg. in java our codes are compiled to byte code after that it converts to machine language. like wise how zend engine compile php codes? Kindly help me.
It's kind of the same idea with PHP :
This compilation, by default, is done each time a PHP script is to be executed -- which takes some CPU.
That is the reason for which you can use some opcode cache (like the APC extension), to store the opcodes in memory -- avoiding the redundant compilation step.
You'll be able to find some interesting informations about those processes in the following presentation by Sebastian Bergmann : PHP Compiler Internals
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With