Why are you still on PHP 5.3?

Seriously, why?

Let’s start with some facts. PHP 5.3 officially experienced EOL (End Of Life) in March of 2013. That’s nearly 1 1/2 years ago (an eternity in tech years). The last bug fix for PHP 5.3 was released in December of 2013 – 8 months ago! There has probably been 2 dozen flash bug releases since then (seriously flash, please just die already).

If that isn’t enough to convince you to upgrade, how about a nice little case study in the performance gains PHP 5.4 affords you?

I recently worked on a server migration for a client. We’ll call them Client X. Client X was migrating from one hosting provider to another (for reasons not relevant to this post). The new provider does not support PHP 5.4 (crazy, I know. But let’s move on). So we initially setup the site on PHP 5.3.

In preparing for the switch over, we noticed the site was notably slower than the old server, even though the server specs were very similar. As we started on the task of diagnosing the slowness we found a few things. First, the network card was set to half-duplex on a 100MB/s backend. Even after fixing it to full we still found performance was slow. We then had the provider move the server to a 1G/s backend. This made a major difference. Not only did we see a speed improvement by a factor of 2, but load capacity increased to nearly 3 fold. A very big difference indeed. Yet the site was still slower.

At the same time that we were troubleshooting performance, we had also encountered a weird issue where SOAP requests were failing when zlib compression was enabled in PHP. After some internal debate, a business decision was made to “risk” running PHP 5.4 without support from the provider. After upgrading, we notice the site felt much better – even comparable to the old server. We ran another load test. The results were surprising. Just upgrading from PHP 5.3 to 5.4 we say an improvement of 20% in average response time and 45% improvement in capacity.

So the lesson here? NOT upgrading from PHP 5.3 to at least 5.4 is down right crazy.

Load Test Results

Test in chronological order. PHP 5.4 upgrade is the top test.

As always, article is provided “as is” without any warranties of any kind either expressed or implied. Any resemblance to actual persons, living or dead, is unintentional and purely coincidental. At participating locations only. Not responsible for loss of limb or life. Batteries not included. Beware of dog. Consult your physician before use. Keep away from sunlight, pets, and small children. Your mileage may vary.

Comments !