A while ago I did some benchmarks on how different versions of PHP perform in comparison to one another. This isn't a performance measure in absolute terms, this was just benchmarking them all on the same laptop while it wasn't doing anything else, and averaging the time it took to run the benchmark script.
Recently I ran it again for versions PHP 5.3 through PHP 5.6 and I thought I'd share my results:
PHP's performance has consistently improved over the versions; here I don't show versions earlier than PHP 5.3 but that version was also much faster than earlier releases of PHP 5. I meet many applications whose PHP platform aren't upgraded because they don't need the new features in the new versions. This is absolutely fine, but what application wouldn't benefit from improved performance and security?
The individual numbers, if you should want them:
|version||run 1||run 2||run 3||run 4||run 5||run 6||run 7||run 8||run 9||run 10||average|
I'm hearing some very convincing rumours about big performance improvements on the horizon for future versions PHP, and that is fantastic, but even the currently-released (or almost - 5.6 will be stable in the coming months) versions have a lot to offer PHP developers everywhere. If any paid-for platform offered this kind of improvement for free, it would be big news. Maybe we should start to shout about some of the good news in PHP too?