Skip to content
PHP News
Search

The future of PHP

RFC Tracker

Follow the proposals shaping the next version of PHP.

35
Under discussion
00
In voting
30
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

Adds a clamp() function that returns a value if it falls between min and max, or the nearest bound if it doesn't.

PHP 8.6

Last activity

Deprecates PECL as the recommended way to install PHP extensions and makes PIE the recommended installer instead.

Last activity

Adds split() as an alias of explode(), matching the name most other languages use for breaking a string into an array.

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

Lets backed readonly properties use get and set hooks, with a separate vote for each kind of hook.

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

Lets named functions and methods use => expression; as a shorthand for a body that only returns that expression.

Last activity

Adds a required Abstain option to every RFC's primary vote, counted the same as not voting, and rewrites the voting rules.

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