3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(token_name(315));
Output for 7.0.0 - 7.1.0
string(11) "T_PROTECTED"
Output for 5.1.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
string(26) "T_CONSTANT_ENCAPSED_STRING"
Output for 5.6.0 - 5.6.28
string(11) "T_CHARACTER"
Output for 5.5.0 - 5.5.36
string(25) "T_ENCAPSED_AND_WHITESPACE"
Output for 5.0.0 - 5.0.5
string(6) "T_ECHO"
Output for 4.4.2 - 4.4.9
string(4) "T_DO"
Output for 4.3.0 - 4.4.1
string(7) "T_WHILE"