Videos
How do I safely upgrade my WordPress PHP version?
Which PHP version is best for WordPress in 2025?
Does PHP version affect WordPress plugin performance?
Hi,
I need some help, if possible.
I am looking to upgrade PHP and Wordpress to latest versions and not sure which PHP version is ok.
8.2/8.3 is in beta.
7.4 I understand is a security risk.
Is it fine to consider installing PHP 8.0 or 8.1 and the upgrading Wordpress to 6.3?
There isn't (and shouldn't) be an answer with any specific version for this. New versions come out, old versions get discontinued.
At the minimum you should use supported version of PHP. This ensures it still receives bug fixes and (or for less recent version) security updates.
Preferably you should be use the latest stable version of PHP. This ensures you get best possible performance.
PHP site has handy Supported Versions page, which clearly covers currently relevant versions and roadmap for their support.
IMPORTANT EDIT
This has unknowingly came to my attention as it slipped my mind, PHP 5.4 have already reach EOL and the last security support was stopped on the 14th of September 2015.
According to official documentation, PHP 5.5 will finally reach its EOL on the 10 of July 2016 (Active support has already been stopped but this version will still get security updates until its final EOl date of 10 of July 2016).
So to come back to the original question, you should be running on minimum at least PHP 5.5 now, but be sure to get ready to switch to PHP 5.6 within the next 8 months as from date of this answer
ORIGINAL ANSWER
Wordpress are still stuck on the dinosaur PHP versions, so any PHP version newer or equal to 5.3 should do.
It is however very very important to note that all PHP versions prior to version 5.4 have been EOL'ed, the last version being 5.3 a year ago. In short, this means than any PHP version older than 5.4 are no longer supported or updated, which will cause huge security issues if you are still using it.
So, for safety, the bare minimum you should be running safely is PHP 5.4.x, where x should be the latest security release.
In short, to be rather safe than sorry, just like Wordpress, it is always always the best to have the latest available stable release installed.
Hello,
I am wondering if I should update my php version from 7.4 to 8.0. I see a lot of people claiming they are on later versions of php like 8.0 - 8.3.
From what the research I have been doing it seems the most stable one is 7.4 and from 8.0 onwards it's "compatible with exceptions".
Since I am not a dev I would like to ask if its okay to stay on php 7.4 and wait a bit more for it to be fully compatible with wordpress before updating to a higher version.
Thanks.
Edit: I already updated it and all seems well. Thanks for the advice.