Skip to content

Free tool

PHP version checker

Enter a web address or host name and this makes one ordinary request for its home page, the same request a browser makes, and reads the response headers. It reports the PHP version the host advertises, whether that branch still receives security fixes from the PHP project, whether the version is behind the newest release on its branch or a distribution build, and any other server software versions the host gives away. It runs against any public host, there is no sign-up, and it never reads the page itself.

A version string is not a patch status. The string is set when PHP is built, and Debian, Ubuntu and RHEL ship security fixes without changing it. So "behind" here always means behind, or backported, and only the package manager on the server can settle which. Everything on this page is read from the headers of one request; nothing is tested.

One GET of the home page, headers only. Nothing here reads the page, scans a port, or requests any other path.

What this cannot tell you

It cannot tell you whether the PHP behind the site is patched. It is the question people arrive with and the one a header cannot answer, so it is said twice on this page. The version string is written into the build when PHP is compiled. Debian, Ubuntu and RHEL ship security fixes to their packages without changing that number, so a server advertising 8.1.2 on Ubuntu can carry every fix published since, and a server advertising the newest number can have been built from source and never touched again. The headers cannot tell those two apart. The package manager on the server can, in one command, and the section below gives it.

It cannot see the application. WordPress, Drupal, Laravel, a plugin, a theme, the database, and anything on another port or path are invisible to a request for the home page, and that is where most of the work on a PHP site lives. A current PHP under an abandoned plugin is still a current PHP under an abandoned plugin.

It does not test anything. The tool asks for the home page once and reads what the server says about itself in reply. It does not show that anyone could get in, and it does not show that nobody could; it shows what a stranger can read. A penetration test is the thing that answers the first question.

And a clean result is narrower than it sounds. "PHP detected, version not advertised" means the configuration is correct, not that the installed version is current. "No sign of PHP" means the headers of the home page carry no sign of it, which is also what a site with expose_php off, no session cookie, and a CDN in front looks like. When a CDN or WAF answers, the headers are its headers, and the origin may say something else entirely.

How to read the result

Seven states, one headline each. There is no letter grade, because a version string cannot carry one: it cannot say whether fixes were backported, and it says nothing about the application on top.

Past security support

Fail

The header names a version on a branch the PHP project stopped fixing on the date shown. Nothing newer is published by PHP for that branch, whatever is found in it from now on, and the fix is an upgrade to a supported branch rather than a patch. The exception is a distribution build: Debian, Ubuntu and RHEL keep patching the PHP they ship while that operating system release is supported, so a version string carrying a distribution suffix, such as 8.1.2-1ubuntu2.19, is reported as a warning to go and check rather than a fail. The package manager on the server says whether those fixes are arriving.

Security support ends within 90 days

Needs work

The branch still receives security fixes today and stops on the date shown. The result also says whether the advertised version is the newest release on its branch, so a site that is current and ending soon reads as exactly that. Nothing is wrong yet. The upgrade needs a date in the calendar now rather than when the fixes stop.

Behind the newest release, or a distribution build

Needs work

The version string is older than the newest release on its branch. From outside, a server nobody has updated and a distribution build that carries the newer fixes under the old number look identical, and Debian, Ubuntu and RHEL all ship the second. A distribution suffix in the string, such as -1ubuntu2.19, points to the second case and is named when present. Only the package manager on the server can settle which it is, and the result gives the command.

The newest release on a supported branch

Pass

The advertised version matches the newest release on its branch and the branch has more than 90 days of security support left. The header that says so is still a disclosure, so the result still gives the expose_php fix. The same state, marked for information rather than pass, covers a header that names a branch without a patch number, a major version on its own, or a branch the table does not know; the headline says which, and nothing is compared.

PHP detected, version not advertised

Pass

Something in the headers shows PHP, a PHPSESSID cookie, a bare PHP in X-Powered-By, or a redirect to a .php path, and no header names a version. That is the correct configuration. It is a statement about what strangers can read, not about what is installed, so it says nothing about whether the PHP behind the site is supported or current.

No sign of PHP

For information

Nothing in the headers of the home page names PHP. That is not the same as no PHP: expose_php may be off with no session cookie set for a visitor who is not logged in, a CDN or WAF may be answering from its own copy or rewriting the headers, or the application may live on a path other than the home page. When a CDN signature is present the result names it.

Did not answer

For information

No response arrived over https on 443 or http on 80 within the time allowed, or the name resolved to an address outside the public internet and no request was made. The host may have no web server, may refuse connections from cloud addresses, or may answer only on another port. Nothing about PHP can be read from that.

How to check properly, from inside

The headers tell you where to look. These commands, run on the server, tell you what is there. Each one reads only and takes a minute.

1. Print the version the server actually runs

php -v

This is the string the header carries, with the build date beside it. Expect it to match the header. When it does not, the command line and the web server are running different builds, which is common: on Debian and Ubuntu, php-fpm8.2 -v (with your branch number) names the FPM build, and that is the one serving the site.

2. Debian and Ubuntu: ask apt whether a newer package is waiting

apt list --upgradable 2>/dev/null | grep php

An empty result means the installed PHP packages are the newest the configured repositories offer, backported fixes included, whatever number the header shows. Any line listed is an update not yet applied, and apt upgrade applies it. The package changelog, apt changelog php8.2-fpm, lists the fixes the distribution has carried under the old number, by CVE, which is the evidence the version string cannot give.

3. RHEL, Alma and Rocky: the same question to dnf

dnf check-update 'php*'

An empty result means nothing newer is available from the enabled repositories. Lines listed are updates not yet applied, and dnf upgrade applies them. rpm -q --changelog php lists the backported fixes by CVE in the same way. On RHEL 8 and 9 and their rebuilds the PHP branch is a module stream, so moving branch is dnf module switch-to rather than a package upgrade.

4. Confirm the setting that hides the version, and read phpinfo with care

grep -R "^expose_php" /etc/php/*/fpm/php.ini /etc/php.ini 2>/dev/null

The header comes from the php.ini that PHP-FPM or Apache loads, not the one the command line reads, so check that file directly. A phpinfo() page prints the whole build, including paths, loaded modules and every setting, which is useful to you and to anyone else who finds it. If you create one to read, put it somewhere the public cannot reach and delete it when you are done.

5. cPanel, Plesk or managed WordPress: ask the host

On those platforms the PHP version is chosen in the control panel, MultiPHP Manager on cPanel and PHP Settings on Plesk, and the host applies the updates, so the package manager is theirs to run. Ask which build is installed, including the distribution suffix, when it was last updated, and when the branch you are on will be removed from the panel. A branch still being offered is not evidence that it is still supported.

If you would rather not run this yourself, patching and the move to a supported branch are part of our cybersecurity work, and what a server advertises about itself is one of the first things we read in a penetration test.

The PHP support calendar

The table the verdict is computed from, imported from the function that computes it. At run time a copy of the endoflife.date feed, cached for 24 hours, lays over these rows; the printed table is the fallback when that fetch fails, and every result says which one it used.

Verified 2026-10-22 against php.net and endoflife.date. As of that day the rows in grey had ended security support, and a branch marked ending soon had 90 days or fewer of security support left.

Branch Released Active support until Security support until Newest release
PHP 8.5 2025-11-20 2027-12-31 2029-12-31 8.5.122026-10-21
PHP 8.4 2024-11-21 2026-12-31 2028-12-31 8.4.272026-10-21
PHP 8.3 2023-11-23 2025-12-31 2027-12-31 8.3.362026-10-21
PHP 8.2 ending soon 2022-12-08 2024-12-31 2026-12-31 8.2.352026-10-21
PHP 8.1 ended 2021-11-25 2023-11-25 2025-12-31 8.1.342025-12-18
PHP 8.0 ended 2020-11-26 2022-11-26 2023-11-26 8.0.302023-08-03
PHP 7.4 ended 2019-11-28 2021-11-28 2022-11-28 7.4.332022-11-03
PHP 7.3 ended 2018-12-06 2020-12-06 2021-12-06 7.3.332021-11-18
PHP 7.2 ended 2017-11-30 2019-11-30 2020-11-30 7.2.342020-10-01
PHP 7.1 ended 2016-12-01 2018-12-01 2019-12-01 7.1.332019-10-24
PHP 7.0 ended 2015-12-03 2018-01-04 2019-01-10 7.0.332019-01-10
PHP 5.6 ended 2014-08-28 2017-01-19 2018-12-31 5.6.402019-01-10
PHP 5.5 ended 2013-06-20 2015-07-10 2016-07-21 5.5.382016-07-21
PHP 5.4 ended 2012-03-01 2014-09-14 2015-09-14 5.4.452015-09-03
PHP 5.3 ended 2009-06-30 2011-06-30 2014-08-14 5.3.292014-08-14

Active support means bug fixes and security fixes; security support means security fixes only, which is normal for a branch in its final years and not a reason to move on its own. A branch past its security date gets nothing further from the PHP project, whatever is found in it. Debian, Ubuntu and RHEL keep patching the PHP they ship while that operating system release is supported, so a distribution build of an ended branch can still be receiving fixes; the package manager on the server is what confirms it.

Questions about PHP versions

What is the PHP version header, and why is it off on well-run servers?

PHP adds an X-Powered-By header naming its version to every response while the expose_php setting in php.ini is on, which it is by default. With Apache and mod_php the same token can also appear in the Server header, unless Apache is set to ServerTokens Prod. The header changes nothing about how PHP runs; it tells every visitor, and every automated scanner, exactly which build to look up first. Turning it off is one line, expose_php = Off, followed by a reload of PHP-FPM or Apache, and it is the normal state of a server somebody has configured on purpose. Turning it off does not make the installed PHP any newer, which is why this page treats a hidden version as correct configuration and not as a clean bill.

Why is a version string not a patch status?

Because the string is written into the build when PHP is compiled and is not touched afterwards. Debian, Ubuntu and Red Hat take the fix for a problem, apply it to the version they ship, and publish the result under the same number, so a server showing PHP 8.1.2-1ubuntu2.19 can carry every fix published since 8.1.2 while the string never moves. That is backporting, and it is how most servers on the internet receive their fixes. The reverse is also true: a server built from source shows whatever number it was built from, however long ago that was. From outside the two cases look identical, so this tool reports "behind, or backported" and nothing stronger. The package manager on the server settles it in one command, and the section on checking from inside gives it.

What does the end of security support mean, and why does PHP 8.2 matter on 2026-12-31?

Each PHP branch gets two years of active support, with bug fixes and security fixes, and then two more years of security fixes only. After the security date the PHP project publishes nothing further for that branch, whatever is found in it. PHP 8.2 reaches that date on 2026-12-31, which is close enough that a site still on it needs the upgrade scheduled now rather than discovered in January. A branch within ninety days of its end date is reported here as ending soon, which is the point at which the move needs a date in the calendar rather than a place on a list. The move from 8.2 to 8.3 or 8.4 is small for most applications; the move from 7.4 is not, and the application and its plugins decide how far it can go.

You said no sign of PHP, but my site runs WordPress.

Both can be true. The result means the headers of the home page carried no sign of PHP: no version, no PHPSESSID cookie, no redirect to a .php path. WordPress does not use PHP sessions, so there is no PHPSESSID cookie to see, a well-configured server has expose_php off, and a cache or CDN in front often answers the home page from its own copy without PHP being involved in that response at all. All three together are the normal state of a tidy WordPress site, and they leave nothing in the headers for this tool to read. The result is reported as "no sign of PHP" for exactly that reason, and never as "no PHP". If you know PHP is there, the commands in the section on checking from inside the server are the ones that matter.

What does a CDN or WAF in front of the site do to the result?

It answers the request. Cloudflare, Akamai, Fastly, CloudFront, Sucuri and the rest sit between this tool and your server, and what we read is what they pass through. Most of them rewrite the Server header to their own name, some strip X-Powered-By, and a cached page may never reach the origin at all. So a clean result from a host behind a CDN is a result about the edge: the origin may still be advertising its version to anything that reaches it directly, which is why the result names the CDN when its signature is present and says so. The reverse also holds. A PHP version that does appear through a CDN is the origin talking, because edges do not add PHP headers of their own.

Is this a scan?

No. The tool makes one request for the home page of the host you enter, over https with a fallback to http only when TLS cannot be established, follows up to three redirects, and reads the response headers. That is the same request a browser makes when you type the address in, and the headers are the same ones the browser receives. It never reads the page itself, never requests another path except where a redirect from the site sends it, never sends a payload, and never retries a request that was answered. The one second attempt it makes is the http request on port 80 when https on 443 cannot be established, and the result says when that happened. It sees what any visitor sees, which is why it can be run against any public host without touching anything.

Do you store the hosts people check?

No. There is no database behind this, no export, and no list of checked hosts going to sales. Results are held in memory for about fifteen minutes so a repeated check is fast, and then they are gone. The host name is kept out of the logs, including when a check fails. There is no email gate, no sign-up, and no fuller report held back. What you see is the whole result.

Why is there no letter grade?

Because a version string cannot carry one. A grade would have to say how much is wrong, and the headers cannot say that: a version two releases behind may have every fix backported, a current version may be sitting under an application nobody has updated in years, and a hidden version may be anything at all. Putting a letter on that would be putting a letter on a guess. The email authentication checker on this site grades, because DNS records are the configuration itself and can be scored against a rubric printed on the page. Here the honest output is the state, the dates, and the commands that settle what the headers cannot.

My site is hosted by a provider. What do I do with this?

Ask them two things: which PHP build is installed, including the distribution suffix, and when it was last updated. On cPanel the version is chosen in MultiPHP Manager, on Plesk it is under PHP Settings, and on managed WordPress it is a setting in the host's own panel; in every case the host applies the updates, so the package manager is theirs to run. Providers keep old branches available long after the PHP project has stopped fixing them, so a branch being offered in the panel is not evidence that it is still supported. If the version is advertised, ask them to set expose_php off, or do it yourself where the panel exposes the option. If the branch is ending, pick the newest branch the application supports and switch a staging copy to it first.

What does this tool not look at?

The application. WordPress, Drupal, Joomla, Laravel, Magento, every plugin and theme, and whatever was written in house are invisible to a request for the home page, and that is where most of the work on a PHP site lives. It also does not look at the database, at anything on another port, at anything on a path other than the home page, at the operating system, at TLS configuration, or at the other software the headers name beyond listing it. A current PHP is necessary and nothing more. The application and its plugins need their own update check, and a penetration test is the thing that looks at how the whole stack behaves rather than at what it says about itself.

How this runs, and what we keep

Every result comes from one GET of the host's home page over https on 443, falling back to http on 80 only when TLS cannot be established, following up to three redirects, with the connection closed as soon as the headers arrive. The page body is never read. Nothing requests another path or port, nothing scans, and nothing is sent that a browser does not send. The request carries a User-Agent naming this page, so a server operator can see what hit them and why. The name is resolved over DNS-over-HTTPS first, and the request is refused if it points anywhere outside the public internet.

We do not keep the hosts people check. There is no database, no export, and nothing feeding a prospect list. Results sit in memory for about fifteen minutes so a repeated check returns instantly, and then they are gone. Host names are kept out of the logs, error path included. There is no email gate and no fuller report held back. Our privacy policy covers the rest of the site.

Support dates come from php.net and endoflife.date, and the table above says when it was verified. Definitions for the terms on this page are in the glossary: patch management, attack surface, penetration test, vulnerability scan, and CVE.

Working through a wider question? The email authentication checker, the in-house vs outsourced IT cost calculator and the Microsoft 365 licensing calculator are on the same shelf.

We will plan the upgrade with you

The hard part of moving a PHP site is not the package. It is knowing what the application needs and what changes on the new branch. We confirm what is installed, test the move on a copy, and schedule it so the site stays up.

Call (480) 848-8209

Email [email protected]

15-minute response on critical issues, 24/7. Onboarding in two to three weeks.

We reply within one business day. No spam, no pressure.