How to check which PHP version your site is running
PHP is the language a WordPress site runs on, and an old version no longer gets security fixes. This guide explains several ways to check which version your site is running, and what to do with the answer.
What to know first
- PHP
- The programming language WordPress runs on. Every version has a date when it stops getting security fixes.
- Site Health
- A tool built into WordPress that checks the site and shows details about the server, including the PHP version.
Why check
The PHP version is not something you see on the pages of the site, and it can stay the same for years. But at some point every version stops getting security fixes, and a site running on such a version is exposed to security holes that are already known.
New plugins and themes also require a minimum version. A message like "This plugin requires PHP 8.0 or higher" is exactly the reason to check.
The simple way: inside WordPress
WordPress shows the version in its admin dashboard, and it takes less than a minute to see it.
- Sign in to the WordPress admin dashboard.
- In the menu, open "Tools" and then "Site Health".
- Go to the "Info" tab and open the "Server" section.
- Look for the "PHP version" line and write down the number.
Other ways
In the control panel of the hosting company: most companies have a screen that shows the PHP version of the site and lets you change it. If there is none, you can ask their support.
A page that shows the PHP configuration details (called phpinfo): a well-known way to check, but it exposes many details about the server. Anyone who creates such a page must delete it right after the check, and not leave it on the site. In most cases the check inside WordPress or a question to support does the same job without this risk.
If the person who built the site or your technical contact is available, you can ask them. They can also check which version is actually set.
Where you see it with us
Our WordPress servers are set up with PHP 8.4, and get security updates automatically. The page of a live WordPress site has a "PHP settings" tool, and at its top a line like "PHP version: 8.4." next to the values you can change, like the maximum file size for an upload.
What the number means
Versions 8.1 and older no longer get security fixes from the PHP project. Version 8.2 gets fixes until the end of December 2026. Versions 8.3, 8.4 and 8.5 are still supported.
If the version is old, do not rush to upgrade on the live site. A version jump can break old plugins and themes. The careful way is to back up, test the site on a copy with a new version, and only then move.
The guide on PHP2Shell has information about a recent severe security hole in PHP and what to do in each situation.
Try it now
Check the version in Site Health now and write it down together with the date. In a few months you can check again.
If you have a version number written down, and you know whether it still gets security fixes, you have finished the check.
If it did not work
- No access to the WordPress admin dashboard? You can ask the person who built the site or the hosting company to check.
- Cannot find the "Server" section in Site Health? You can ask the hosting company, or check in its control panel.
- The version is old and it is not clear how to upgrade? Contact us, and we will work out together how to move the site.
Check yourself
Answer in your head first, then open. After all the answers, a star is waiting on the route.
Where in WordPress do you see the PHP version?
Under Tools, Site Health, the "Info" tab, the "Server" section, on the "PHP version" line.
Why should you not leave a phpinfo page on the site?
Because it exposes many details about the server. If you create one, delete it right after the check.
Common questions
My site is on shared hosting. Can I change the PHP version?
Usually yes, in the control panel of the hosting company. If there is no such option there, their support can do it.
Can a PHP update break the site?
Yes, especially with a big jump between versions and with old plugins or themes. That is why you back up and test on a copy before changing the live site.
What is the difference between the PHP version and the WordPress version?
WordPress is the software, and PHP is the language it runs on. Each has its own version, and both need looking after.