3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(token_name(307));
Output for 7.0.0 - 7.1.0
string(7) "UNKNOWN"
Output for 5.6.0 - 5.6.28
string(7) "T_ENDIF"
Output for 5.5.0 - 5.5.36
string(9) "T_DNUMBER"
Output for 5.1.0 - 5.4.45
string(8) "T_STRING"
Output for 5.0.0 - 5.0.5
string(16) "T_STRING_VARNAME"
Output for 4.4.2 - 4.4.9
string(10) "T_VARIABLE"
Output for 4.3.0 - 4.4.1
string(12) "T_NUM_STRING"