PHP 8.1 is Two Weeks Away, Here's What to Expect

News

November 12th, 2021

PHP 8.1 is Two Weeks Away, Here's What to Expect

The PHP team announced the final PHP 8.1 release candidate (RC6) yesterday, with the GA release two weeks away!

The PHP 8.1 GA release happens in two weeks on Thursday, November 25th. The timetable has more details on the release schedule of PHP 8.1. Users are encouraged to test projects with PHP 8.1 but don't run this version in production quite yet.

An excellent way to start testing is to leverage PHP 8.1 Support in Laravel Sail. Recently, Laravel 8.69 introduced an Enum validation rule as well as enum model casts, which require PHP 8.1:

validator(
['status' => 'pending'],
['status' => [new Enum(ServerStatus::class)]]
)->validate();

PHP 8.1 is a minor release with new features focusing on the language's object-oriented design, types, functions, etc. Here are some of the highlight features coming to PHP 8.1:

Learn More

The following list of resources has everything you need to learn more about the upcoming releases:

  • The UPGRADING document includes backward-incompatible changes, new features, and everything else you'll need to familiarize yourself with changes in PHP 8.1
  • The NEWS document has detailed notes about each release
  • The PHP 8.1 preparation tasks page has the release timeline of the upcoming releases
  • You can download the PHP 8.1.1RC6 source from the downloads page

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.