The Definitive PHP 5.6, 7.0, 7.1, 7.2 & HHVM Benchmarks (2018)Each year we try and take a hhvm dive into performance benchmarks across various platforms and see how different versions of PHP and HHVM stack up hhvm each other. Looking for the Spanish version? Not only are they more secure, hhvm they offer additional performance improvements. We now are excited to see PHP 7. We no longer encourage our customers to move to HHVM and also noticed hhvm for it across various platforms was subpar as well.
The Definitive PHP , , , and HHVM Benchmark ()
Each year we try and take a deep dive into performance benchmarks across various platforms and see how different versions of PHP and HHVM stack up against each other.
Looking for the Spanish version? Not only are they more secure, but they offer additional performance improvements. We now are excited to see PHP 7. We no longer encourage our customers to move to HHVM and also noticed support for it across various platforms was subpar as well.
This is great news for developers and end-users alike as it means more of a focus back on PHP and providing faster websites and web services for everyone. For each test, we used the latest version of each platform and benchmarked the home page for a minute with 15 concurrent users. Below are the details of our test environment. The tests were performed by Thoriq Firdaus a WordPress contributor and support engineer here at Kinsta.
PHP stands for Hypertext Preprocessor. It is one of the most popular scripting languages on the web today. It is a system that uses just-in-time JIT compilation to convert PHP code into a machine language to establish a synergy between the PHP code and the underlying hardware that runs it. On some, we had to test multiple versions due to the lack of support for a specific PHP version. Click on one below to skip directly to its test notes and results. The data is measured in requests per second.
The more requests the better. The first platform we tested was, of course, one of our favorites: At its core, WordPress is open-source software you can use to create a beautiful website, blog, or app. Yes — more than one in four websites that you visit are likely powered by WordPress. We used dummy content from wptest. Embed on your site: This is a significant change from our benchmarks in where HHVM was clearly the winner.
PHP for WordPress is also a lot more stable. We have experienced first-hand many issues with HHVM. And if you compare PHP 7. WooCommerce is a fully customizable, open-source eCommerce platform built for WordPress. For this next test, we took WordPress along with WooCommerce installed.
We utilized the free Storefront eCommerce theme. Drupal is an open-source CMS popular for its modular system and strong developer community. It was originally launched in and according to W3Techs, powers 2. For the Drupal benchmark, we utilized the free Bartik 8. But HHVM still leads the pack. According to W3Techs, it powers 1.
For the Magento 2 benchmark, we utilized the free Luma theme. We used two versions due to the fact that 2. We installed it with the sample data and the default theme that comes with it. For the additional tests, we used 2. Magento 2 does not support PHP 7.
Due to the fact that both PHP 7. It is pretty impressive to see the consistent performance gains through each version. Grav is an easy to use, yet powerful, open-source CMS that requires no database.
This is also sometimes referred to as a flat-file CMS. Even though we were able to trick the installer by removing the PHP check, it failed with a error code in the configuration wizard. Although that is one advantage of not being quite as big either. Unfortunately when it comes to WordPress and other platforms with a large portion of the market share, things progress more slowly due to compatiblity issues. Laravel is a very popular open-source PHP framework used to develop web applications.
Tests were run multiple times and averages taken. You can see additional details in this spreadsheet. If you compare Laravel 5. Laravel performs really good with the latest versions of PHP. And again HHVM did not work well and throws a error. PyroCMS is open source and essentially an extension of Laravel which allows you to build websites and applications on the framework faster.
It gives you the tools to create beautiful websites. It was released in the Spring of Bolt CMS, or Bolt , is an open-source content management tool, which strives to be as simple and straightforward as possible.
Anchor is a super-simple, open-source and lightweight blog system, made to let you just write. The results were very close between PHP 7. PrestaShop is a popular and very fast growing open-source eCommerce solution.
It was originally released on July 31, , and according to W3Techs is used by 0. For the PrestaShop benchmark, we used the free Classic Theme. The results were almost too close to call, but PHP 7. Craft CMS is a focused content management system for developers, designers, and web professionals that blends flexibility, power, and ease of use for clients. For the Craft CMS benchmark, we used the free default theme.
Just a friendly reminder. If you are wanting to see performance improvements, you can easily change to PHP 7. If you are worried about it being incompatible with a third-party plugin which can happen , this is exactly why we have staging sites. As you can clearly see from the tests above, PHP 7. We are super excited about PHP 7. Drop them below in the comments. Would be nice to use that so it can be tested with 7. Hey Sascha, Great news about Drupal 8. Thanks for the heads up. Hey Lucian, Great question, but unfortunately Shopify is not self-hosted, therefore there is no way to test benchmarks on it from our end.
And where is Laravel 5. So we made sure to test an older one and a newer one to show differences, as well as changes in PHP engines supported. For the rest we used the same image setup with the OPcache enabled using recommended settings from PHP. Could you provide benchmarks for Shopware? It is used in more new installations than Magento and will soon be the leading eCommerce platform.
Not because I want to see it looking faster, but to see how it performs in a real world situation with those various PHP versions. Hey Andrew, We are probably going to re-run tests for Drupal due to the fact that the most recent version supports PHP 7. By the way the setting opcache. Features Plans Clients Contact Login. Change to PHP 7. This article was written by Mark Gavalda. Mark has many years of experience leading teams in the fields of marketing, web design and development.
As a dev guy he used his WP expertise to collect the know-hows of creating a reliable and customer friendly hosting company to satisfy the increasing demand of clients. He is an urban cyclist and autodidact who never stops learning new skills.
Kinsta is a premium hosting platform optimized specifically for WordPress, created by WordPress professionals. Secure like Fort Knox. Check out our features. Comments Leave A Comment. Sascha Grossenbacher February 27, at Brian Jackson February 27, at Luiz February 27, at 6: Lucian Dev February 28, at 2: Brian Jackson February 28, at 8: George February 28, at 1: Brian Jackson March 16, at Tom March 1, at 1: