3v4l.org

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