PHP 8.0

Changes

Types

  • [PHP Union Type](PHP Union Type)
  • [PHP Mixed Type](PHP Mixed Type)

Operators

  • [PHP nullsafe operator](PHP nullsafe operator)

Attributes

  • [PHP Attributes](PHP Attributes)

Classes

Constructors

  • [PHP constructor property promotion](PHP constructor property promotion)

Return types

  • [PHP Static Return Type](PHP Static Return Type)

Literals

  • [PHP Class Name Literal](PHP Class Name Literal)

Interfaces

  • [PHP Stringable Interface](PHP Stringable Interface)

Maps

  • [PHP Weak Maps](PHP Weak Maps)

Errors

  • [PHP Throw Expression](PHP Throw Expression)
  • [PHP Non-capturing Catches](PHP Non-capturing Catches)

Parameters

  • [PHP Named Arguments](PHP Named Arguments)
  • [Trailing Comma in Parameter Lists](Trailing Comma in Parameter Lists)

Functions

Objects

DateTime

Expressions

  • [Match expression](Match expression)