3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { public static function sm() { echo "foo" } } class bar extends foo { public static function sm() { echo "bar" } } foo::sm(); bar::sm();
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/bnvEq on line 7
Process exited with code 255.