3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo var_dump(token_get_all('<?php function(int $a){};')[3]);
based on uTlOT
Output for 7.0.0 - 7.2.0
array(3) { [0]=> int(319) [1]=> string(3) "int" [2]=> int(1) }
Output for 5.6.0 - 5.6.28
array(3) { [0]=> int(310) [1]=> string(3) "int" [2]=> int(1) }
Output for 5.5.0 - 5.5.38
array(3) { [0]=> int(308) [1]=> string(3) "int" [2]=> int(1) }