3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval("echo hello;"); shell_exec("ls");
based on 4hmFj
Output for 8.0.0alpha3
Fatal error: Uncaught Error: Undefined constant "hello" in /in/RqpBc(2) : eval()'d code:1 Stack trace: #0 /in/RqpBc(2): eval() #1 {main} thrown in /in/RqpBc(2) : eval()'d code on line 1
Process exited with code 255.
Output for 8.0.0alpha1 - alpha2
Fatal error: Uncaught Error: Undefined constant 'hello' in /in/RqpBc(2) : eval()'d code:1 Stack trace: #0 /in/RqpBc(2): eval() #1 {main} thrown in /in/RqpBc(2) : eval()'d code on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20, 7.4.0 - 7.4.8
Warning: Use of undefined constant hello - assumed 'hello' (this will throw an Error in a future version of PHP) in /in/RqpBc(2) : eval()'d code on line 1 hello Warning: shell_exec(): Unable to execute 'ls' in /in/RqpBc on line 3