As a developer I enjoy using the latest and greatest…things. And, as a WordPress developer, I enjoy seeing how I can use the latest and greatest with the content management system I use on a day-to-day basis. Today I moved this very site from using PHP to HHVM. Here’s how.
You may have seen my previous post on how to set up WordPress on Ubuntu running onHHVM. If I’m holding my hands up, I cheated. I started from scratch – from a clean slate. That probably isn’t the situation in which you find yourself. You almost certainly have a site up and running with which you’re pretty happy, but, deep down, you really want to make it… better.
Chances are you have heard about HHVM (you probably wouldn’t be reading this post otherwise), but, just in case, here’s a quote from the main site;
HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.
There are many smarter and wiser people than me who have written posts about the speed benefits of HHVM over PHP. In my own, admittedly, very small statistical analysis, I find HHVM to be a metric shit-tonne faster than PHP. Sorry if I’m dazzling you with scientific terms.