PHP 7.2 is end-of-life
End of life as of 2020-11-30. Replacement: PHP 8.4 or later. Source: PHP release branches.
Check a version:
evergreen check pkg:generic/php
The PHP release branches list marks PHP 7.2 as end of life: active support ended on 2019-11-30 and security support ended on 2020-11-30.
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/>=7.2.0\|<7.3.0 |
| Date from the source | 2020-11-30 |
| Replacement | PHP 8.4 or later |
| Evidence last seen | 2026-10-20 |
| Reviewed | 2026-10-20 by arminazimi |
| Review due | 2027-01-18 (90 days after the last review) |
| Rule ID | php.runtime.eol-7.2 |
Sources
- PHP release branches (accessed 2026-10-20)
- PHP supported versions (accessed 2026-10-20)
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
- Raise the PHP version. Change the reported declaration from PHP 7.2 to a supported release (see the replacement), using the project’s existing version manager.
- 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.
Related
Other versions of this product
- PHP 7.0 is end-of-life
- PHP 7.1 is end-of-life
- PHP 7.3 is end-of-life
- PHP 7.4 is end-of-life
- PHP 8.0 is end-of-life
- PHP 8.1 is end-of-life
Same ecosystem
- doctrine/cache is abandoned
- fzaninotto/faker is abandoned
- Laravel 10 is no longer supported
- Laravel 11 is no longer supported
- sensiolabs/security-checker is abandoned
- swiftmailer/swiftmailer is abandoned
- zendframework/zend-stdlib is abandoned
Data
This page is generated from registry/php.json, rule php.runtime.eol-7.2, 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