Search
Check whether a Laravel version runs on a given PHP version, using the official PHP ranges for Laravel 8 through 13.
Laravel 10 runs on PHP 8.3. Official range: PHP 8.1–8.3.
| Laravel | PHP range |
|---|---|
| 8 | 7.3 – 8.1 |
| 9 | 8.0 – 8.2 |
| 10 | 8.1 – 8.3 |
| 11 | 8.2 – 8.4 |
| 12 | 8.2 – 8.4 |
| 13 | 8.3 – 8.4 |
Each Laravel release supports a band of PHP versions. Laravel 13 on this site needs PHP 8.3 or 8.4. Pick a Laravel version and a PHP version to see if they fit, plus the full PHP range for that Laravel release. Use this before upgrading either side of a production app.
Composer Semver Constraint Checker
Test whether a version satisfies a Composer constraint using composer/semver, the same library Composer uses.
Laravel App Key Generator
Generate a Laravel APP_KEY (AES-256-CBC) and a starter .env block. A new key will not decrypt existing data.
JSON to PHP Array Converter
Convert JSON into PHP short-array syntax and a starter Eloquent model with fillable attributes and inferred casts.
From the blog
Can you run Laravel 13 on PHP 8.2?
Each Laravel release supports a band of PHP versions. Check the matrix before composer update.
From the blog
^10.0 is not ~10.0: Composer caret versus tilde
Composer semver is close to npm and not the same. Test a version against the constraint before you bump it in CI.