PHP Versions

Version StatusUpcoming Release

PHP 8.6 is the active development branch, expected to be released towards the end of the 2026.

Newly added Improvements Changed Deprecations Removals
INI Directives 1 3
Enums 10
Functions 10 17 25
Classes 23 1
Constants 34 3 2
Interfaces 1
Release Date2025-11-20
Version StatusSupported (Latest)

PHP 8.5 is the latest PHP version, bringing major new syntax and features such as the Pipe operator syntax and the new URI extension.

Newly added Improvements Changed Deprecations Removals
Extensions 2 2
INI Directives 6 39 2 1
Enums 2
Functions 16 67 7 16
Classes 11 8 2
Constants 39 20 40
Attributes 2
Release Date2024-11-21
Version StatusSupported

PHP 8.4 is a feature-rich PHP version that brings support for property hooks, asymmetric visibility support in classes, database driver-specific PDO classes, Lazy objects, a HTML5 support in the DOM extension, along with several new features, improvements, and deprecations.

Newly added Improvements Changed Deprecations Removals
Extensions 1 4
INI Directives 1 3 14
Enums 4
Functions 34 93 61 7 218
Classes 41 3 5
Constants 63 1 6 18 150
Attributes 1
Interfaces 2
Release Date2023-11-23
Version StatusSecurity-Fixes Only
Newly added Improvements Changed Deprecations Removals
INI Directives 3 5 1
Enums 1
Functions 12 39 1
Classes 10
Constants 51 1 7
Attributes 1
Release Date2022-12-08
Version StatusSecurity-Fixes Only

PHP 8.2 is the latest PHP version which brings readonly classes, DNF types, null, false, and true types, sensitive parameter redaction support, a new random extension, and several new features along with a few deprecations.

Newly added Improvements Changed Deprecations Removals
Extensions 1
INI Directives 3 1
Functions 12 48 122 2
Classes 9 6
Constants 132 4 1
Attributes 2
Interfaces 2
Release Date2021-11-25
Version StatusUnsupported

PHP 8.1, released in 2021, brings major new features such as Enums, Fibers, never return type, Intersection Types, readonly properties, and more, while ironing out some of its undesired legacy features by deprecating them.

Newly added Improvements Changed Deprecations Removals
INI Directives 2 1 2
Functions 25 296 11
Classes 20 2
Constants 36 1 11
Attributes 1
Interfaces 2
Release Date2020-11-26
Version StatusUnsupported

PHP 8.0, on the 25th year of PHP history, brings several important features such as Union Types, JIT, Constructor Property Promotion, Match Syntax, Named Parameters, and several more performance, syntax, and quality-of-life improvements.

Newly added Improvements Changed Deprecations Removals
INI Directives 20 3 3
Functions 17 2195 90 37
Classes 28 82 13
Constants 19 2 3 12
Attributes 1
Interfaces 3 2
Release Date2019-11-28
Version StatusUnsupported

PHP 7.4, the final release in the PHP 7.x series. PHP 7.4 brings typed properties, underscore numeric separator, and other minor improvements to PHP.

Newly added Improvements Changed Deprecations Removals
Extensions 1 3
INI Directives 7 1 10
Functions 7 11 10 105
Classes 7 2
Constants 49 9 66
Release Date2018-12-06
Version StatusUnsupported

Heredoc/nowdoc syntax improvements and a bunch of legacy code deprecations.

Newly added Improvements Changed Deprecations Removals
INI Directives 5 1 1
Functions 20 30 17
Classes 2 1
Constants 106 1
Release Date2017-11-30
Version StatusUnsupported

Argon2 password hashing support, class constant visibility, object type, and many more.

Newly added Improvements Changed Deprecations Removals
Extensions 1 1
INI Directives 1 5 4
Functions 113 6 2 5 32
Classes 2 8
Constants 154 4 39
Interfaces 1