Adds an opt-in mode where unqualified function and constant names stop falling back to the global namespace.
Last activity
Follow the proposals shaping the next version of PHP.
Adds an opt-in mode where unqualified function and constant names stop falling back to the global namespace.
Last activity
Adds grapheme_mask() for masking sensitive data safely in multibyte and emoji-heavy strings.
Last activity
Lets a class declare constructor parameters in its header, lifting property promotion out of __construct().
Last activity
Adds friend classes that may access another class's protected members.
Last activity
An official, rolling php-community release that ships experimental features ahead of regular PHP versions.
Last activity
Prevents instantiating and cloning the internal __PHP_Incomplete_Class.
Last activity
Adds a readonly modifier for local variables, so reassigning one after its first assignment throws an error.
Last activity
Deprecates lossy casts like (int) "123abc" ahead of a TypeError in PHP 9, and lets strict mode accept Stringable for string parameters.
Last activity
Adds a native values() method to backed enums that returns every backing value in declaration order, unless the enum defines its own.
Last activity
Adds an Encoding namespace with full RFC 4648 Base16, Base32 and Base64 support, plus Base58 and Base85.
Last activity
Adds (?type) casts that let null pass through and (!type) casts that reject null, both throwing on malformed input like "123abc".
Last activity
Adds a #[\NonExhaustive] attribute that marks an enum as likely to gain cases, so code matching on it knows to handle unknown ones.
Last activity
Adds a #[\NotSerializable] attribute that makes the engine refuse to serialize() or unserialize() instances of a class.
Last activity
Adds BLAKE3 to ext/hash, so hash('blake3', ...) and hash_hmac() can use it.
Last activity
Lets __sleep() return null or nothing, so it runs as a pre-serialization hook and the engine then serializes the object as usual.
Last activity
Scopes extension methods so they are only visible where they are imported with use extension.
Last activity
Lets code add methods to existing classes and interfaces from outside their definition, Swift-style.
Last activity
Adds FILTER_VALIDATE_STRLEN to validate string length in UTF-8 code points.
Last activity
Extends extension methods to built-in types like string, int and array.
Last activity
Adds a SORT_STRICT flag to sort(), ksort(), array_unique() and friends that orders values by type first, with no type juggling.
Last activity