magento performance is a recurrent problem for all developers and store owners. but php 7 is coming and you should think about using it very soon, benchmark is amazing!
php community is waiting for it since months and php
7 is now release candidate as i am writing this article. it means that you are already able to test it against all your php applications and report any bug you found. i won’t talk about all the awesome features coming but rather focus on its usage with
magento.
magento is based on its own framework that is also based on the zend framework which make any request using hundreds of php files and lines of code. it has always been a problem and you have probably tried all
the possible improvements such as fpc, magento compilation, php and opcache tweaking, varnish or anything else that would have relieved your magento installation. it is still useful to use these solutions but you can now also consider using php 7 really soon.
i have made some basic benchmarking with php 5.5, php 5.6 and php 7 on a fresh magento 1.9.2.0 installation with sample data installed. results are amazing!
i have made these tests on my own macbook pro from the terminal. hardware don’t really matter here since tests are all ran on a same basis. i have called all the urls of the magento demo store 5 times with curl
requests and for each php version.
here is the result:
show details
a minor incompatibility has to be fixed before using magento with php 7.
you have to modify the file <code>app/code/core/mage/core/model/layout.php</code> on <code>line 555</code>:
modify the line so it looks like this:
<code>$this->getblock($callback[0])->{$callback[1]}();</code>
php 7 is still in release candidate state and should not be used in any production website yet of course. but just be aware of the upcoming releases and go make your own tests. this version is going to revolutionize
php usage and applications. can’t wait testing it with magento 2

原文位址:http://www.bubblecode.net/en/2015/07/24/magento-php-7/
注:1、原作者做這個測試的時候php7還不是正式版,現在php7正式版已經釋出了
2、magento1.9要正常在php7環境跑起來,需要修改mage_core_model_layout類的代碼,不過這個僅僅是保證跑起來,不能保證所有功能細節在php7環境下都正常,需要做更多嚴密的測試,期待magento官方過段時間能提供更新檔包來支援php7
3、附上遷移php5.6到php7指南一份:https://github.com/laruence/migrating-from-php5.6.x-to-php7.0.x