3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(T_DNUMBER, T_LNUMBER); var_dump(token_name(T_DNUMBER), token_name(T_LNUMBER)); var_dump(token_get_name(431)); var_dump(token_get_all('<?php 18446744073709551615; 0xFFFFFFFFFFFFFFFF; 01777777777777777777777; 0177777777777777777777787; 0b1111111111111111111111111111111111111111111111111111111111111111;'));
based on mrmWl
Output for 7.0.0 - 7.1.0
int(318) int(317) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Uncaught Error: Call to undefined function token_get_name() in /in/Eqc9E:5 Stack trace: #0 {main} thrown in /in/Eqc9E on line 5
Process exited with code 255.
Output for 5.1.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
int(306) int(305) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.28
int(309) int(308) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 5.5.24 - 5.5.35
int(307) int(306) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
int(305) int(304) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
int(304) int(303) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function: token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.4
int(304) int(303) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function: token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.1
int(303) int(302) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function: token_get_name() in /in/Eqc9E on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
int(303) int(302) string(9) "T_DNUMBER" string(9) "T_LNUMBER" Fatal error: Call to undefined function: token_get_name() in /in/Eqc9E on line 5