3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data='a:3:{i:0;C:11:"ArrayObject":20:{x:i:0;r:3;;m:a:0:{};}i:1;d:11;i:2;S:31:"AAAAAAAABBBBCCCC\00\01\00\00\00\01\01\00\01\00\00\00\10\00\00";}'; var_dump(unserialize($data)); ?>
based on RkMGa
Output for 7.0.20 - 7.2.0
Fatal error: Uncaught UnexpectedValueException: Error at offset 10 of 20 bytes in /in/fILUd:3 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;r:3;;m:a:...') #1 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #2 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.4.18 - 5.4.19, 5.4.44 - 5.4.45, 5.5.1 - 5.5.3, 5.5.28 - 5.5.38, 5.6.12 - 5.6.25, 7.0.0 - 7.0.10
array(3) { [0]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> int(0) } [1]=> float(11) [2]=> string(31) "AAAAAAAABBBBCCCC" }
Output for 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 10 of 20 bytes' in /in/fILUd:3 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;r:3;;m:a:...') #1 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #2 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.4.20 - 5.4.43, 5.5.4 - 5.5.27, 5.6.0 - 5.6.11
array(3) { [0]=> object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> &NULL } [1]=> float(11) [2]=> string(31) "AAAAAAAABBBBCCCC" }
Output for 5.4.14 - 5.4.17, 5.5.0
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 20 bytes' in /in/fILUd:3 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;r:3;;m:a:...') #1 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #2 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.13
Notice: unserialize(): Error at offset 32 of 136 bytes in /in/fILUd on line 3 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 20 bytes' in /in/fILUd:3 Stack trace: #0 [internal function]: ArrayObject->unserialize('x:i:0;r:3;;m:a:...') #1 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #2 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.3.3 - 5.3.29
Notice: unserialize(): Error at offset 32 of 136 bytes in /in/fILUd on line 3 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 20 bytes' in /in/fILUd:3 Stack trace: #0 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #1 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.2
Notice: unserialize(): Error at offset 32 of 136 bytes in /in/fILUd on line 0 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 20 bytes' in /in/fILUd:3 Stack trace: #0 /in/fILUd(3): unserialize('a:3:{i:0;C:11:"...') #1 {main} thrown in /in/fILUd on line 3
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Warning: Class ArrayObject has no unserializer in /in/fILUd on line 3 Notice: unserialize(): Error at offset 26 of 136 bytes in /in/fILUd on line 3 bool(false)
Output for 4.3.2 - 5.0.5
Notice: unserialize(): Error at offset 9 of 136 bytes in /in/fILUd on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 9 of 136 bytes in /in/fILUd on line 3 bool(false)