3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php "${eval('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.5.0 - 7.2.0
Warning: phpinfo() has been disabled for security reasons in /in/jQfIL(2) : eval()'d code on line 1 Notice: Undefined variable: in /in/jQfIL on line 2 T_OPEN_TAG: "<?php " T_VARIABLE: "$a" T_WHITESPACE: " " "=" T_WHITESPACE: " " """ T_CURLY_OPEN: "{" T_VARIABLE: "$phpinfo" "(" ")" "}" """ ";"
Output for 5.3.0 - 5.4.45
Parse error: syntax error, unexpected '(' in /in/jQfIL on line 2
Process exited with code 255.