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

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

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

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

Adds ? and ... placeholders to function calls, so passing only some arguments returns a closure that takes the rest later.

PHP 8.6

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

Updates the PHP release policy to define BC breaks, clarify what each version type may change, and let most features land via pull request.

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

Error backtraces v2

Implemented

Adds a fatal_error_backtraces INI setting, on by default, so fatal errors include a stack trace like exceptions do.

PHP 8.5

Last activity

Lets you put attributes, including #[\Deprecated], on constants declared with const, and read them with ReflectionConstant::getAttributes().

PHP 8.5

Last activity