3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public static function foo() { $f = function() { echo get_called_class()."\n"; } } } class B extends A {} B::foo();
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '}' in /in/E4vdC on line 7
Process exited with code 255.