3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('a:2:{i:0;s:3:"foo";i:1;r:2;}'));
Output for 4.4.0 - 7.2.6
array(2) { [0]=> string(3) "foo" [1]=> string(3) "foo" }
Output for 4.3.10 - 4.3.11
array(2) { [0]=> &string(3) "foo" [1]=> &string(3) "foo" }
Output for 4.3.2 - 4.3.9
Notice: unserialize(): Error at offset 23 of 28 bytes in /in/DfYj2 on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: unserialize() [http://www.php.net/function.unserialize]: Error at offset 23 of 28 bytes in /in/DfYj2 on line 3 bool(false)