Benchmark tests show that Caucho's Java implementation of PHP, Quercus, performs faster than PHP on Apache. Quercus, a Java servlet that runs in Resin or in any other Java app server, uses just-in-time compilation to convert PHP code into optimized Java code, which is then compiled into bytecodes.