3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tokens = token_get_all('<?php $a = 1 + 2; echo $a ?>'); foreach($tokens as $token) { if(is_array($token)) { echo token_name($token[0]); } else { echo $token; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
T_OPEN_TAGT_VARIABLET_WHITESPACE=T_WHITESPACET_LNUMBERT_WHITESPACE+T_WHITESPACET_LNUMBER;T_WHITESPACET_ECHOT_WHITESPACET_VARIABLET_WHITESPACET_CLOSE_TAG