3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'C:16:"SPLObjectStorage":180:{x:i:2;i:0;,a:10:{i:1;i:1;i:2;i:2;i:3;i:3;i:4;i:4;i:5;i:5;i:6;i:6;i:7;i:7;i:8;i:8;i:9;i:9;i:10;i:10;};i:0;,i:0;;m:a:2:{i:1;S:19:"\00\01\00\00AAAA\00\01\01\00\01\00BBCCC";i:2;r:11;}}}'; var_dump(unserialize($x));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught UnexpectedValueException: Error at offset 6 of 180 bytes in /in/QTv68:4 Stack trace: #0 [internal function]: SplObjectStorage->unserialize('x:i:2;i:0;,a:10...') #1 /in/QTv68(4): unserialize('C:16:"SPLObject...') #2 {main} thrown in /in/QTv68 on line 4
Process exited with code 255.
Output for 5.4.14 - 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 180 bytes' in /in/QTv68:4 Stack trace: #0 [internal function]: SplObjectStorage->unserialize('x:i:2;i:0;,a:10...') #1 /in/QTv68(4): unserialize('C:16:"SPLObject...') #2 {main} thrown in /in/QTv68 on line 4
Process exited with code 255.
Output for 5.3.20 - 5.4.13
Notice: unserialize(): Error at offset 29 of 210 bytes in /in/QTv68 on line 4 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Error at offset 6 of 180 bytes' in /in/QTv68:4 Stack trace: #0 [internal function]: SplObjectStorage->unserialize('x:i:2;i:0;,a:10...') #1 /in/QTv68(4): unserialize('C:16:"SPLObject...') #2 {main} thrown in /in/QTv68 on line 4
Process exited with code 255.