3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $cwd = '/tmp'; $env = array('some_option' => 'aeiou'); $process = proc_open('php', $descriptorspec, $pipes, $cwd); var_dump($process);
Output for 5.4.42 - 7.1.0
resource(7) of type (process)
Output for 5.0.0 - 5.4.41
Warning: proc_open(): fork failed - Resource temporarily unavailable in /in/GSJVU on line 11 bool(false)
Output for 4.3.0 - 4.4.9
Warning: proc_open() expects exactly 3 parameters, 4 given in /in/GSJVU on line 11 bool(false)