array_map( ?->getCustomer() mysqli_connect( try { PHP 7.4 → 8.5 #[\ReturnTypeWillChange] use Psr\Log\Logger <?php str_contains($path, '/v2') $this->logger->error( fn($x) => $x * 2 PHP 7.4 → 8.5 $result |> trim(...) } catch (\Throwable $e) { public function __construct( public function __construct( static fn(): never namespace App\Billing; try { fn($x) => $x * 2 str_contains($path, '/v2') namespace App\Billing; PHP 7.4 → 8.5 session_start(); SELECT * FROM orders public string $name { get; } fn($x) => $x * 2 declare(strict_types=1); use Psr\Log\LoggerInterface; array_map( PHP 7.4 → 8.5 <?php public string $name { get; } mysqli_connect( session_start(); PHP 7.4 → 8.5 ?->getCustomer() opcache.enable=1 random_bytes(32) E_DEPRECATED opcache.enable=1 try { E_DEPREC E_DEPRECATED enum Status: string opcache.enable=1 <?php array_map( match ($status) { composer require mysqli_connect( namespace App\Billing; composer require match ($status) { <?php public function __construct( readonly class Money final class Invoice str_contains($path, '/v2') str_contains($path, '/v2') readonly class Money str_contains($path, '/v2') session_start(); composer require #[\ReturnTypeWillChange] $result |> trim(...) namespace App\Billing; array_map( ?-> return $this; match ($status) { use Psr\Log\LoggerInterface; json_validate($body) public string $name { get; } mysqli_connect( try { session_start(); array_map( readonly class Money $result |> trim(...) $result |> trim(...) private readonly int $id, namespace App\Billing; enum Status: string array_map( mysqli_connect( static fn(): never random_bytes(32) array_map( re use Psr\Log\LoggerInterface; PHP 7.4 → 8.5 mysqli_connect( array_map( fn($x) => $x * 2 public function __construct( composer requi public string $name { get; } private readonly int $id, return $this; array_map( <?php #[\ReturnTypeWillChange] $this->logger->error( $this->logger->error( session_start(); session_start(); enum Status: string } catch (\Throwable $e) { private readonly int $id, public string $name { g final class Invoice enum Status: string final class Invoice PHP 7.4 → 8.5 PHP 7.4 → 8.5 PHP 7.4 → 8.5 session_start(); public function __construct( password_hash( final class Invoice mysqli_connect( public function __construct(
array_map( ?->getCustomer() mysqli_connect( try { PHP 7.4 → 8.5 #[\ReturnTypeWillChange] use Psr\Log\Logger <?php str_contains($path, '/v2') $this->logger->error( fn($x) => $x * 2 PHP 7.4 → 8.5 $result |> trim(...) } catch (\Throwable $e) { public function __construct( public function __construct( static fn(): never namespace App\Billing; try { fn($x) => $x * 2 str_contains($path, '/v2') namespace App\Billing; PHP 7.4 → 8.5 session_start(); SELECT * FROM orders public string $name { get; } fn($x) => $x * 2 declare(strict_types=1); use Psr\Log\LoggerInterface; array_map( PHP 7.4 → 8.5 <?php public string $name { get; } mysqli_connect( session_start(); PHP 7.4 → 8.5 ?->getCustomer() opcache.enable=1 random_bytes(32) E_DEPRECATED opcache.enable=1 try { E_DEPREC E_DEPRECATED enum Status: string opcache.enable=1 <?php array_map( match ($status) { composer require mysqli_connect( namespace App\Billing; composer require match ($status) { <?php public function __construct( readonly class Money final class Invoice str_contains($path, '/v2') str_contains($path, '/v2') readonly class Money str_contains($path, '/v2') session_start(); composer require #[\ReturnTypeWillChange] $result |> trim(...) namespace App\Billing; array_map( ?-> return $this; match ($status) { use Psr\Log\LoggerInterface; json_validate($body) public string $name { get; } mysqli_connect( try { session_start(); array_map( readonly class Money $result |> trim(...) $result |> trim(...) private readonly int $id, namespace App\Billing; enum Status: string array_map( mysqli_connect( static fn(): never random_bytes(32) array_map( re use Psr\Log\LoggerInterface; PHP 7.4 → 8.5 mysqli_connect( array_map( fn($x) => $x * 2 public function __construct( composer requi public string $name { get; } private readonly int $id, return $this; array_map( <?php #[\ReturnTypeWillChange] $this->logger->error( $this->logger->error( session_start(); session_start(); enum Status: string } catch (\Throwable $e) { private readonly int $id, public string $name { g final class Invoice enum Status: string final class Invoice PHP 7.4 → 8.5 PHP 7.4 → 8.5 PHP 7.4 → 8.5 session_start(); public function __construct( password_hash( final class Invoice mysqli_connect( public function __construct(
PHP upgrade readiness checklist
Twenty questions to answer before you estimate a version upgrade. If you cannot answer them, the estimate is a guess.
Checklist · 6 min
Use this before committing to a date. Every item is something that has derailed
a real upgrade, usually because it was discovered in month four rather than
week one.
Inventory
Which PHP versions run in production, on every host, right now?
Which of those are past community end of life?
Are staging and production on the same patch level?
Who owns each application, and is that person still at the company?
Which hosts are managed by configuration management, and which were built by hand?
Dependencies
Does every direct dependency have a release supporting your target version?
Which dependencies have had no release in the last two years?
For each abandoned package: replace, fork, or absorb? Who decides?
Are any dependencies pinned to a commit rather than a version?
Do you have private packages whose build process nobody has run recently?
Code
What does static analysis report at your current level, before any changes?
How many deprecation notices does a full test run produce today?
Where does the code rely on implicit type coercion?
Are there eval, dynamic property, or variable-variable patterns to untangle?
Which extensions are loaded in production but not in development?
Testing
What is test coverage on the paths that handle money, auth, and personal data?
Can you run the full suite against the target version today, even if it fails?
Do you have a way to compare old and new output on real traffic?
How long does a full regression cycle take, in wall-clock hours?
Operations
Can you roll back a runtime change without a deploy?
Do you know which hosts would need patching if a PHP CVE dropped tomorrow?
Scoring it
If you answered fewer than fifteen of these, the honest estimate is "we do not
know yet," and the correct next step is a short assessment rather than a
timeline. That is not a stalling tactic, an upgrade plan built on unknowns is
how six-week projects become nine-month ones.
Find out what your PHP estate needs
Tell us which versions you run and where. An engineer replies within one business day.