Is there a problem that needs an urgent fix?Urgent fix?Get emergency help →
Blog

Practical Magento 2 guides on upgrades, security, speed and migration, written by the MageBooster team.

Which PHP Version for Each Magento 2.4.x Release

Magento 2.4.9 needs PHP 8.5, 2.4.8 runs on PHP 8.4 or 8.3. Here is the PHP version for every release from 2.4.4 to 2.4.9, with support dates and how to check PHP and its extensions.
Which PHP version does Magento need?

In short

Each Magento 2.4.x release runs only on the PHP versions Adobe lists for it. Magento 2.4.9 needs PHP 8.5, 2.4.8 runs on PHP 8.4 or 8.3, and 2.4.7 on PHP 8.3 or 8.2. Check your release first, then match PHP and its extensions to it.

This is part 4 of our Magento installation series. Part 3 was Adobe access keys for repo.magento.com. In our installation video below, PHP 8.5 is installed for Magento 2.4.9.

1. Find your Magento release

On an existing store, run bin/magento --version in the Magento root folder. For a new store, the release is the one you plan to install. The PHP version follows from it, not the other way round.

2. Match PHP to the release

Adobe supports only these combinations. The same PHP versions apply to every patch of a release, for example 2.4.8-p1 to 2.4.8-p5. Dates are from Adobe’s lifecycle policy.

ReleasePHPStandard support endsExtended support ends
2.4.98.5May 31, 2029not announced
2.4.88.4, 8.3May 31, 2028not announced
2.4.78.3, 8.2May 31, 2027May 31, 2028
2.4.68.2, 8.1Aug 11, 2026 (ended)Aug 31, 2027
2.4.58.1Aug 12, 2025 (ended)Aug 11, 2026 (ended)
2.4.48.1Apr 12, 2025 (ended)Apr 14, 2026 (ended)

After extended support, Adobe gives 2.4.4 and 2.4.5 security-only fixes until May 31, 2027, and 2.4.6 until May 31, 2028. A store on 2.4.6 or older is still on PHP 8.1 or 8.2; moving to PHP 8.3 or newer means upgrading Magento as well.

3. Check the PHP version on the server

Run php -v. This shows the command-line PHP, which runs bin/magento, Composer and cron. Your web server may use a different PHP-FPM version, so make sure both are the same.

4. Check the PHP extensions

Adobe lists the extensions Magento needs, among them bcmath, curl, gd, intl, mbstring, pdo_mysql, soap, sockets, sodium, xsl and zip. Run php -m to see what is loaded. After Composer has installed Magento, composer check-platform-reqs in the Magento root compares your PHP and extensions with what the installed packages require.

5. Check the rest of the stack

PHP is one part. The database, OpenSearch, Valkey, Varnish and Composer versions also depend on the release; we list them in Magento server stack requirements.

Next in the series: the setup:install parameters explained, one by one.

Want us to set up PHP and Magento for you?

We install the right PHP version with all extensions, set up Magento and keep the server up to date. See our Magento installation and setup and managed Magento hosting, or contact us below.

Sources

Installation guides: Magento 2.4.9 on Ubuntu Mage-OS Hyvä
Spotted a mistake on this page? Tell us and we will fix it right away.

Free Site Audit

Send your store details. We check speed, security and extensions, then reply with three quick wins within 3 working days.

Let's talk

Get a quote

Tell us about your store and we’ll reply within one working day. Prefer to chat? Say hello from WhatsApp

MageBooster Book a UnoPim demo See UnoPim live with products like yours. A new PIM or a move from Akeneo: we reply with a plan, a timeline and a quote.
✓ Official UnoPim partner✓ AI agent set up for your team✓ Connected to Magento
MageBooster Start your Hyvä project From scratch or from your current store. We reply with a project plan, a timeline and a quote.
✓ Design and structure by us✓ Hyvä-optimised server✓ Bonus modules included

MageBooster

Let us get in touch with you

Leave your details and your store address. We look at your store first and contact you within one business day, by phone, WhatsApp or email, whichever you prefer.

Partner with us