You cannot just compile c, and your php script is executed in the same way. HPHP does a real compilation, but does not support the whole set of php functions.
Other compilers actually just inject the php interpreter into the binary, so you still won't compile the code.
PHP is not intended to be compiled. Operation code caching is very fast and good enough for 99% of applications. If you have facebook traffic and have already optimized your back end db, compiling may be the only way to improve performance.
PHP is not a thin layer for the std c library.
source
share