3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface ContainerInterface extends \RecursiveIterator { /** * @param string|callable $filter * @return ContainerInterface */ public function filter($filter, array $params = []): self; } class Item implements ContainerInterface { /** * @var ContainerInterface */ private $container; /** * @return Item */ public function current() { return $this->container->current(); } }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of Item::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/1booS on line 22 Fatal error: Class Item contains 7 abstract methods and must therefore be declared abstract or implement the remaining methods (ContainerInterface::filter, RecursiveIterator::hasChildren, RecursiveIterator::getChildren, ...) in /in/1booS on line 12
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
82.02 ms | 1511 KiB | 4 Q