3v4l.org

run code in 200+ PHP versions simultaneously
<?php $str = "\$\x7ffoo = 1; echo \$\x7ffoo;"; echo $str . "\n"; eval($str);
Output for 7.1.0 - 7.4.0
$foo = 1; echo $foo; Warning: Unexpected character in input: '' (ASCII=127) state=0 in /in/UOe2C(5) : eval()'d code on line 1 Parse error: syntax error, unexpected 'foo' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$' in /in/UOe2C(5) : eval()'d code on line 1
Process exited with code 255.