Skip to content
PHP News
Search

The future of PHP

RFC Tracker

Follow the proposals shaping the next version of PHP.

44
Under discussion
02
In voting
33
Accepted this year
09
Declined this year

Changes the PHP 8.5 deprecation of __sleep() and __wakeup() into a docs-only soft deprecation, so no warning is emitted.

PHP 8.5

Last activity

Warnings for PHP 8.5

Implemented

Adds PHP 8.5 warnings for coercing NAN, casting out of range floats to int, destructuring non-arrays and some isset()/empty() offset checks.

PHP 8.5

Last activity

Deprecates dozens of old PHP features in 8.5, from backticks and (integer) casts to __sleep(), null array keys and curl_close(), for removal in PHP 9.

PHP 8.5

Last activity

Lets you put #[\Deprecated] on a trait so PHP emits a deprecation warning whenever a class uses it.

PHP 8.5

Last activity

Adds a FILTER_THROW_ON_FAILURE flag so filter_var() and friends throw a Filter\FilterFailedException instead of returning false.

PHP 8.5

Last activity

Lets the #[\Override] attribute go on properties, so PHP errors if no matching property exists in a parent class or interface.

PHP 8.5

Last activity

Adds a #[\DelayedTargetValidation] attribute that turns compile errors for misplaced built-in attributes into runtime errors, for cross-version code.

PHP 8.5

Last activity

Makes OPcache a required, always-loaded part of PHP, removing --disable-opcache while keeping opcache.enable and other settings.

PHP 8.5

Last activity

Clone with v2

Implemented

Lets clone() take an array of properties to change on the copy, so you can update readonly properties in with-er methods.

PHP 8.5

Last activity

Lets you mark a promoted constructor parameter as final, making the promoted property final without extra boilerplate.

PHP 8.5

Last activity

Pipe operator

Implemented

Adds the |> pipe operator, which passes the value on its left as the single argument to the callable on its right.

PHP 8.5

Last activity

Adds an always-on URI extension with Uri\Rfc3986\Uri and Uri\WhatWg\Url classes for standards-compliant URL parsing, instead of parse_url().

PHP 8.5

Last activity

Adds array_first() and array_last() to return an array's first and last values, or null when the array is empty.

PHP 8.5

Last activity