3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo token_name(310); echo T_LNUMBER; echo T_DNUMBER; print_r(token_get_all('<?php Ox9999999999999999999999999 Ox9999'));
based on 6fmnc
Output for 7.0.0 - 7.3.0beta1
T_ENDIF317318Array ( [0] => Array ( [0] => 379 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 319 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 382 [1] => [2] => 1 ) [3] => Array ( [0] => 319 [1] => Ox9999 [2] => 1 ) )
Output for 5.6.7 - 5.6.28
T_STRING308309Array ( [0] => Array ( [0] => 376 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 310 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 379 [1] => [2] => 1 ) [3] => Array ( [0] => 310 [1] => Ox9999 [2] => 1 ) )
Output for 5.5.24 - 5.5.35
T_VARIABLE306307Array ( [0] => Array ( [0] => 374 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 308 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 377 [1] => [2] => 1 ) [3] => Array ( [0] => 308 [1] => Ox9999 [2] => 1 ) )
Output for 5.4.0 - 5.4.45
T_NUM_STRING305306Array ( [0] => Array ( [0] => 372 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 307 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 375 [1] => [2] => 1 ) [3] => Array ( [0] => 307 [1] => Ox9999 [2] => 1 ) )
Output for 5.3.0 - 5.3.29
T_NUM_STRING305306Array ( [0] => Array ( [0] => 368 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 307 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 371 [1] => [2] => 1 ) [3] => Array ( [0] => 307 [1] => Ox9999 [2] => 1 ) )
Output for 5.2.2 - 5.2.17
T_NUM_STRING305306Array ( [0] => Array ( [0] => 367 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 307 [1] => Ox9999999999999999999999999 [2] => 1 ) [2] => Array ( [0] => 370 [1] => [2] => 1 ) [3] => Array ( [0] => 307 [1] => Ox9999 [2] => 1 ) )
Output for 5.1.0 - 5.2.1
T_NUM_STRING305306Array ( [0] => Array ( [0] => 367 [1] => <?php ) [1] => Array ( [0] => 307 [1] => Ox9999999999999999999999999 ) [2] => Array ( [0] => 370 [1] => ) [3] => Array ( [0] => 307 [1] => Ox9999 ) )
Output for 5.0.0 - 5.0.5
T_INLINE_HTML304305Array ( [0] => Array ( [0] => 365 [1] => <?php ) [1] => Array ( [0] => 306 [1] => Ox9999999999999999999999999 ) [2] => Array ( [0] => 368 [1] => ) [3] => Array ( [0] => 306 [1] => Ox9999 ) )
Output for 4.4.2 - 4.4.9
T_CHARACTER303304Array ( [0] => Array ( [0] => 354 [1] => <?php ) [1] => Array ( [0] => 305 [1] => Ox9999999999999999999999999 ) [2] => Array ( [0] => 357 [1] => ) [3] => Array ( [0] => 305 [1] => Ox9999 ) )
Output for 4.3.0 - 4.4.1
T_BAD_CHARACTER302303Array ( [0] => Array ( [0] => 353 [1] => <?php ) [1] => Array ( [0] => 304 [1] => Ox9999999999999999999999999 ) [2] => Array ( [0] => 356 [1] => ) [3] => Array ( [0] => 304 [1] => Ox9999 ) )