HHVM or PHP 7 for Drupal 7?

The year 2015 marks a significant milestone for the popular PHP language as it progresses to version 7. Another project, long time in the making is Drupal 8. Drupal 8 will get support for PHP 7 soon enough, but the schedule for support for it in Drupal 7 is still unknown.

For a few years now there has been a viable option for the PHP runtime. This is the HHVM virtual machine from Facebook. It is a credible method for running PHP code, in addition to the separate language known as Hack. PHP 7 improves performance and is in many cases even faster than HHVM. But for Drupal 7 HHVM remains as the best option for performance until the support gets backported from Drupal 8.

PHP 7 improves performance, but also introduces new language features. Some of these are not available in HHVM through PHP, but the Hack language. Hack can be transpiled to PHP, but for projects such as Drupal this is not a viable option. The alternative way is to go forward with PHP compatibility polyfills that enable some features of PHP 7 in HHVM.

Running WordPress on HHVM? Don’t forget to keep it up-to-date!

The average version of HHVM PHP virtual machine only has eight (8) weeks of support. This is not a very long time, so you’ll need to keep a close eye on your version as HHVM is not immune to security issues. Like any software.

Read more about HHVM release cycle and Long Term Support (LTS) releases.

WordPress performance using HTTP/2 and HHVM

WordPress is a stable technology which can not evolve very fast. Thanks to the evolving PHP and web platform we can apply improvements continuously. In 2015 the most talked methods to improve WordPress performance are HTTP/2 and the HHVM runtime.

Read more here: Improve WordPress performance using HTTP/2 and HHVM