How to choose PHP version? Which version should I use? , PHP version
More than 75% of Web sites use PHP as a development language, and wordpress,phpmyadmin and other open source projects are prevalent, bringing a large number of long-tailed users. However, they are generally installed and rarely upgraded. is the current use of PHP statistics.
Surprisingly, the left half of this diagram represents a PHP version that has not been supported. PHP 5.2 was no longer maintained as early as January 2011. That doesn't mean you can't use it, but that means some security updates that you can't follow up on. Some distributions will try to fix some bugs, but your PHP version seems a bit lackluster because you're using outdated technology for 2006.
Where do I start?
No one has chosen PHP version 5.2, but these things have happened, but I am not saying I write this blog to spit out what, not to mention to you some upgrade guide. Usually they are using some 2006 start-up mainframe space, they have a "long-term support" version to avoid the use of newer versions, or they currently do not have the intention to upgrade. Or, the reason is really a lot. However, good things are waiting for you in the new version of PHP.
PHP 5.3 has added a lot of useful OOP features! For example: Anonymous functions, SPL extensions are more than just iterators, and fabulous datetime extensions are already integrated into PHP 5.3. Also joins the extremely important e_deprecated error reporting flag. It will alert you to the features you are using now and will not be available in the next version. If you are already using PHP 5.3, your next upgrade path will be smoother. I do not recommend that you upgrade if you are on a wired program that is running in a low version.
PHP 5.4 is a series of optimizations that provide faster execution efficiency and less memory footprint. The following are the results of the benchmark test.
Whether you use the traits feature, PHP 5.4 improves program performance and reduces hardware costs. Therefore, I recommend that you use open source software when you want to maintain the upgrade.
PHP 5.5 is still under test and is not suitable for production environments. Since PHP 5.3, the risks and changes to the upgrade will be greatly reduced.
Future
To tell the truth, the future belongs to those who use PHP5.4 and above. Keeping up with the upgrade, tracking the new features and progress of the language regularly is part of our daily work. If you are already behind, then I strongly recommend you to start the upgrade plan, upgrade to a relatively new version. Effort is worthwhile, after all, the program is running for ages.
http://www.bkjia.com/PHPjc/998813.html www.bkjia.com true http://www.bkjia.com/PHPjc/998813.html techarticle How to choose PHP version? Which version should I use? , PHP version more than 75% of the website uses PHP as a development language, wordpress,phpmyadmin and other open source projects prevail, bring ...