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($list->unserialize($ser)); var_dump(unserialize($ser)); $consumed = null; var_dump(unserialize($ser), $consumed); var_dump($consumed);
Output for git.master, git.master_jit
string(22) "i:0;:s:1:"a";:s:1:"b";" NULL int(0) int(0) NULL NULL
Output for rfc.property-hooks
string(22) "i:0;:s:1:"a";:s:1:"b";" NULL Warning: unserialize(): Extra data starting at offset 4 of 22 bytes in /in/fsXFq on line 8 int(0) Warning: unserialize(): Extra data starting at offset 4 of 22 bytes in /in/fsXFq on line 10 int(0) NULL NULL

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:
63.31 ms | 401 KiB | 8 Q