3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo var_dump(token_get_all('<?php function(int $a){};')[4]);
based on IJK0G
Output for 7.0.0 - 7.2.0
array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(1) }
Output for 5.6.8 - 5.6.28
array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(1) }
Output for 5.5.24 - 5.5.35
array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(1) }
Output for 5.4.10 - 5.4.45
array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(1) }
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/XI22S on line 3
Process exited with code 255.