The question:
I run Magento 1.9.2.2 and I want to switch to php 7.0.
Is it possible and save to switch to 7.0 with this Magento install?
The Solutions:
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Method 1
Yes, it is possible to migrate 1.9.2.2 from PHP 5.5 to PHP 7. Its not officially supported yet but Inchoo has found the solution to this.
They have developed Magento extension to make Magento compatible with PHP 7.
http://inchoo.net/magento/its-alive/
As of now from Magento 1.9.3.7 PHP 7.0 and 7.1 are officially supported. PHP 7.2 support is not yet official for both Magento 1 and 2.
Thank you
Method 2
Short answer is no, it doesn’t. Magento CE 1.9.2.4 only supports PHP 5.4 and 5.5 officially. And while PHP 5.6 runs it just fine, it saturates log files with multitudes of warning messages.
Long answer is that it’s relatively easy to modify it to run support PHP7. However many extensions are still not PHP7 compatible so you’re largely on your own.
Method 3
Magento has oficially released PHP 7.2 patch for Magento 1 (September 2018), which means inchoo extension is not needed anymore!! if you installed it: Remove this module from your M1 store and use the official patch.
However, you will need to have your store patched. It requires previous security patches to be applied prior to installation. The complete requirements are listed on the download.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0