3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize("O:8:\"stdClass\":3:{s:7:\"\0*\0view\";s:3:\"foo\";s:7:\"\0A\0view\";s:3:\"foo\";s:4:\"view\";s:3:\"foo\";}"));
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
object(stdClass)#1 (3) { ["view":protected]=> string(3) "foo" ["view":"A":private]=> string(3) "foo" ["view"]=> string(3) "foo" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
object(stdClass)#1 (3) { ["view:protected"]=> string(3) "foo" ["view:private"]=> string(3) "foo" ["view"]=> string(3) "foo" }
Output for 4.3.5 - 4.4.9
object(stdClass)(3) { ["*view"]=> string(3) "foo" ["Aview"]=> string(3) "foo" ["view"]=> string(3) "foo" }
Output for 4.3.0 - 4.3.4
object(stdClass)(3) { [""]=> string(3) "foo" [""]=> string(3) "foo" ["view"]=> string(3) "foo" }