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 /> '); } }
Output for 4.3.0 - 7.2.0
T_OPEN_TAG: <?php <br /> { <br /> T_CLOSE_TAG: ?><br />