I was looking for a way to compile the PHP source code and use it in a PHP script by loading the compiled code. While there is no result, a small attempt to use bcompiler, but it does not compile due to changes in the Zend kernel API, it may be necessary to replace small parts.
Another attempt without success was to use phpc, the recommended version for the compiler is PHP 5.2, so the API no longer supports the changes in 5.4.
source share