Check reference

PHP version

What it checks

Checks end of life, missing patch releases and known vulnerabilities (CVE) of the running PHP version.

Check ID: php.version

The PHP version used by the web server is evaluated. When a scan runs on WP-CLI (for example from the server cron), the version recorded during web requests, such as opening the admin screens, is used, because the CLI may use another PHP.

  • Support periods: endoflife.date. When the external services are disabled, a bundled snapshot is used.
  • Latest patch release of the same series: php.net.
  • Known vulnerabilities (CVE): NVD.

What a finding means

The titles, severities and explanations below are the ones shown on the Findings screen.

FindingSeverityMeaning
PHP … is no longer supported
php.eol
CriticalSecurity support for PHP … ended on …. New vulnerabilities will not be fixed.
PHP … support ends soon
php.eol_soon
MediumSecurity support for PHP … ends on … (in … days).
Reported when security support ends within 180 days.
PHP patch release is outdated
php.outdated_patch
MediumPHP … is running, but … is available in the same release series. Patch releases contain security fixes.
… known vulnerabilities in PHP …
php.known_cves
Critical High Medium LowThe National Vulnerability Database lists vulnerabilities for this exact PHP version. The most severe is … (CVSS …).
The severity of the most severe vulnerability listed by NVD.
PHP support status unknown
php.unknown_branch
InfoNo release data was found for PHP ….

How to fix

The recommended action shown with each finding:

  • PHP … is no longer supported
    Upgrade to a supported PHP version in your hosting control panel after testing the site on it.
  • PHP … support ends soon
    Plan an upgrade to a newer PHP version.
  • PHP patch release is outdated
    Ask your hosting provider to update PHP, or select the latest version in the control panel.
  • … known vulnerabilities in PHP …
    Update to the latest patch release of a supported PHP version.
  • PHP support status unknown
    Enable the endoflife.date API in the settings or check the PHP website.

Related settings

  • Settings → Checks → Enabled checks: switch “PHP version” on or off.
  • Settings → External services: endoflife.date, php.net and NVD. See External services.