Skip to content
OSULZER.AT

PHP Version Check.

Does your website reveal which PHP version runs on the server? Find out in seconds - free of charge and without signing up.

The check looks at the response headers of the homepage and at well-known file names such as phpinfo.php, info.php, pi.php or php.php.

Free, no sign-up - no details about you are stored.

Want to find out your PHP version? Here is how

Technical finding without guarantee. Only publicly visible information is checked: the response headers of the homepage and a list of well-known file names in the root of the website.

How to find out your PHP version.

Simply want to know which PHP version your website uses? If it is well hidden, the check will not find one. With a small test file you can see it in two minutes:

  1. 1. Create the file

    Using FTP or your hosting file manager, create a file phpinfo.php in the root folder of the website with this content:

    <?php phpinfo();
  2. 2. See the version

    Open https://your-domain.com/phpinfo.php in your browser - the PHP version is shown at the very top. Or run the PHP version check above again: it finds the file and shows the version including its support status.

  3. 3. Delete the file

    Delete the file again right afterwards. It shows anyone the complete configuration of your server.

Why the PHP version should not be public.

Many servers write their PHP version into every response, for example as X-Powered-By: PHP/7.4.33. Visitors never see it, but for automated scanners it is an invitation: they search the web around the clock for servers running versions with known vulnerabilities.

Hiding the version number does not close a vulnerability. It does take away the convenient shortcut for attackers and keeps your website off the lists that get worked through first when a new vulnerability becomes known.

Even more dangerous are forgotten phpinfo.php or info.php files created during setup or troubleshooting. They show not only the version but the complete configuration of the server.

PHP security updates: how long a version is maintained.

A new PHP version is released at the end of November every year. Each version is actively supported for two years and receives bug fixes and security updates during that time. Two more years follow in which only security vulnerabilities are fixed. Both phases end on December 31.

Within a version, patch releases such as 8.4.26 and 8.4.27 come out regularly. They can usually be installed without changes to the website and should be applied promptly - for critical vulnerabilities like PHP2Shell without delay.

Moving to a new version, for example from 8.1 to 8.3, is a project of its own: older themes, plugins and custom code do not always run without changes. With WordPress maintenance and managed hosting I make sure your website runs on a supported version.

End of life: what happens when a version expires.

Once security updates end, a PHP version reaches "end of life". If a new vulnerability becomes known after that, there is no official fix. That is exactly what happened with PHP2Shell: there were no updates for PHP 8.1, 8.0 and 7.4, the only way out was switching to a current version.

Some Linux distributions and hosts still ship their own security fixes for old versions. Only rely on that if your host explicitly promises it. For custom applications, a PHP developer can bring the code up to a current version.

Current PHP versions and their support.

All versions since PHP 5.6 with the end of active support and of security updates, according to php.net.

PHP versions and support status, as of 14/11/2026
VersionReleasedActive support untilSecurity updates untilStatus
PHP 8.520/11/202531/12/202731/12/2029actively supported
PHP 8.421/11/202431/12/202631/12/2028actively supported
PHP 8.323/11/202331/12/202531/12/2027security fixes only
PHP 8.208/12/202231/12/202431/12/2026security fixes only
PHP 8.125/11/202125/11/202331/12/2025end of life
PHP 8.026/11/202026/11/202226/11/2023end of life
PHP 7.428/11/201928/11/202128/11/2022end of life
PHP 7.306/12/201806/12/202006/12/2021end of life
PHP 7.230/11/201730/11/201930/11/2020end of life
PHP 7.101/12/201601/12/201801/12/2019end of life
PHP 7.003/12/201504/01/201810/01/2019end of life
PHP 5.628/08/201419/01/201731/12/2018end of life

PHP versions and support status, as of 14/11/2026

What is the check useful for?

  • After a server move

    After moving servers or hosts, the PHP configuration is new. A quick check shows whether the version is openly in the header again.

  • When taking over a website

    Taking over an existing website often means finding old test files like info.php. The check scans the usual names in seconds.

  • Before and after a PHP update

    Before, you see whether the server reveals an expired version; after, whether the new version is properly hidden.

  • After a security warning

    When a vulnerability like PHP2Shell becomes known, the check quickly shows whether your website makes its version visible to scanners.

Good to know

Questions about the PHP version check?

What the check looks at, why the version should be hidden and what to do if something is found.

The check

What does the PHP version check look at?

The check loads the homepage of your website and reads the response headers, including those of all redirects, for example from http to https. It looks for a PHP version in the X-Powered-By and Server headers. In addition, it requests a list of well-known file names in the root of the website, where forgotten phpinfo outputs are often found.

Which files does the check look for?

phpinfo.php, info.php, pi.php, php.php, i.php, test.php, phpinfo, php_info.php, php-info.php, infophp.php, phpversion.php and info. Only a genuine phpinfo output counts as a finding - an error page answering under one of these names is recognized and not reported.

The result is green - does that mean my PHP version is up to date?

Not necessarily. Green only means the version is not publicly visible. You can see which version really runs with the guide above, in your hosting panel, in WordPress under Tools → Site Health → Info, or by asking your host. The table above shows how long it will still receive security updates.

Is my data stored?

Nothing about you. The result is not stored. For internal statistics and to protect the tools from misuse, for example to block domains used abusively, I only store the checked domain, the tool, the time and the number of points found, without your IP address or any other details about you, and delete them after 12 months. For the limit of 10 checks per hour, only a hash of your IP address is briefly kept and deleted after one hour at the latest.

PHP versions

Which PHP version should my website use?

Ideally a version that is still actively supported, which in October 2026 means PHP 8.4 or 8.5. Versions receiving security fixes only (8.3 and 8.2) are still acceptable but should be on the list for the next update. Everything from 8.1 down no longer receives security updates.

How do I hide the PHP version?

The setting expose_php = Off in the PHP configuration removes the version from the X-Powered-By header. Many hosts let you set it in the panel, otherwise their support can help. If the version appears in the Server header, the web server has to be adjusted. Simply delete open phpinfo files.

Can I simply switch the PHP version myself?

In the hosting panel it is often a single click - but not every website survives the jump. Older themes, plugins and custom code can throw errors or take the site down. It is safer to test the update on a staging environment first. I take care of this as part of WordPress maintenance, and for custom applications as a PHP developer.

What does PHP2Shell have to do with the PHP version?

PHP2Shell is a critical vulnerability in PHP itself. It was only fixed in versions that still receive security updates. Which patch releases are safe is explained in PHP2Shell: The Security Updates Are Out.

New project?

Contact.

Tell me briefly about your project - I'll get back to you personally.

Your data is used solely to handle your inquiry. More in the privacy policy.