3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $code = '<?php echo 0x00+2;'; foreach(token_get_all($code) as $c){ if(is_array($c)){ print(token_name($c[0]).": \t".htmlentities($c[1])."\n"); } else { print("$c\n"); } }
Output for 4.3.0 - 7.1.0
T_OPEN_TAG: &lt;?php T_ECHO: echo T_WHITESPACE: T_LNUMBER: 0x00 + T_LNUMBER: 2 ;