Skip to content
Evergreen Evergreen
Documentation

PHP 8.1 is end-of-life

End of life as of 2025-12-31. Replacement: PHP 8.3 or later. Source: PHP unsupported branches.

Check a version:

evergreen check pkg:generic/php

The PHP unsupported branches page lists the PHP 8.1 branch as end of life on 2025-12-31; the branch no longer receives security or bug fixes from the PHP project.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status End of life
Severity high
Ecosystem php
Component pkg:generic/php
Affected versions vers:semver/>=8.1.0\|<8.2.0
Date from the source 2025-12-31
Replacement PHP 8.3 or later
Evidence last seen 2026-10-19
Reviewed 2026-10-19 by arminazimi
Review due 2027-01-17 (90 days after the last review)
Rule ID php.runtime.eol-8.1

Sources

Migration

Constraints

  • Keep .php-version, .tool-versions, composer.json require.php and config.platform.php, composer.lock platform.php, CI matrices, and container images on one supported PHP release line.
  • Confirm Composer packages and extensions build on the target PHP and reinstall dependencies after changing the runtime.

Steps

  1. Raise the PHP version. Change the reported declaration from PHP 8.1 to a supported release (see the replacement), using the project’s existing version manager.
  2. Align other PHP version surfaces. Update CI setup-php versions, Dockerfile php: images, composer.json require.php and config.platform.php, and composer.lock platform.php so they agree.

Verification

  • php --version: Confirm the active runtime is the intended release.
  • composer validate && composer install: Validate and reinstall dependencies on the new PHP.
  • composer validate && vendor/bin/phpunit: Validate the Composer project and run the PHPUnit suite on the new PHP.

Detected by

The php detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/php.json, rule php.runtime.eol-8.1, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated