Authoritative 5.6, 7.0, 7.1, 7.2, 7.3 and 7.4 PHP benchmarks 2020
By Brian Jackson, updated on April 22nd, 2020
Each year, we publish in-depth performance benchmarking tests on various platforms to understand how different versions of PHPs compete with each other. This time again, we have done our best to benchmark six different PHP versions of 22 different platforms/configurations; including WordPress, Drupal, Joomla!, Laravel, Symfony and others. We have also tested popular e-commerce solutions such as WooCommerce, East Digital Downloads, Magento, Grav CMS and October CMS.
Free trial.
We’ve been encouraging WordPress users to use the latest version of the PHP that they support. They are not only safer, but they also provide other performance improvements. And we’re not just talking about WordPress, which is on all platforms. Today we will show you how PHP 7.4 can help us overcome every challenge!
We tested 22 platforms/configurations on six different PHP versions, while #PHP 7.4 won gold medals on 17/17 (5 N/A)?
Click beeping
Situation of the community and PHP in Kinsta
PHP is an open-source server end script and programming language, mainly for Web development. Most of the core WordPress software has been developed in PHP, making it a very important language for WordPress communities. There are many excellent PHP programs that you want to learn about programming languages.
Some may argue that PHP is dead. But, even if developers like to state it, PHP is still more active, faster and better than ever before. According to W3Techs, over 78.9% of all websites using server-end programming languages use PHP.
However, a major problem in the community is that many people are still using old unsupported versions of PHP. According to WordPress, only 38.3% operate on supported versions of PHP (7.2 or higher). This introduces performance and safety issues.
Why? The following are some of the common reasons we usually see:
There is a lack of education in the community about what PHPs are and how they play an important role in WordPress.
The compatibility of plugins and themes running on a more recent version of the PHP.
WordPress trustees were reluctant to introduce the new version because of concerns about problems.
To try to help the community move forward, Kinsta uses the same end-of-life schedule as PHP. This helps ensure that your WordPress website is as fast and secure as possible.
How does Kinsta client confront the ordinary WordPress community? We’re curious ourselves, so we look at some numbers.
PHP version of the website hosted by Kinsta
PHP version of the website hosted by Kinsta
Here’s the summary:
PHP 7.2 is run by 25.8 per cent of the Kindsta WordPress website.
PHP 7.3 is operating on the 68.6 per cent WordPress website in Kinsta.
The PHP 7.4 is operated on the PHP of 4.7% of Kinsta ‘ s WordPress website.
We’re trying to make it happen.<1%。?
We’re proud and excited to find these numbers. That means that the use of PHPs among Kinsta clients is very high — much higher than the average WordPress population.
Of all WordPress sites hosted by Kinsta, up to 73.3% are in PHP 7.3 or more?
Click beeping
PHP Baseline Test 2020
Even though PHP 5.6, 7.0 and 7.1 is no longer formally supported, there are many WordPress sites in operation. So we decided to test all six different versions of the PHP so that you can see how much performance benefits can be derived from a newer version.
For each test, we use the latest version of each platform and benchmark the home page with 15 simultaneous users for a minute. Here is the details of our testing environment.
Computers used: Intel ⁇ Xeon ⁇ CPU (30 CPU, 120 GB RAM, 1TB SSD). This is a “C2 Optimization” computer supported by Google Cloud Platform and operated in an isolated container.
Operating systems: Ubuntu 18.04.3 LTS (GNU / Linux 5.0.0-1026-gcp x 86_64)
Stack: Nginx 1.17.6, MariaDB 10.4.10
PHP version: 5.6, 7.0, 7.1, 7.2, 7.3, 7.4.
Note: In some CMS/Frameworks, we have installed other PHP packages to meet their new requirements or relationships with Composer.
Page Cache: Disable on all configurations and platforms.
OPcache: For WordPress, Joomla and Drupal, we use official Docker images. The rest of us use the same image settings and use the following recommended php.ini settings to enable Opcache, but this opcache.max_accelerated_files value has increased from 4,000 to 50,000.
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=50000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
OPcache enhanced PHP performance by storing pre-compiled scripts bytes in shared memory, thus eliminating the need for PHP to load and resolve scripts on each request.
These tests were carried out by Thoriq Firdaus, a contributor to WordPress and a Web developer in Kinsta.
Tested platforms and configurations
Our tests include the following 22 platforms/configurations. In some cases, due to lack of support for a specific PHP version, we have to test multiple versions. Click one below to jump directly to its test description and results. The data are measured by the number requested per second.
WordPress 5.3
WordPress 5.3 + WooCommerce 3.8.1
WordPress 5.3 + simple digital download 2.9.20
Drupal 8.8.0
Joomla!3.9.13
Magento 2(CE)2.2.10 + 2.3.3
Grave CMS 1.6.19
October CMS 1.0.458
Laravel 5.8.35 + 6.7.0
Symfony 4.4.2 + 5.0.1
CodeIgniter 3.1.11 + 4.0-rc.3
CakePHP 3.8.7 + 4.0.0
PyroCMS 3.7
Pagekit 1.0.17
Plugs CMS 3.7.0
Craft CMS 3.4.0-beta.4
ExpressionEngine 5.3.0
Because the presentation on each platform could change significantly, we decided to test the original performance of a completely new quasi-system.
WordPress 5.3
Of course, the first platform that we tested was one of our favorite: WordPress (we live and breathe CMS every day, which may be a little bit more bias). WordPres’ core is open source software, which you can use to create beautiful websites, blogs or applications. In fact, WordPres accounts for 35.2 per cent of all web sites on the Internet. Yes – More than a third of the websites you visit are probably supported by WordPres.
WordPress CMS
We started with WordPress 5.3, the latest version at the time of writing. We used the new Twenty Twenty theme and conducted a one-minute benchmarking test on the website with 15 co-users.
Tested web site: /hello-world/
Note: The page contains a note, a navigation bar with several menus. The sidebar contains some default WordPress little parts.
Docker mirrors are fromhttps://hub.docker.com/_/wordpress/。
WordPress 5.3 PHP benchmark test
WordPress 5.3 PHP benchmark test
Embedded on your website:
Img src: Kinsta
Baseline results
WordPress 5.3 PHP 5.6 baseline test: 97.71 req/ sec
WordPress 5.3 PHP 7.0 Baseline Test Results: 256.81 req/ sec
WordPress 5.3 PHP 7.1 Baseline Test Results: 256.99 req/ sec
WordPress 5.3 PHP 7.2 Baseline Test Results: 273.07 req/ sec
WordPress 5.3 PHP 7.3 Baseline Test Results: 305.59 req/ sec
WordPress 5.3 PHP 7.4 baseline test results: 313.42 req/ sec?
PHP 7.4 is a winner and has been proven to be faster than PHP 7.3. Moreover, if PHP 7.4 is compared with PHP 5.6, it can handle more than three times the request per second!
Update your PHP with one-click for greater site performance, speed, and security. Try Kinsta for Free.
WordPress 5.3 + WooCommerce 3.5.2
WooCommerce is a fully customizable, open-source ecommerce platform built for WordPress. It’s also by far, one of the most popular ecommerce solutions in the WordPress community, and currently powers over 14% of all ecommerce sites on the internet.
WooCommerce
For this next test, we took WordPress along with WooCommerce installed. We utilized the free Storefront eCommerce theme (2.5.3).
Tested URL: /product/woo-ninja/
Note: The page contains 3 related products, 1 product review/comment, 1 product in “You May Also Like” section, and product in next and previous pagination.
Docker Image is derived from https://hub.docker.com/_/wordpress/.
WordPress 5.3 + WooCommerce PHP benchmark test
WordPress 5.3 + WooCommerce PHP Benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
WordPress 5.3 + WooCommerce 3.8.1 PHP 5.6 benchmark results: 49.29 req/sec
WordPress 5.3 + WooCommerce 3.8.1 PHP 7.0 benchmark results: 117.35 req/sec
WordPress 5.3 + WooCommerce 3.8.1 PHP 7.1 benchmark results: 117.52 req/sec
WordPress 5.3 + WooCommerce 3.8.1 PHP 7.2 benchmark results: 125.85 req/sec
WordPress 5.3 + WooCommerce 3.8.1 PHP 7.3 benchmark results: 141.68 req/sec
WordPress 5.3 + WooCommerce 3.8.1 PHP 7.4 benchmark results: 146.07 req/sec ?
When running WooCommerce, PHP 7.4 beat out PHP 7.3 by a small margin.
WordPress 5.3 + Easy Digital Downloads 2.9.20
The Easy Digital Downloads (EDD), created by Pippin Williamson, is a free WordPress e-commerce plugin dedicated to helping creators and developers sell digital products.
Easy number downloads
After learning about WooCommerce’s performance, we then installed WordPress with East Digital Downloads. We used free themes (1.0.7).
Tested web site: /downloads/side-hustle/
Note: This page is a single product of EDD, containing images, several paragraph lines, purchase buttons and category links.
Docker mirrors are fromhttps://hub.docker.com/_/wordpress/。
WordPress 5.3 + EASY Digital Download PHP Benchmarks
WordPress 5.3 + EASY Digital Download PHP Benchmarks
Embedded on your website:
Img src: Kinsta
Baseline results
WordPress 5.3 + EDD 2.9.20 PHP 5.6 baseline test results: 136.73 req/ sec
WordPress 5.3 + EDD 2.9.20 PHP 7.0 Baseline Test Results: 323.84 req/ sec
WordPress 5.3 + EDD 2.9.20 PHP 7.1 benchmark results: 326.32 req/sec
WordPress 5.3 + EDD 2.9.20 PHP 7.2 benchmark results: 346.51 req/sec
WordPress 5.3 + EDD 2.9.20 PHP 7.3 benchmark results: 390.85 req/sec
WordPress 5.3 + EDD 2.9.20 PHP 7.4 benchmark results: 400.78 req/sec ?
PHP 7.4 was also the fastest with WordPress and Easy Digital Downloads.
When it comes to WordPress, WooCommerce, and Easy Digital Downloads, PHP 7.4 has proven to be marginally faster across the board!
Info
All benchmark data is measured in requests per second. The more requests the better.
Drupal 8.8.0
Drupal is an open-source CMS popular for its modular system and strong developer community. It was originally launched in 2000 and according to W3Techs, powers 1.7% of all websites with a 3.0% share of the content management system market.
Drupal
For the Drupal benchmark, we utilized the free Umami default theme (8.8.0).
Tested URL: /en/articles/dairy-free-and-delicious-milk-chocolate
Note: Drupal is installed with dummy data “Umami Food Magazine (Experimental)” that comes built-in.
Drupal 8.8 no longer supports PHP 5.6 and isn’t compatible with PHP 7.4 yet (https://www.drupal.org/project/drupal/issues/3086374).
Docker Image is derived from https://hub.docker.com/_/drupal/.
Drupal PHP benchmark test
Drupal PHP benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
Drupal 8.8.0 PHP 5.6 benchmark results: not supported
Drupal 8.8.0 PHP 7.0 benchmark results: 18.47 req/sec
Drupal 8.8.0 PHP 7.1 benchmark results: 18.81 req/sec
Drupal 8.8.0 PHP 7.2 benchmark results: 19.38 req/sec
Drupal 8.8.0 PHP 7.3 benchmark results: 21.56 req/sec ?
Drupal 8.8.0 PHP 7.4 benchmark results: not supported
When running Drupal, PHP 7.3 showed great improvement in performance. It was a much bigger leap than the previous PHP versions.
We grew our traffic 1,187% with WordPress.
We’ll show you how.
Join 20,000+ others who get our weekly newsletter with insider WordPress tips!
SUBSCRIBE NOW
Subscribe to the Kinsta newsletter
Enter your email
Subscribe
I agree to the Terms and Conditions and Privacy Policy
Joomla! 3.9.13
Joomla! is a free and open-source CMS for publishing web content, originally released on August 17, 2005. It’s built on a model–view–controller web application framework and according to W3Techs is used by 2.6% of all websites on the internet.
Joomla!
For the Joomla! benchmark, we utilized the free Protostar (1.0) template which is included in the Joomla! 3.x distribution package.
Tested URL: / (homepage)
Note: Joomla! is installed with “default English (GB) sample data.” It provides basic dummy content on the homepage. The homepage contains a few paragraphs of content, a search input form, and a number of basic widgets on the sidebar.
Docker Image is derived from https://hub.docker.com/_/joomla/.
Joomla!
Joomla! PHP benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
Joomla! 3.9.13 PHP 5.6 baseline test results: 48.40 req / sec
Joomla! 3.9.13 PHP 7.0 Baseline test results: 67.80 req / sec
Joomla! 3.9.13 PHP 7.1 Baseline test results: 67.37 req/ sec
Joomla! 3.9.13 PHP 7.2 Baseline Test Results: 68.53 req/ sec
Joomla! 3.9.13 PHP 7.3 Baseline Test Results: 71.63 req/ sec
Joomla! 3.9.13 PHP 7.4 baseline test results: 76.31 req/ sec?
On Jomla, we can see a slight underperformance. The performance of PHP 5.6 to 7.0+ has improved dramatically. And fast forwards to PHP 7.4, which is undoubtedly Joomla’s winner!
Magento 2(CE)2.2.10 + 2.3.3
Magento is a popular open-source e-commerce platform, developed using PHP. It was launched on 31 March 2008. As of 2018, Magento is now Adobe. According to W3Techs, it supports 0.8 per cent of all Internet sites.
Magento
For the Magento 2 benchmark, we use the free Luma theme. Since 2.2.10 supports PHP 7.2 only, we use two versions. For other tests, we use 2.3.3.
Tested web site: /lifelong-fitness-iv.html
Note: The page cache that generates static HTML pages is disabled. The tested URL is a single product. It contains an image product, a navigation column, breadcrumbs and no comment.
Magento 2 no longer supports PHP 5.6 and is incompatible with PHP 7.4.
http://pubfiles.nexcess.net/magento/ce-packages/
Magento 2 PHP benchmark test
Magento 2 PHP benchmark test
Embedded on your website:
Img src: Kinsta
Baseline results
Magento 2 (CE) 2.2.10 PHP 5.7 baseline test results: not supported
Magento 2 (CE)2.2.10 PHP 7.0 baseline test results: 28.33 req / sec
Magento 2 (CE)2.2.10 PHP 7.1 Baseline Test Results: 28.51 req/ sec
Magento 2 (CE) 2.2.10 PHP 7.2 benchmark results: 29.58 req/sec
Magento 2 (CE) 2.2.10 PHP 7.3 benchmark results: not supported
Magento 2 (CE) 2.2.10 PHP 7.4 benchmark results: not supported
Magento 2 (CE) 2.3.0 PHP 5.6 benchmark results: not supported
Magento 2 (CE) 2.3.0 PHP 7.0 benchmark results: not supported
Magento 2 (CE) 2.3.0 PHP 7.1 benchmark results: 25.33 req/sec
Magento 2 (CE) 2.3.0 PHP 7.2 benchmark results: 27.01 req/sec
Magento 2 (CE) 2.3.0 PHP 7.3 benchmark results: 29.97 req/sec ?
Magento 2 (CE) 2.3.0 PHP 7.4 benchmark results: not supported
Magento 2 PHP benchmarks don’t vary too much. But great news is that the latest version of Magento along with the latest supported PHP version (7.3) is the fastest.
Grave CMS 1.6.19
Grav is an easy-to-use but powerful open source of CMS, which does not require a database.
Grave CMS
For the Grav CMS benchmark, we use a free Clean Blog frame package.
Tested Website: /home/the-urban-jungle
Grav CMS no longer supports PHP 5.6 and 7.0.
Note: The content is a simple single-bar blog post, with no sidebar. Core GravCMS cache is disabled.
Grav CMS PHP baseline
Grav CMS PHP baseline
Embedded on your website:
Img src: Kinsta
Baseline results
Grav CMS 1.6.19 PHP 5.6 baseline test results: not supported
Grav CMS 1.6.19 PHP 7.0 baseline test results: not supported
Grav CMS 1.6.19 PHP 7.1 Baseline test results: 62.25 req/ sec
Grav CMS 1.6.19 PHP 7.2 Baseline Test Results: 64.69 req/ sec
Grav CMS 1.6.19 PHP 7.3 Baseline Test Results: 69.07 req/ sec
Grav CMS 1.6.19 PHP 7.4 benchmark results: 75.04 req/sec ?
We can see with Grav CMS that the latest version of PHP 7.4 is the winner.
It’s also nice to see these smaller content management systems dropping support for older versions of PHP. 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 compatibility issues.
October CMS 1.0.458
October CMS is a free, open-source, self-hosted and modular CMS platform based on the Laravel PHP Framework. It was originally released on May 15, 2014.
October CMS
For the October CMS benchmark, we utilized the free Clean Blog theme.
Tested URL: /blog/post/first-blog-post
October CMS no longer supports PHP 5.6 and isn’t compatible with PHP 7.4 yet (https://github.com/octobercms/october/issues/4381).
October CMS PHP baseline test
October CMS PHP benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
October CMS 1.0.458 PHP 5.6 benchmark results: not supported
October CMS 1.0.458 PHP 7.0 benchmark results: 44.83 req/sec
October CMS 1.0.458 PHP 7.1 benchmark results: 45.21 req/sec
October CMS 1.0.458 PHP 7.2 benchmark results: 46.71 req/sec
October CMS 1.0.458 PHP 7.3 benchmark results: 49.26 req/sec ?
October CMS 1.0.458 PHP 7.4 benchmark results: not supported
PHP 7.3 is the winner, if only by a slight margin. PHP 7.4 once it’s supported will most likely show improvements as well.
Laravel 5.8.35 + 6.7.0
Laravel is a very popular open source PHP framework for the development of Web applications. It was created by Taylor Otwell and released in June 2011.
Laravel logo
For the Laravel benchmark test, we use a common HTML theme.
Tested web site: (/head page)
The post contains the title, author’s name and main contents. The database contains a table entitled “posts”. This table contains six columns entitled “Post_title”, “Post_content”, “post_author”, “created_at” and “upted_at”.
The tested URL is connected to the database and shows all the posts on the table. In addition, the Laravel application contains a route and a controller to display these contents.
Laravel 5.8.35 no longer supports PHP 5.6 or PHP 7.0. Laravel 6.7.0 no longer supports PHP 5.6, 7.0 or 7.1.
Laravel PHP benchmark test
Laravel PHP benchmark test
Embedded on your website:
Img src: Kinsta
Baseline results
Laravel 5.8.35 PHP 5.6 baseline test results: not supported
Laravel 5.8.35 PHP 7.0 baseline test results: not supported
Paravel 5.8.35 PHP 7.1 Baseline Test Results: 380.52 req/ sec
Paravel 5.8.35 PHP 7.2 Baseline test results: 382.80 req/ sec
Paravel 5.8.35 PHP 7.3 Baseline Test Results: 400.22 req/ sec
Paravel 5.8.35 PHP 7.4 Baseline Test Results: 402.39 req/ sec?
Paravel 6.7.0 PHP 5.6 baseline test results: not supported
Paravel 6.7.0 PHP 7.0 baseline test results: not supported
Paravel 6.7.0 PHP 7.1 Baseline test results: not supported
Paravel 6.7.0 PHP 7.2 Baseline Test Results: 383.21 req/ sec
Paravel 6.7.0 PHP 7.3 Baseline Test Results: 392.74 req / sec
Paravel 6.7.0 PHP 7.4 Baseline Test Results: 394.96 req / sec
In both versions, PHP 7.4 is a clear winner. But interestingly, Laravel 5.8.35 with PHP 7.4 appears to be faster than Laravel 6.7.0.
Symfony 4.4.2 + 5.0.1
Symfony is a reusable PHP component and a PHP framework for the construction of Web application, API, Microservices and Web Services. It was released on 22 October 2005.
Symfony
For the Symfony benchmark, we use the Symfony demonstration with MySQL (defaultly SQLite).
Tested web site: /en/blog/posts/hello-world
The post contains the title, date, author ‘ s name, two labels and five comments.
Symfony 4.4.2 no longer supports PHP 5.6 or PHP 7.0. Symfony 5.1 no longer supports PHP 5.6, 7.0 or 7.1.
Symfony PHP benchmark
Symfony PHP benchmark
Embedded on your website:
Img src: Kinsta
Baseline results
Symfony 4.4.2 PHP 5.6 baseline test results: not supported
Symfony 4.4.2 PHP 7.0 baseline test results: not supported
Symfony 4.4.2 PHP 7.1 Baseline test results: 295.84 req/ sec
Symfony 4.4.2 PHP 7.2 Baseline Test Results: 309.26 req/ sec
Symfony 4.4.2 PHP 7.3 Baseline Test Results: 327.61 req/ sec
Symfony 4.4.2 PHP 7.4 baseline test results: 338.18 req/ sec?
Symfony 5.1 PHP 5.6 baseline test results: not supported
Symfony 5.0.1 PHP 7.0 baseline test results: not supported
Symfony 5.0.1 PHP 7.1 baseline test results: not supported
Symfony 5.4.1 PHP 7.2 baseline test results: 229.09 req / sec
Symfony 5.0.1 PHP 7.3 Baseline Test Results: 239.96 req / sec
Symfony 5.1 PHP 7.4 Baseline Test Results: 252.22 req / sec
We can see that Symfony version 4.4.2 and PHP 7.4 are the fastest.
The PHP is updated with a single key to improve site performance, speed and safety.
CodeIgniter 3.1.11 + 4.0-rc.3
CodeIgniter is a powerful PHP framework with very small land space built for developers who need simple and elegant toolboxes to create fully functional Web applications.
CodeIgniter logo
Tested web site: (/head page)
Note: The post contains the title, the author’s name and main content. The database contains a table of “post_title”, which contains six columns entitled “Post_content”, “post_author”, “created_at” and “upted_at”.
The tested URL is connected to the database and shows all the posts on the table. In addition, the CodeIgniter application contains a route and a controller to display these contents.
CodeIgniter 4.0-rc.3 does not support PHP 5.6, 7.0 or 7.1.
CodeIgniter PHP benchmark test
CodeIgniter PHP benchmark test
Embedded on your website:
Img src: Kinsta
Baseline results
CodeIgniter 3.1.11 PHP 5.6 baseline test results: 292.81 req/ sec
CodeIgniter 3.1.11 PHP 7.0 baseline test results: 358.40 req / sec
CodeIgniter 3.1.11 PHP 7.1 Baseline test results: 369.93 req/ sec
CodeIgniter 3.1.11 PHP 7.2 baseline test results: 383.24 req/ sec
CodeIgniter 3.1.11 PHP 7.3 Baseline test results: 392.28 req/ sec
CodeIgniter 3.1.11 PHP 7.4 benchmark results: 394.96 req/sec ?
CodeIgniter 4.0-rc.3 PHP 5.6 benchmark results: not supported
CodeIgniter 4.0-rc.3 PHP 7.0 benchmark results: not supported
CodeIgniter 4.0-rc.3 PHP 7.1 benchmark results: not supported
CodeIgniter 4.0-rc.3 PHP 7.2 benchmark results: 319.68 req/sec
CodeIgniter 4.0-rc.3 PHP 7.3 benchmark results: 322.90 req/sec
CodeIgniter 4.0-rc.3 PHP 7.4 benchmark results: 333.08 req/sec
As with Laravel and Symfony, PHP 7.4 was the fastest when running CodeIgniter. What was interesting is that CodeIgniter 3.1.11 was significantly faster than 4.0-rc.3. However, bear in mind that it is a release candidate.
CakePHP 3.8.7 + 4.0.0
CakePHP is an open-source web, rapid development framework that makes building web applications simpler, faster and require less code. It was released in April 2005.
CakePHP logo
Tested web site: (/head page)
Note: The post contains the title, the author’s name and main content. The database contains a table of “post_title”, which contains six columns entitled “Post_content”, “post_author”, “created_at” and “upted_at”.
The tested URL is connected to the database and shows all the posts on the table. In addition, the CodeIgniter application contains a route and a controller to display these contents.
CakePHP 4.0.0 does not support PHP 5.6, 7.0 or 7.1.
CakePHP baseline
CakePHP baseline
Embedded on your website:
Img src: Kinsta
Baseline results
CakePHP 3.8.7 PHP 5.6 Baseline Test Results: 134.09 req/ sec
CakePHP 3.8.7 PHP 7.0 Baseline test results: 254.58 req / sec
CakePHP 3.8.7 PHP 7.1 Baseline test results: 267.29 req/ sec
CakePHP 3.8.7 PHP 7.2 Baseline test results: 270.94 req/ sec
CakePHP 3.8.7 PHP 7.3 Baseline Test Results: 290.25 req/ sec
CakePHP 3.8.7 PHP 7.4 Baseline Test Results: 294.06 req/ sec?
CakePHP 4.0.0 PHP 5.6 baseline test results: not supported
CakePHP 4.0.0 PHP 7.0 baseline test results: not supported
CakePHP 4.0.0 PHP 7.1 baseline test results: not supported
CakePHP 4.0.0 PHP 7.2 Baseline test results: 245.49 req/ sec
CakePHP 4.0.0 PHP 7.3 Baseline Test Results: 260.84 req/ sec
CakePHP 4.0.0 PHP 7.4 Baseline Test Results: 259.58 req/ sec
For CakePHP, version 3.8.7 of run PHP 7.4 becomes the winner.
PyroCMS 3.7
PyroCMS is an open-source code that essentially extends to Laravel, which allows you to build a website and application on the frame more quickly.
High temperature CMS
For the PyroCMS benchmarking test, we use free introductory themes.
Tested address: /posts/welcome-to-pyrocms
PyroCMS 3.7 does not support PHP 5.6 or 7.0.
Note: We encountered an error when running on PHP 7.4. Most likely because it isn’t supported yet. Therefore, we weren’t able to include it in the benchmarks.
PyroCMS PHP baseline
PyroCMS PHP benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
PyroCMS 3.5.3 PHP 5.6 benchmark results: not supported
PyroCMS 3.5.3 PHP 7.0 benchmark results: not supported
PyroCMS 3.5.3 PHP 7.1 benchmark results: 91.45 req/sec
PyroCMS 3.5.3 PHP 7.2 benchmark results: 94.77 req/sec
PyroCMS 3.5.3 PHP 7.3 benchmark results: 103.35 req/sec ?
PyroCMS 3.5.3 PHP 7.4 benchmark results: not supported
Due to the fact that PHP 7.4 isn’t working yet with PyroCMS, PHP 7.3 won the tests here by a small margin.
Pagekit 1.0.17
Pagekit is an open-source modular and lightweight CMS founded by YOOtheme. It gives you the tools to create beautiful websites. It was released in the Spring of 2016.
Page Package
For the Pagekit benchmark, we used the free One theme (default Pagekit theme).
Tested URL: /blog/1
Pagekit PHP benchmark test
Pagekit PHP benchmarks
Embed on your site:
Img src: Kinsta
Benchmark Results
Pagekit 1.0.17 PHP 5.6 benchmark results: 249.48 req/sec
Pagekit 1.0.17 PHP 7.0 benchmark results: 401.77 req/sec
Pagekit 1.0.17 PHP 7.1 benchmark results: 406.99 req/sec
Pagekit 1.0.17 PHP 7.2 benchmark results: 419.56 req/sec
Pagekit 1.0.17 PHP 7.3 benchmark results: 431.21 req/sec
Pagekit 1.0.17 PHP 7.4 benchmark results: 438.39 req/sec ?
PHP 7.4 took the gold when testing it with Pagekit.
Bolt CMS 3.7.0
Bolt CMS, or Bolt, is an open-source content management tool that seeks to be as simple and clear as possible. It is based on the Silex and Symfony components, using Twig and SQLite, MySQL or PostgreSQL.
Plug CMS.
For the Bolt CMS benchmark test, we use the Bolt Base 2018 theme free of charge.
Tested site: /entry/hello-world
Note: The contents generated by the built-in virtual content generator.
Bolt CMS PHP benchmark test
Bolt CMS PHP benchmark test
Embedded on your website:
Img src: Kinsta
Baseline results
Bolt CMS 3.7.0 PHP 5.6 baseline test results: 50.91 req/ sec
Bolt CMS 3.7.0 PHP 7.0 baseline test results: 132.49 req/ sec
Bolt CMS 3.7.0 PHP 7.1 baseline test results: 131.55 req/ sec
Bolt CMS 3.7.0 PHP 7.2 baseline test results: 139.02 req/ sec
Bolt CMS 3.7.0 PHP 7.3 Baseline Test Results: 147.03 req/ sec
Bolt CMS 3.7.0 PHP 7.4 baseline test results: 162.77 req/ sec?
When testing using Bolt CMS, PHP 7.4 won the gold medal. It is also surprising to see improvements in performance since PHP 5.6.
Craft CMS 3.4.0-beta.4
Craft CMS is a focused content management system for developers, designers and Web professionals that integrates flexibility, robust functionality and client accessibility.
Process CMS
Tested web site: /news/barrel-aged-digital-natives
Craft CMS does not support PHP 5.6.
Usehttps://github.com/craftcms/demo测试了演示应用
Craft CMS PHP baseline
Craft CMS PHP baseline
Embedded on your website:
Img src: Kinsta
Baseline results
Craft CMS 3.4.0-beta.4 PHP 5.6 baseline test results: not supported
Craft CMS 3.4.0-beta.4 PHP 7.0 baseline test results: 140.81 req/ sec
Craft CMS 3.4.0-beta.4 PHP 7.1 baseline test results: 145.75 req/ sec
Craft CMS 3.4.0-beta.4 PHP 7.2 baseline test results: 151.15 req/ sec
Craft CMS 3.4.0-beta.4 PHP 7.3 Baseline test results: 163.95 req/ sec
Craft CMS 3.4.0-beta.4 PHP 7.4 baseline test results: 169.11 req/ sec?
PHP 7.4 was given gold medals for testing with CMS.
ExpressionEngine 5.3.0
ExpressionEngine is a flexible, functional content management platform that allows thousands of individuals and organizations around the world to easily manage their websites.
Expression Engine
For the ExpressionEngine benchmark, we use default themes.
Tested site: /blog/entry/sub-old-entry
ExpressEngine does not support PHP 5.6.
Note: The page contains a sidebar with three small components (search, category list and RSS feed link). The page also contains the breadcrumb navigation.
ExpressionEngine PHP baseline
ExpressionEngine PHP baseline
Embedded on your website:
Img src: Kinsta
Baseline results
ExpressionEngine 5.3.0 PHP 5.6 baseline test results: not supported
ExpressionEngine 5.3.0 PHP 7.0 baseline test results: 101.32 req / sec
ExpressionEngine 5.3.0 PHP 7.1 baseline test results: 103.54 req/ sec
Results of the ExpressionEngine 5.3.0 PHP 7.2 baseline test: 107.79 req/ sec
ExpressionEngine 5.3.0 PHP 7.3 Baseline Test Results: 108.35 req/ sec
ExpressionEngine 5.3.0 PHP 7.4 baseline test results: 110.56 req/ sec?
PHP 7.4 won the gold medal when testing ExpressionEngine.
Update to PHP 7.4 in Kinsta
If the results do not convince you, we are not sure what will happen! It is a good reminder. If you are a Kinsta client, PHP 7.2, 7.3 and 7.4 can be used. If you want to see performance improvements, you can easily change it to a newer version by clicking on MyKinsta dashboard.
Change to PHP 7.4
Change to PHP 7.4
If you are concerned that it is not compatible with a third-party plugin (which may happen), this is why we have temporary sites.
Summarized from baseline results
It is clear from the tests above that PHP 7.4 is in the lead for all platforms.
We tested 22 platforms/configurations on six different PHP versions, and #PHP 7.4 won a big win on 17/17 (5 N/A)?
Click beeping
Of the 22 configurations tested above, PHP 7.4 is the fastest of 17 engines. Not only is it not a winner because Drupal, Magento 2, October CMS, PyroCMS has not fully supported PHP 7.4 or there are compatibility problems.
For WordPress, PHP 7.4 is the fastest of all tests (WordPress site 5.3, WooCommerce and East Digital Downloads).
In many benchmark tests, you can easily find that every new version of the PHP released improves performance. That is why testing your website, plugins, etc. and maintaining regular upgrade plans are so important. Your visitors and clients will thank you because they expect speed!
We haven’t even tested preloading, which is the new feature introduced in PHP 7.4. This means that 7.4 may be even faster.
If your hosting service provider does not provide a more recent version of the PHP, perhaps you should consider moving.
For WordPress users, in addition to being upgraded to the latest PHP version, many other technologies have been collected that will help you improve your website performance further.
We’re very excited about PHP 7.4, and I hope you do. We would like to hear your thoughts on the benchmark test or even your experience with upgrading it. Put them in the commentary.
If you like this article, you will enjoy the WordPress hosting platform for Kinsta. Speed up your website and get 24/7 support from our experienced WordPress team. We focus on automatic expansion, performance and safety based on Google Cloud’s infrastructure. Let’s show you that Kinsta is different!
Zero SourceView
————————————————
Copyright Declaration: This is an original article by the CEO of the “lvwuwei” and follows CC 4.0 BY-SA copyright agreement. Please copy with a link to the original language and this statement.
Original link:https://blog.csdn.net/lvwuwei/article/details/105927019
未经允许不得转载:萌萌Apprentissage » Authoritative PHP 5.6, 7.0, 7.1, 7.2, 7.3 and 7.4 php operating efficiency benchmark tests
linux One Chinese script
Google shell enable enhanced mode 4 nuclear 16G RAM
Tmux use tutorial
Screen's summary
I'm gonna get you a new one, shell.cloud.google on the line.
Linux Memory Clearing