3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval("echo hello"); shell_exec("ls");
based on Y60tm
Output for 8.0.0alpha3
Parse error: syntax error, unexpected end of file, expecting ";" or "," in /in/4hmFj(2) : eval()'d code on line 1
Process exited with code 255.
Output for 7.4.0 - 7.4.8, 8.0.0alpha2
Parse error: syntax error, unexpected end of file, expecting ';' or ',' in /in/4hmFj(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, 8.0.0alpha1
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/4hmFj(2) : eval()'d code on line 1
Process exited with code 255.