3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(token_name(375));
Output for 7.0.0 - 7.1.0
string(10) "T_METHOD_C"
Output for 5.6.8 - 5.6.28
string(13) "T_DOC_COMMENT"
Output for 5.5.24 - 5.5.35
string(20) "T_OPEN_TAG_WITH_ECHO"
Output for 5.4.0 - 5.4.45
string(12) "T_WHITESPACE"
Output for 5.3.0 - 5.3.29
string(12) "T_CURLY_OPEN"
Output for 5.1.0 - 5.2.17
string(14) "T_DOUBLE_COLON"
Output for 4.3.0 - 5.0.5
string(7) "UNKNOWN"