3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public static $val = 'Foo'; public static function huh() { echo eval(get_called_class().'::$val'; } } class Bar extends Foo { public static $val = 'bar'; } Foo::huh(); Bar::huh();
Output for 5.3.0 - 5.4.9
Parse error: syntax error, unexpected ';' in /in/DqEe0 on line 5
Process exited with code 255.