Hi internals, This is a follow up to the addition of WeakReference in PHP 7.4. WeakReference is an important primitive, but what people usually really need are weak maps, which can't be implemented on top of WeakReference (at least, not as exposed in PHP).
This RFC proposes to add a native WeakMap type for PHP 8: https://wiki.php.net/rfc/weak_maps Regards, Nikita