Nuno Lopes, on his way from Portugal to Apple HQ via Oregon, stopped in at Oracle HQ to have a chat and give a sneak preview of a talk he's presenting at http://llvm.org/devmtg/ tomorrow:
The Zend Engine (the PHP VM) interprets bytecode directly without performing any optimization. The phpllvm project provides a JIT compiler for the Zend Engine that is able to compile PHP/Zend bytecode to LLVM IR and then into optimized machine code, which can then be executed by the Zend engine. I'll describe how the JIT compiler hooks in the Zend engine and how the whole process works. I'll also describe possible future work, including a PHP compiler, PHP-specific optimizations, type-inference, etc.
Initially part of a Google Summer of Code project supervised by Nuno, he himself is now working on it. If his Masters thesis doesn't get in the way, we might see some very interesting uses of the work.
Nuno knows his stuff in this area. Next year I really would like to see him talking on this current project or general PHP optimization at a PHP conference.