3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList; $list->push("foo"); $list->push("bar"); $ser = $list->serialize(); var_dump($ser); var_dump(unserialize($ser)); $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_KEEP); $ser = $list->serialize(); var_dump($ser); var_dump(unserialize($ser));
Output for git.master, git.master_jit
string(26) "i:0;:s:3:"foo";:s:3:"bar";" int(0) string(26) "i:0;:s:3:"foo";:s:3:"bar";" int(0)
Output for rfc.property-hooks
string(26) "i:0;:s:3:"foo";:s:3:"bar";" Warning: unserialize(): Extra data starting at offset 4 of 26 bytes in /in/Bcii2 on line 7 int(0) string(26) "i:0;:s:3:"foo";:s:3:"bar";" Warning: unserialize(): Extra data starting at offset 4 of 26 bytes in /in/Bcii2 on line 11 int(0)

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