3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = '<?php {?>'; $tokens = token_get_all($code); foreach ($tokens as $token) { if (is_array($token)) { echo (token_name($token[0]) . ': ' . $token[1] . '<br />'); } else { echo ('' . $token . '<br />'); } }

Abusive script

This script was stopped while abusing our resources

Output for 4.3.0 - 7.0.10
T_OPEN_TAG: <?php <br />{<br />T_CLOSE_TAG: ?><br />