3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList(); $list->push("a"); $list->push("b"); $ser = $list->serialize(); var_dump($ser); var_dump(SplDoublyLinkedList::unserialize($ser)); var_dump(unserialize($ser)); var_dump(unserialize($ser), $consumed); var_dump($consumed);
Output for git.master, git.master_jit, rfc.property-hooks
string(22) "i:0;:s:1:"a";:s:1:"b";" Fatal error: Uncaught Error: Non-static method SplDoublyLinkedList::unserialize() cannot be called statically in /in/ZVrSS:7 Stack trace: #0 {main} thrown in /in/ZVrSS on line 7
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:
46.85 ms | 401 KiB | 8 Q