3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize(serialize((object) array("\0*\0a" => "b"))));
based on 3NInK
Output for 5.3.0 - 7.2.0
object(stdClass)#1 (1) { ["a":protected]=> string(1) "b" }
Output for 5.0.0 - 5.2.17
object(stdClass)#1 (1) { ["a:protected"]=> string(1) "b" }
Output for 4.3.5 - 4.4.9
object(stdClass)(1) { ["*a"]=> string(1) "b" }
Output for 4.3.0 - 4.3.4
object(stdClass)(1) { [""]=> string(1) "b" }