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); print_r($tokens); foreach ($tokens as $row) { //echo token_name($row[0]), "\r\n"; }

preferences:
37.39 ms | 402 KiB | 5 Q