3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Example { static $function; static function method() { {self::$function}(); } } function callback() {} Example::$function = 'callback'; Example::method();
Output for 5.3.0 - 5.4.12
Parse error: syntax error, unexpected '}' in /in/9XWN6 on line 9
Process exited with code 255.