As well as a range of brand-new features, PHP 7 came with drastically improved performance when compared to PHP 5.6. Zend Technologies, the engine behind PHP, ran performance tests on a variety of PHP applications to compare the performance of PHP 7 vs PHP 5.6. These tests compared requests per second across the two versions of the popular scripting language. This relates to the speed at which code is executed, and how fast queries to the database and server are returned.
Ecommerce platform Magento drives more than 250,000 merchants on the Internet and is the most popular e-commerce platform in the world. As you might expect, Magento runs on PHP.
Again, there are significant performance improvements when running Magento on PHP 7 compared to PHP 5.6. There is a 30% lower memory consumption with Magento on PHP 7, which means that one server can serve over three times as many user requests.
Homepage requests per second are improved by 68% on PHP 7, and catalogue requests per second are improved by 112% when compared to PHP 5.6.
This increased response time will decrease the time it takes for webpages to load. A lower page load time is vital for ecommerce websites, as it’s been shown that 25% of users will abandon their visit if a page takes more than four seconds to load – in an ecommerce environment, a lost visit is as good as a lost sale.