I stumbled across something called 'HipHop' from Facebook :
Here is how Sebastian Bergmann describes it :
"HipHop for PHP" is a source code transformer that turns PHP 5.2 code (minus some features) into C++ code that can then be compiled with g++, for instance, to a regular binary.
Since much of the Facebook front-end is written in PHP, they found HipHop necessary to reduce their need for servers.
Here are a couple articles on this :
http://developers.facebook.com/news.php?blog=1&story=358
http://www.devsource.com/c/a/Languages/Facebook-Creates-Compiled-Streaml...
There are 2 Comments
Re: Facebook releases 'HipHop' - a PHP 'compiler'
This should cut their electricity cost by a lot. totally worth it..um..if you are facebook.
Don't even think about using it on your vps though. it'be stupid.
Drupal 7 on HipHop results
Here's a post which indicates running Drupal 7 on HipHop increases performance by a factor of 5-8 versus straight PHP, and twice as fast as a PHP-APC combination.
http://php.webtutor.pl/en/2011/05/17/drupal-hiphop-for-php-vs-apc-benchm...