Question

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

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.