3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'ytest'; create_function("", "};$echo 'y'//");
Output for 5.4.0 - 7.1.0
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: syntax error, unexpected end of file in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 5.1.1, 5.1.3 - 5.1.4, 5.1.6 - 5.3.29
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: syntax error, unexpected $end in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 5.1.2, 5.1.5
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 //} Parse error: syntax error, unexpected $end in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 5.1.0
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3
Process exited with code 137.
Output for 5.0.4 - 5.0.5
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: parse error, unexpected $ in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.3
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: parse error, unexpected $ in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 4.4.3 - 4.4.9
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: syntax error, unexpected $end in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 4.4.2
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 //} Parse error: syntax error, unexpected $end in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
ytest Notice: Undefined variable: echo in /in/lm6R8 on line 3 Parse error: parse error in /in/lm6R8(3) : runtime-created function on line 1
Process exited with code 255.