Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do compiled PHP scripts exist?

I am wondering if anyone has used or read about PHP scripts compiled as a .so extension for Apache... Thing is I think I remember reading about it somewhere but dont know if such a thing exists.

This looks promising, but incomplete and abandoned: http://phpcompiler.org/

Im interested because i think it could improve performance... Perhaps someone could point out a framework or apache extension that does this.

Thanks!!

like image 461
dabito Avatar asked May 25 '10 20:05

dabito


2 Answers

They do exist. There's HipHop Compiler for PHP by Facebook.
I don't know if it works with Apache, though.
You may want to take a look: http://developers.facebook.com/blog/post/358
Github repository: http://github.com/facebook/hiphop-php

like image 171
Thiago Silveira Avatar answered Sep 20 '22 12:09

Thiago Silveira


If you want to improve the performance of your PHP scripts in this way, you should try something like Zend Accelerator. It keeps the bytecode around so it doesn't have to be recompiled on every request.

like image 37
Byron Whitlock Avatar answered Sep 20 '22 12:09

Byron Whitlock