Home>Article>Backend Development> Is the higher the php version, the better?
In fact, I have always had a doubt in my mind. Is the higher the PHP version, the more stable it is? The higher the better?In general, the newer the version, the better. Take wordpress as an example. In the PHP7.0 environment, the speed is about 3 times faster than the previous version.
Currently the highest version of PHP is 7.x, but we generally use php5.3.x, and even quite a few use PHP5 .2.X version. (Recommended learning:PHP video tutorial)
From the perspective of website development, the higher the PHP version, the better. After all, the new version has improved in all aspects, such as PHP7.0. The human function calculation test is more than 3 times faster than 5.
The main reason is that many programs do not support the new PHP version, especially some programs that have not been updated for a long time. They only support the PHP5.2.X series version. In the end Which version to choose depends on what program you use and the corresponding template, rather than blindly pursuing an exorbitant version.
If you want to be compatible with more programs, it is recommended to use PHP5.3.X version. If you want to pursue higher performance, PHP5.6.X or even PHP7.0 series is recommended.
The current wordpress program supports php7.0 very perfectly. However, some templates that have not been updated have many problems under 7.0.
Therefore, it is recommended that partners who use WordPress programs pay special attention to whether the templates and plug-ins they use are compatible when choosing the PHP7.0 version. If it is a commercial template, it is recommended to consult the author and do not blindly upgrade and replace it.
For example, I am using the AMH5.2 commercial version, in which the PHP version can be downloaded and combined by itself. Due to factors such as templates, PHP5.6.19 is used.
So I would like to remind you not to blindly pursue a version that is too high. Configure and choose according to the best PHP environment for your program. The newer the version, there are more bugs at the beginning. In terms of stability, It may also be discounted, as the old version has been tested for a long time after all!
The above is the detailed content of Is the higher the php version, the better?. For more information, please follow other related articles on the PHP Chinese website!