HHVM 3.25 Defaults To PHP7
Written by Kay Ewbank   
Wednesday, 28 March 2018

Developers from Facebook have released a new version of HHVM, the Hip Hop Virtual Machine. The PHP support in new release has been changed to default to PHP 7 rather than the PHP 5 of the previous version.



HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP.  It was developed at Facebook to provide a way to convert PHP script to C++ so it could be compiled and run on web servers. HHVM supports Hack and PHP 7. PHP 5 is still available, but unsupported. HHVM uses just-in-time (JIT) compilation to combine good performance with a flexible development environment. 

Hack is a programming language developed by Facebook for HHVM. It is designed to combine the fast development cycle of a dynamically typed language with the discipline provided by static typing. It does this by offering 'instantaneous type checking'. This is achieved by Hack incrementally checking your files as you edit them. The check typically runs in less than 200 milliseconds, so is an acceptable overhead. Facebook has moved its entire codebase across to Hack, and there is an open source version complete with HHVM.

The PHP 7 support in the new version goes beyond it being the default, with more extensive support for PHP 7 features. Visibility modifiers on constants no longer cause a parsing error, though they are still ignored. Several more kinds of expressions are now permitted as callable. The expressions were already understood by the Hack typechecker, but not supported by the runtime. Another PHP 7 compatibility improvement is support for the PHP7 Throwable, Error and Exception hierarchy, including in Hack and in PHP5 mode.

Away from PHP 7, support has been added for the Visual Studio Code Debug Adapter Protocol in addition to hphpd and XDebug. The VS protocol is now the recommended debug interface. Another improvement fixes a CVE security problem that could potentially cause a denial of service issue from the Proxygen handling of invalid HTTP2 settings which can cause the server to spend disproportionate resource. Elsewhere, Hack inout function parameters are now supported, and a number of other improvements have been made to Hack.

More Information


Related Articles

HHVM Improves Type Inference 

Facebook Introduces Hack, A Better PHP 

HHVM, Bash And CoffeeScript

PHP At 20

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, Facebook or Linkedin.


Spatial AI Competition A Winner

When OpenCV launched a Computer Vision contest earlier this year, it expected to award three prizes, totalling $6,000. The competition was so popular that it has now announced six winners who share $1 [ ... ]

STEM Toys That Promote Computational Thinking

Playing with toys and games isn’t just for little kids. There are so many great STEM toys out there that are not only fun but also help kids to develop their computational skills. So whether you’r [ ... ]

More News





or email your comment to: comments@i-programmer.info

Last Updated ( Wednesday, 28 March 2018 )