3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r( (object) array( "\0*\0bar" => 1, "\0Foo\0baz" => 2, ) );
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
stdClass Object ( [bar:protected] => 1 [baz:Foo:private] => 2 )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
stdClass Object ( [bar:protected] => 1 [baz:private] => 2 )
Output for 4.3.3 - 4.4.9
stdClass Object ( [*bar] => 1 [Foobaz] => 2 )
Output for 4.3.0 - 4.3.2
stdClass Object ( [] => 1 [] => 2 )