3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new ArrayObject(); $t = array($x, $x->getIterator()); $s = serialize($t); $e = unserialize($s);
Output for 5.0.0 - 5.2.17, 5.4.18 - 7.1.0
Output for 5.4.14 - 5.4.17
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 13 of 26 bytes' in /in/fATOA:5 Stack trace: #0 [internal function]: ArrayIterator->unserialize('x:i:16777216;r:...') #1 /in/fATOA(5): unserialize('a:2:{i:0;C:11:"...') #2 {main} thrown in /in/fATOA on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.13
Notice: unserialize(): Error at offset 83 of 111 bytes in /in/fATOA on line 5 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 13 of 26 bytes' in /in/fATOA:5 Stack trace: #0 [internal function]: ArrayIterator->unserialize('x:i:16777216;r:...') #1 /in/fATOA(5): unserialize('a:2:{i:0;C:11:"...') #2 {main} thrown in /in/fATOA on line 5
Process exited with code 255.
Output for 5.3.3 - 5.3.29
Notice: unserialize(): Error at offset 83 of 111 bytes in /in/fATOA on line 5 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 13 of 26 bytes' in /in/fATOA:5 Stack trace: #0 /in/fATOA(5): unserialize('a:2:{i:0;C:11:"...') #1 {main} thrown in /in/fATOA on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.2
Notice: unserialize(): Error at offset 83 of 111 bytes in /in/fATOA on line 0 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 13 of 26 bytes' in /in/fATOA:5 Stack trace: #0 /in/fATOA(5): unserialize('a:2:{i:0;C:11:"...') #1 {main} thrown in /in/fATOA on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/fATOA on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/fATOA on line 2