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)); 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.3.24, 5.3.26 - 5.4.16
Parse error: syntax error, unexpected ')' in /in/1JXj6 on line 12
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected ')' in /in/jguTl on line 12
Process exited with code 255.