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)); 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) Warning: Undefined variable $consumed in /in/7F1NQ on line 9 int(0) NULL Warning: Undefined variable $consumed in /in/7F1NQ on line 10 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/7F1NQ on line 8 int(0) Warning: unserialize(): Extra data starting at offset 4 of 22 bytes in /in/7F1NQ on line 9 Warning: Undefined variable $consumed in /in/7F1NQ on line 9 int(0) NULL Warning: Undefined variable $consumed in /in/7F1NQ on line 10 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:
41.02 ms | 402 KiB | 8 Q