Report this

What is the reason for this report?

Php 7 or hhvm? What do you think is better?

Posted on March 14, 2018

is hhvm worth installing or php does the job? I am confused if php 7 is faster or hhvm compiler in front of it?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

At one point HHVM was quite a bit faster then PHP until the release of PHP7. Now they are pretty comparable. In some cases you may see a performance boost and others not so much.

Here are some stats https://hhvm.com/blog/9293/lockdown-results-and-hhvm-performance

Some people use HHVM as their primary compiler and use PHP7 as a fallback. https://www.digitalocean.com/community/questions/how-to-install-and-config-hhvm-with-php7-fpm-fallback-in-nginx

This is my current setup. It really comes down to what workload and task(s) you are trying to achieve.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.