3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { public function 123() { } }
Output for 5.4.0 - 5.4.7
Parse error: syntax error, unexpected '123' (T_LNUMBER), expecting identifier (T_STRING) in /in/Y2eBJ on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.17
Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING in /in/Y2eBJ on line 5
Process exited with code 255.