Free 20-minute strategy call with a senior engineer: AI, payments, eLearning or custom software
Engineering

Laravel PHP Version Requirements: Laravel 8 to 13 Explained

Laravel PHP Requirements and How They Impact Laravel Upgrades

In short

Which PHP version does each Laravel release need? Laravel 8, 9, 10, 11, 12 and 13 PHP requirements, support dates and how to plan a safe Laravel upgrade.

Every Laravel release is tied to a range of PHP versions. Run the wrong PHP version and Composer refuses to install the framework, or worse, the application installs but breaks in production. This guide gives you the PHP version requirement for every Laravel release from Laravel 8 to Laravel 13, explains the support dates that matter for security, and shows how to plan a Laravel upgrade without downtime.

Quick answer: Laravel PHP version requirements

Laravel versionReleasedSupported PHP versionsBug fixes untilSecurity fixes until
Laravel 8September 2020PHP 7.3 – 8.1July 2022January 2023
Laravel 9February 2022PHP 8.0 – 8.2August 2023February 2024
Laravel 10February 2023PHP 8.1 – 8.3August 2024February 2025
Laravel 11March 2024PHP 8.2 – 8.4September 2025March 2026
Laravel 12February 2025PHP 8.2 and newerAugust 2026February 2027
Laravel 13Q1 2026PHP 8.3 and newerabout 18 months after releaseabout 2 years after release

Laravel provides bug fixes for 18 months and security fixes for 2 years after each major release. Always confirm the exact range for a minor release in the official Laravel release notes and support policy before upgrading production servers.

Laravel 10 PHP version requirement

Laravel 10 requires PHP 8.1 or higher and supports PHP 8.1, 8.2 and 8.3. If your server still runs PHP 8.0, composer update will fail with a platform requirement error. Laravel 10 stopped receiving security fixes in February 2025, so any application still on Laravel 10 should be scheduled for an upgrade.

Laravel 9 PHP version requirement

Laravel 9 requires PHP 8.0 or higher (up to PHP 8.2). Laravel 9 was the first release to drop PHP 7 entirely and moved to Symfony 6 components. It has been out of security support since February 2024.

Laravel 8 PHP version requirement

Laravel 8 supports PHP 7.3 to 8.1. Many older applications still run Laravel 8 on PHP 7.4, which itself reached end of life in November 2022. That combination no longer receives security patches from either project and is a common cause of failed security scans.

Free resource

Upgrade and patching checklist

Want this applied to your project? Our engineers will send it with notes for your stack.

Get it free

Laravel 11, 12 and 13

  • Laravel 11 raised the minimum to PHP 8.2 and introduced the slimmer application structure (no default Kernel.php files, a simpler bootstrap/app.php). Its security support ended in March 2026.
  • Laravel 12 keeps the PHP 8.2 minimum and focused on stability and dependency updates, which makes the 11 → 12 upgrade one of the easiest in Laravel’s history. It receives security fixes until February 2027.
  • Laravel 13 raises the minimum to PHP 8.3, so plan your PHP upgrade first if you are moving from Laravel 12.

Why PHP support dates matter as much as Laravel’s

Your application is only as secure as the oldest supported component. PHP versions also have their own end-of-life dates:

PHP versionSecurity support ends
PHP 8.1December 2025
PHP 8.2December 2026
PHP 8.3December 2027
PHP 8.4December 2028

In practice this means a Laravel 12 application should run on PHP 8.3 or 8.4 today, even though Laravel 12 still accepts PHP 8.2.

How to check your current versions

Run these commands on the server (or inside your container):

php -v
php artisan --version
composer show laravel/framework | grep versions

Also check composer.json. The require.php constraint (for example "php": "^8.2") tells Composer which PHP versions your project accepts, and the config.platform.php setting, if present, can make Composer resolve packages for a different version than the server actually runs.

How PHP requirements affect a Laravel upgrade

Laravel only supports upgrading one major version at a time (for example 9 → 10 → 11 → 12), and each step has its own PHP minimum. A typical path for an old application looks like this:

  1. Audit the code, composer.json, packages and server. List every package that blocks the next Laravel version.
  2. Upgrade PHP first on a staging server to the highest version both your current and next Laravel release support (for example PHP 8.1 for Laravel 9 → 10, or PHP 8.2 for 10 → 11).
  3. Upgrade Laravel one major version following the official upgrade guide, update first-party packages (Sanctum, Horizon, Cashier) and replace abandoned third-party packages.
  4. Run your test suite and manual checks of critical flows such as login, payments, queues and scheduled jobs.
  5. Deploy and monitor logs, then repeat for the next major version.

Tools such as Laravel Shift can automate much of the code change for each step, but they do not replace testing.

Common errors and how to fix them

  • “Your requirements could not be resolved… requires php ^8.2”: the server’s PHP is older than the Laravel version needs. Upgrade PHP, or check that the CLI and web server (PHP-FPM) use the same version.
  • Works locally but fails on the server: the CLI often uses a different PHP binary than PHP-FPM or cron. Run which php and check your hosting control panel’s PHP selector.
  • Deprecation warnings after a PHP upgrade: usually from old packages. Update them or replace abandoned ones before upgrading Laravel.
  • Composer resolves the wrong versions: remove or update config.platform.php in composer.json so it matches production.

Frequently asked questions

Which PHP version does Laravel 10 require? Laravel 10 requires PHP 8.1 or higher and supports up to PHP 8.3.

Which PHP version does Laravel 9 require? Laravel 9 requires PHP 8.0 or higher and supports up to PHP 8.2.

Can I run Laravel 8 on PHP 8.2? No. Laravel 8 officially supports PHP 7.3 to 8.1. Upgrade Laravel before moving to PHP 8.2 or later.

What PHP version should I use for Laravel 12? Laravel 12 requires at least PHP 8.2, but PHP 8.3 or 8.4 is recommended because PHP 8.2 security support ends in December 2026.

Can I skip Laravel versions when upgrading? You can plan the project as one piece of work, but the code should be upgraded one major version at a time, testing after each step.

Need help upgrading Laravel?

Vibidsoft upgrades Laravel applications step by step, from Laravel 5.x and 8 up to the latest release, together with the PHP and server changes each step needs. See our Laravel development services and PHP modernisation services, or contact us for a free upgrade assessment.

Vibidsoft Engineering Team

Senior engineers who have shipped 450+ projects since 2014 across AI, payments, eCommerce, eLearning and custom software. Every guide is written and reviewed by the people who do the work.

Follow us on LinkedIn · About Vibidsoft

Next step

Talk to an engineer about Modernize & Rescue

Fixed-price upgrades for ageing PHP, Drupal, Magento or hybrid apps, with security patching and a care plan. from $5,000.

  • A 20-minute call with a senior engineer, not a salesperson
  • A written next-step plan within one business day
  • NDA on request
Book a call WhatsApp