How to check which PHP version your website runs (4 easy ways)
Four easy ways to find your website's PHP version after PHP2Shell: a free outside check, WordPress Site Health, cPanel or Plesk, and your host.
By HackSpot team (Amethyst Apps) · · 4 min read

The short version: after the PHP2Shell security fixes of 21 October 2026, the first question for any business with a PHP website is "which version am I on?" You can find out in a few minutes. Start with a free HackSpot check, then confirm with your host, your WordPress dashboard or your hosting control panel.
Why the version number matters right now
On 21 October 2026 the PHP project fixed two critical flaws, CVE-2026-109618 and CVE-2026-109619, which became known as PHP2Shell. The PHP project's advisory says the risk applies to all PHP installations serving web requests. The fixed releases are:
| PHP branch | First fixed version |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
| 8.1 and older | No new release from the PHP project |
So the version number tells you two things: whether your branch is still supported, and whether the release you're on is at least the fixed one. There's one important catch, covered further down: some hosts patch PHP without changing the number.
How to check your PHP version, step by step
- Run a free outside check. Enter your website address in the HackSpot free check. It looks at what your website tells any visitor, including whether it shows signs of PHP and which version it reports. It takes about a minute, and it never logs in or attacks your site. Many sites hide the version, which is good practice; if so, the report says "Can't tell" rather than guessing.
- Look in WordPress Site Health. If your site runs WordPress, sign in and go to Tools > Site Health > Info, then open the Server section. It lists the PHP version your site is running. Site Health only shows information; it can't change anything.
- Look in your hosting control panel. In cPanel, open MultiPHP Manager, which lists each domain and its PHP version. In Plesk, go to Websites & Domains, find your domain and click PHP. The panel usually shows the branch (for example 8.3) rather than the exact release, so you may still need step 4.
- Ask your host or web developer. They can see the exact release on your server and, more importantly, whether the 21 October fixes are in place. Use our copy-and-paste email to your web host.
How to read the result
- 8.5.12, 8.4.27, 8.3.36, 8.2.35 or newer in the same branch: that release includes the PHP2Shell fixes. Ask your host to confirm PHP was restarted after the update, then you're done for now.
- An older release in 8.2 to 8.5 (for example 8.3.30): it looks unpatched. Ask your host. Many Linux distributions and hosting companies apply security fixes to their own PHP packages without changing the version number your site reports, so an older number doesn't prove the fix is missing.
- 8.1, 8.0, 7.x or older: these branches are past end of life and the PHP project hasn't released a fixed version for them. Your host may have a backported fix, but plan a move to a supported version. See old PHP versions past end of life.
- No version shown: that's normal and slightly safer. Confirm with your host instead.
Don't leave a phpinfo page online
Some guides suggest uploading a file that calls phpinfo() to see the version. It works, but it shows a lot of detail about your server to anyone who finds it. If you or your developer use one, delete it straight away. HackSpot's deeper checks for verified site owners look for exposed phpinfo pages for exactly this reason.
Questions people ask
How do I find my PHP version without logging in?
Run a free HackSpot check. Many websites announce their PHP version in a response header, and the check reads it the way a browser would. If your site doesn't show it, ask your host.
My hosting panel says PHP 8.3. Am I safe from PHP2Shell?
Not necessarily. The panel usually shows the branch, not the exact release. PHP 8.3 is fixed from 8.3.36 onwards, so ask your host which release you're on, or whether their own package has the fix.
My site shows PHP 8.2.20. Is it vulnerable?
It looks unpatched, but you can't be sure from the number alone, because many hosts patch PHP without changing it. Ask your host to confirm.
Does updating WordPress update PHP?
No. WordPress runs on PHP, but PHP is installed and updated by your host (or whoever manages your server). Read is my WordPress site affected by PHP2Shell?
Is it safe to show my PHP version publicly?
It's better not to. A version on show helps attackers pick targets. Your host or developer can turn off the "X-Powered-By" header; see our guide on hiding software version numbers.
More on PHP2Shell
- PHP2Shell: what small businesses need to do today
- CVE-2026-109618 and CVE-2026-109619 explained in plain English
- How to update PHP in cPanel and Plesk
- Is my PHP version unpatched? (guide)
Sources
- PHP security advisory, 21 October 2026 (php.net)
- GitHub security advisory GHSA-w8hw-w9fx-j79w, CVE-2026-109618 (PHP project)
- GitHub security advisory GHSA-6wmf-4rv5-p3rp, CVE-2026-109619 (PHP project)
- Site Health screen (WordPress documentation)
- MultiPHP Manager for cPanel (cPanel documentation)
- PHP settings (Plesk Obsidian documentation)