3v4l.org

run code in 300+ PHP versions simultaneously
<?php class huh extends ArrayObject implements Serializable { public function serialize() { return serialize($this->getIterator()); } public function unserialize($data) { $this->exchangeArray($data); } } $value = new huh(); $value[] = $value; echo serialize($value);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of huh::unserialize($data) should either be compatible with ArrayObject::unserialize(string $data): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/bHd7l on line 6 Deprecated: Return type of huh::serialize() should either be compatible with ArrayObject::serialize(): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/bHd7l on line 5 O:3:"huh":4:{i:0;i:0;i:1;a:1:{i:0;r:1;}i:2;a:0:{}i:3;N;}

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:
48.85 ms | 402 KiB | 8 Q