3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "\$\x7ffoo = 1; echo \$\x7ffoo;"; echo $str; eval($str);
based on a2JWi
Output for 7.1.0 - 7.3.0rc2
$foo = 1; echo $foo; Warning: Unexpected character in input: '' (ASCII=127) state=0 in /in/9NADQ(5) : eval()'d code on line 1 Parse error: syntax error, unexpected 'foo' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$' in /in/9NADQ(5) : eval()'d code on line 1
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.0.27
$foo = 1; echo $foo;1