3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php "{$/**/phpinfo()}"; $tokens = token_get_all('<?php $a = "{$|phpinfo()}";'); foreach ($tokens as $token) { if (is_array($token)) echo (token_name($token[0]) . ': "' . $token[1] . '"'."\n"); else echo ('"' . $token . '"'."\n"); }
Output for 5.4.0 - 5.5.9
Parse error: syntax error, unexpected 'phpinfo' (T_STRING), expecting variable (T_VARIABLE) or '$' in /in/ghWaJ on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /in/ghWaJ on line 2
Process exited with code 255.