HHVM 3.25 Defaults To PHP7
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

 

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.
hhvm 

More Information

HHVM Site

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, FacebookGoogle+ or Linkedin.

Banner


Interactive Examples On MDN
27/03/2018

If you have visited MDN web docs recently you may have noticed the addition of interactive examples. This is the result of an ongoing project that is now complete for JavaScript and CSS. 



Google Is Using AI To Construct Ads
29/03/2018

Now we know what Google wants AI for - to make more ads. Well it is one of many things, but one we might not have thought of. Adwords users have been getting emails telling them to expect new ads in t [ ... ]


More News

 
 



Comments




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

Last Updated ( Wednesday, 28 March 2018 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.