Usually I am very conservative about upgrading in production even partial. But the moto “PHP 7 is not an evolution is a revolution” made me want to try it also in production in just one specific folder that serves few sites. Here are my first two observations about things that are not being said about PHP 7 and someone should take care of them. I hope to write more in future and other folks contribute with solutions / other views / more things someone should keep his mind on while upgrading.
opcache.so in PHP7 ini is still zend_extension and not extension
If you are using ImageMagick think it twice , it is near to impossible to make it work in an environment that run prior versions to PHP7 and very hard to make it work even if you have only PHP7. (Still I haven't make it work)
Fatal errors are still there with a way you couldn't imagine. If you use set_error_handler
to catch errors (in order to throw a proper exception) and differentiate them to fatal or no fatal
ini_get("error_reporting") along with if exists code of the message will not do the work. You have to evaluate the code to figure out if it were in fact a fatal error a warning or something else.
( a small notice , I haven't seen the “extremely” speed difference although OpCache is running and hold memory (this is not problem there is more than enough) but the speed might be around 3% to 5% percent faster comparing to PHP 5.5 without OpCache (I will have more stats on this) , of course I am talking about code that was allready optimized)