3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function namespace() {} } a::namespace();
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE), expecting identifier (T_STRING) in /in/YnFBX on line 4
Process exited with code 255.