What's new in PHP 8.1

Click for: original source

As with every release, PHP 8.1 adds some nice new features. Keep in mind that this list will grow over the year. By Brent.

The article then goes over these new features in the language:

  • Enums
  • Fibers
  • Performance improvements
  • Array unpacking with string keys
  • in initializers
  • Readonly properties
  • First-class callable syntax
  • Pure intersection types
  • New never type
  • New array_is_list function
  • Final class constants
  • New fsync function
  • Explicit octal integer literal notation

While PHP 8.1 is a minor version, there will be some changes that might technically be a breaking change, and deprecations as well. Let’s discuss them one by one. There is much more info in the article. Good read!

[Read More]

Tags php web-development programming app-development