I'm looking for something like this ... but it's not ready yet.
If you?ve ever wondered if it possible to convert a PHP script into an executable program for a specific operating system then you aren?t alone. A number of projects which do just that were announced on the list this week.
BinaryPHP is a tool than can convert a PHP script to C++ source code that can be compiled with a standard C++ compiler. A ?proof of concept? release is available for download at the web site.
John Coggeshall has been working on a Zend module tentatively called PASM, the Php AsseMbler. His web site contains some preliminary information about the project, with a download expected to be available sometime soon.
Link