3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('a:2:{i:0;s:3:"foo";i:1;s:3:"bar";}')); var_dump(unserialize('a:2:{i:0;s:3:"foo";i:1;s:3:"bar";'));
Output for 7.1.10 - 7.2.0
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" } Notice: unserialize(): Error at offset 33 of 33 bytes in /in/PhYHX on line 3 bool(false)
Output for 4.3.2 - 7.1.7
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" } Notice: unserialize(): Error at offset 34 of 33 bytes in /in/PhYHX on line 3 bool(false)
Output for 4.3.0 - 4.3.1
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" } Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 34 of 33 bytes in /in/PhYHX on line 3 bool(false)