Skip to content
PHP Scanner
Linux

Default PHP versions on Ubuntu and Debian

Updated By Catch Digital

Short answer

Ubuntu 24.04 ships PHP 8.3, Ubuntu 22.04 ships PHP 8.1, Debian 12 ships PHP 8.2 and Debian 11 ships PHP 7.4. These distributions patch their own PHP packages without changing PHP's version number, so check the distribution's security tracker for the PHP2Shell fix, not the version alone.

ReleaseDefault PHPSecurity support
Ubuntu 24.04 LTSPHP 8.3Standard security maintenance runs until May 2029, and Ubuntu Pro extends it to May 2034.
Ubuntu 22.04 LTSPHP 8.1Standard security maintenance runs until May 2027, and Ubuntu Pro extends it to May 2032.
Debian 12PHP 8.2Debian's Long Term Support team covers it from June 11, 2026 to June 30, 2028.
Debian 11PHP 7.4Debian's free Long Term Support for it ended on August 31, 2026.

Sources

Checked against these sources on October 22, 2026. PHP Scanner is a free tool from Catch Digital and is not affiliated with the PHP project.

Keep reading4 related