3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); $a = eval(var_export($foo, true)); var_export((array) $foo)); var_dump( $foo->{"\0*\0bar"}, $foo->{"\0Foo\0foo"} ); $foo->{"\0*\0bar"} = 'baz'; $foo->{"\0Foo\0foo"} = 'bar'; var_dump(array($foo));
Output for 5.3.0 - 5.4.16
Parse error: syntax error, unexpected ')' in /in/NbmZQ on line 13
Process exited with code 255.