3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public $b; } class C { public static $d; } C::$d = 'Hello world'; $a = new A; $a->b = 'C'; var_dump({$a->b}::$d);
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '{', expecting ')' in /in/gthvt on line 20
Process exited with code 255.