It is necessary to upgrade php5 to php7. The reasons are: 1. PHP versions that are too early to be maintained and are not maintained will inevitably have unpatched vulnerabilities. Industries with higher security requirements must upgrade in time; 2. After the upgrade, the server resources used will be reduced; 3. The development speed of developers can be improved.
The operating environment of this tutorial: windows7 system, php7&&php5 version, Dell G3 computer.
Do you want to upgrade php5 to php7?
The suggestion is to upgrade php5 to php7 in order to avoid being affected by subsequent vulnerabilities. Because the 5.x series has stopped maintenance, even bugs will not be fixed.
#Why upgrade to php7?
a. Security requirements
PHP versions that are too early to be maintained will inevitably have unpatched vulnerabilities. Industries with higher security requirements must upgrade in time.
b. Performance improvement (turn on opcache hugepage)
It is said that if the performance is doubled, the server resources used after the upgrade will be reduced, which will indirectly produce economic benefits.
c. Efficiency improvement
The reason why the popular PHP framework is popular is that it actually improves the development speed of developers. Some frameworks do not support lower versions of PHP (such as laravel).
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of Should I upgrade php5 to php7?. For more information, please follow other related articles on the PHP Chinese website!