Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>PHP is compiled into bytecode, which is then interpreted on top of something resembling a VM. Many other scripting languages follow the same general process, including Perl and Ruby. It's not really a traditional interpreted language like, say, BASIC.</p> <p>There would be no effective speed increase if you attempted to "minify" the source. You would get a major increase by using a <a href="http://pecl.php.net/package/APC" rel="noreferrer">bytecode cache like APC</a>.</p> <p>Facebook introduced a compiler named <a href="http://github.com/facebook/hiphop-php/wiki" rel="noreferrer">HipHop</a> that transforms PHP source into C++ code. Rasmus Lerdorf, one of the big PHP guys did a <a href="http://talks.php.net/show/digg" rel="noreferrer">presentation for Digg earlier this year</a> that covers the performance improvements given by HipHop. In short, it's not too much faster than optimizing code and using a bytecode cache. HipHop is overkill for the majority of users.</p> <p>Facebook also recently unveiled <a href="https://www.facebook.com/note.php?note_id=10150415177928920" rel="noreferrer">HHVM</a>, a new virtual machine based on their work making HipHop. It's still rather new and it's not clear if it will provide a major performance boost to the general public.</p> <p>Just to make sure it's stated expressly, please read <a href="http://talks.php.net/show/digg" rel="noreferrer">that presentation</a> in full. It points out numerous ways to benchmark and profile code and identify bottlenecks using tools like <a href="http://xdebug.org/" rel="noreferrer">xdebug</a> and <a href="http://pecl.php.net/package/xhprof" rel="noreferrer">xhprof</a>, also from Facebook.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload