3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
T_OPEN_TAG: <?php <br /> { <br /> T_CLOSE_TAG: ?><br />