3v4l.org

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

preferences:
33.51 ms | 402 KiB | 5 Q