3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(token_get_all("function() test { return 1} "));
Output for 7.0.0 - 7.2.0
Array ( [0] => Array ( [0] => 321 [1] => function() test { return 1} [2] => 1 ) )
Output for 5.6.8 - 5.6.28
Array ( [0] => Array ( [0] => 314 [1] => function() test { return 1} [2] => 1 ) )
Output for 5.5.24 - 5.5.35
Array ( [0] => Array ( [0] => 312 [1] => function() test { return 1} [2] => 1 ) )
Output for 5.3.21 - 5.4.45
Array ( [0] => Array ( [0] => 311 [1] => function() test { return 1} [2] => 1 ) )