3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print "Before\\n"; pcntl_exec("ls"); print "After\\n"; ?>
Output for 7.0.0 - 7.1.0
Before\n Fatal error: Uncaught Error: Call to undefined function pcntl_exec() in /in/WA5ac:3 Stack trace: #0 {main} thrown in /in/WA5ac on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Before\n Warning: Error has occurred: (errno 2) No such file or directory in /in/WA5ac on line 3 After\n
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
Before\n Fatal error: Call to undefined function pcntl_exec() in /in/WA5ac on line 3
Process exited with code 255.
Output for 5.0.0 - 5.3.29
Before\n Warning: pcntl_exec(): Error has occured: (errno 2) No such file or directory in /in/WA5ac on line 3 After\n
Output for 4.3.0 - 4.4.9
Before\n Warning: Error has occured in pcntl_exec: (errno 2) No such file or directory in /in/WA5ac on line 3 After\n