3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data='a:1:{i:0;S:17:"\00\01\00\00AAAA\00\01\01\00\01\00\0B\BC\CC";}'; var_dump(unserialize($data)); ?> ~ ~ ~ ~
based on SULib
Output for 5.2.1, 5.2.4 - 7.2.0
array(1) { [0]=> string(17) "AAAA ��" } ~ ~ ~ ~
Output for 5.2.2 - 5.2.3
Notice: unserialize(): Error at offset 34 of 61 bytes in /in/Z1Tbu on line 4 bool(false) ~ ~ ~ ~
Output for 4.3.2 - 5.2.0
Notice: unserialize(): Error at offset 9 of 61 bytes in /in/Z1Tbu on line 4 bool(false) ~ ~ ~ ~
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 9 of 61 bytes in /in/Z1Tbu on line 4 bool(false) ~ ~ ~ ~