3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $serialized = 'a:3:{i:0;s:5:"example1";i:1;s:6:"example3";i:2;s:6:"example2";}'; var_dump(unserialize($serialized));
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: unserialize(): Error at offset 19 of 63 bytes in /in/DWkD7 on line 3 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Notice: Unable to unserialize: [a:3:{i:0;s:5:"example1";i:1;s:6:"example3";i:2;s:6:"example2";}]. Expected '"' but got 'l'. in /in/DWkD7 on line 3 bool(false)
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
Notice: unserialize(): Error at offset 21 of 63 bytes in /in/DWkD7 on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 21 of 63 bytes in /in/DWkD7 on line 3 bool(false)