Reasons for Upgrading PHP Version

There have been times where you might have observed that your PHP code does not run simply because the plugin or application requires a later version of PHP. The PHPMailer class hosted in Github supports only PHP versions from 5.3 onwards. Now why are applications forcing us to upgrade?

There are many reasons why one should upgrade to a later version of PHP-


Security: Older Versions are not supported with Security updates. This makes your web application in secure. For folks using PHP 5.4, the support for that version officially ended on Sept 2015.

For every stable version released by Zend Technologies (The company which develops ad supports PHP), it has an active support for two years followed by one year of support based on an as-needed basis. So, it is always advisable to upgrade to a stable release of PHP. The current stable versions are PHP 7.0.5 and PHP 5.6.20

PHP Accelerator: There is no need to run a PHP Acclerator like APC to improve performance. From PHP 5.5 onwards, opcode cache is integrated with PHP which helps in improving the performance of the site.

New Features: PHP 5.5 added a finally block to the already existing try-catch block. The finally block always gets executed irrespective of whether there is an exception in the program or not.

Built in Webserver: They have come into existence since PHP 5.4 . It serves as a reliable way of testing your PHP Application before deploying it live on the web.  Previously one would have to set up a virtual host on the local web server and test it. Installing and configuring the virtual host was something one would not like to do as a source of enjoyment!

Password Hashing:  Improved encryption mechanisms for protecting passwords.


Even after such compelling reasons, there are many people who still don’t upgrade. The reason being that doing an upgrade would cause a break in the application code since it relies on older features. This is in fact quite true. Unlike major programming languages like Java, PHP is not backward compatible and hence newer versions of PHP do not support older code.

Performing an Upgrade

Now, there are many ways  one could perform an upgrade. People using web hosting sites like Hostgator would find this helpful

And for the ones coding in Linux/ Ubuntu can look at this


Here are some other links for those Interested in further reading-

  5. Evolution of PHP
  7. Zend Website



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s