3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('C:19:"SplDoublyLinkedList":0:{}'));
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
object(SplDoublyLinkedList)#1 (2) { ["flags":"SplDoublyLinkedList":private]=> int(0) ["dllist":"SplDoublyLinkedList":private]=> array(0) { } }
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument supplied for foreach() in /in/OBkjY on line 3 object(SplDoublyLinkedList)#1 (6) { ["head":protected]=> NULL ["tail":protected]=> NULL ["key":protected]=> int(0) ["current":protected]=> NULL ["count":protected]=> int(0) ["mode":protected]=> NULL }
Output for 5.4.14 - 5.5.35
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Serialized string cannot be empty' in /in/OBkjY:3 Stack trace: #0 [internal function]: SplDoublyLinkedList->unserialize('') #1 /in/OBkjY(3): unserialize('C:19:"SplDoubly...') #2 {main} thrown in /in/OBkjY on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.13
Notice: unserialize(): Error at offset 30 of 31 bytes in /in/OBkjY on line 3 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Serialized string cannot be empty' in /in/OBkjY:3 Stack trace: #0 [internal function]: SplDoublyLinkedList->unserialize('') #1 /in/OBkjY(3): unserialize('C:19:"SplDoubly...') #2 {main} thrown in /in/OBkjY on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Warning: Class SplDoublyLinkedList has no unserializer in /in/OBkjY on line 3 object(SplDoublyLinkedList)#1 (2) { ["flags":"SplDoublyLinkedList":private]=> int(0) ["dllist":"SplDoublyLinkedList":private]=> array(0) { } }
Output for 5.1.0 - 5.2.17
Warning: Class __PHP_Incomplete_Class has no unserializer in /in/OBkjY on line 3 Notice: unserialize(): Error at offset 25 of 31 bytes in /in/OBkjY on line 3 bool(false)
Output for 4.3.2 - 5.0.5
Notice: unserialize(): Error at offset 0 of 31 bytes in /in/OBkjY on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 0 of 31 bytes in /in/OBkjY on line 3 bool(false)