3v4l.org

run code in 150+ 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 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.12.0
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" } Notice: Unable to unserialize: [a:2:{i:0;s:3:"foo";i:1;s:3:"bar";]. Unexpected end of buffer during unserialization. in /in/PhYHX on line 3 bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
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)