3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code ='<?php function test($a) { echo $a; } $a = 10; test($a); ?>'; $tokens = token_get_all($code); foreach ($tokens as $row) { echo token_name($row[0]), "\r\n"; }

preferences:
36.93 ms | 402 KiB | 5 Q