Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will HHVM be able to run PHP7

Tags:

php-7

hhvm

I know that PHP7 has a new compiler that is almost as fast as HHVM, but I am just curious if HHVM will also be able to run PHP7 as well as PHP5.

I can't find any details on this. Everything I find is just a HHVM vs PHP7 Also for that matter can anyone find what versions of PHP5 will run on HHVM.

Thanks

like image 724
ggedde Avatar asked Aug 07 '15 17:08

ggedde


People also ask

Can HHVM run PHP?

DESCRIPTION. hhvm(1) (aka the HipHop Virtual Machine) is an open-source virtual machine designed for executing programs written in Hack and PHP.

Is Hack compatible with PHP?

Hack is mostly backward-compatible with PHP code, although it extends the PHP language with strict typing, new data structures, and a real-time type checking server. That being said, Hack's own developers prefer to call Hack a dialect of PHP and not a new language.

What is PHP HHVM?

HipHop Virtual Machine (HHVM) is an open-source virtual machine based on just-in-time (JIT) compilation that serves as an execution engine for the Hack programming language and used to support PHP execution before the release of HHVM version 4.

How does HHVM work?

HHVM uses Just-In-Time (JIT) compilation to convert PHP code into a type of bytecode. It then converts this bytecode into machine code and optimizes it so that it runs as quickly as possible.


1 Answers

Yes, we intend to support the new PHP7 language features in HHVM. It's on the HHVM team's roadmap for this half. Most of the features, such as the null coalesce operator, are backwards-compatible, so we can just add them. A couple of them have backwards-compatiblity issues, such as uniform variable syntax; the team is still evaluating what we want to do with this. We'd like to find a way to maintain compatibility with both PHP5 and PHP7, probably by making these backwards-compatibility-breaking options selectable via an INI option, or something like that.

like image 117
Josh Watzman Avatar answered Nov 07 '22 07:11

Josh Watzman