3v4l.org

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