3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize('O:8:"stdClass":1:{s:1:"1";i:2;}'));
Output for 5.0.0 - 5.2.5, 5.3.9 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
object(stdClass)#1 (1) { ["1"]=> int(2) }
Output for 5.2.6 - 5.3.8
object(stdClass)#1 (1) { [1]=> int(2) }
Output for 4.3.0 - 4.4.9
object(stdClass)(1) { [1]=> int(2) }