3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r($_SERVER['argv']); $pipes = array(); proc_open('/bin/echo', array(), $pipes, null, $_SERVER); print_r($_SERVER['argv']);
Output for 7.0.14 - 7.1.0
Array ( [0] => /in/s35fA ) Notice: Array to string conversion in /in/s35fA on line 5 Array ( [0] => /in/s35fA )
Output for 7.0.9 - 7.0.12
Array ( [0] => /in/s35fA ) Notice: Array to string conversion in /in/s35fA on line 5 Warning: proc_open(): fork failed - Resource temporarily unavailable in /in/s35fA on line 5 Array ( [0] => /in/s35fA )
Output for 5.4.27 - 5.4.45, 5.5.11 - 5.6.26, 7.0.0 - 7.0.8
Array ( [0] => /in/s35fA ) Notice: Array to string conversion in /in/s35fA on line 5 Notice: Array to string conversion in /in/s35fA on line 5 Warning: proc_open(): fork failed - Resource temporarily unavailable in /in/s35fA on line 5 Array ( [0] => /in/s35fA )
Output for 5.6.28
Array ( [0] => /in/s35fA ) Notice: Array to string conversion in /in/s35fA on line 5 Notice: Array to string conversion in /in/s35fA on line 5 Array ( [0] => /in/s35fA )
Output for 5.0.0 - 5.4.26, 5.5.0 - 5.5.10
Array ( [0] => /in/s35fA ) Notice: Array to string conversion in /in/s35fA on line 5 Warning: proc_open(): fork failed - Resource temporarily unavailable in /in/s35fA on line 5 Array
Output for 4.3.0 - 4.4.9
Array ( [0] => /in/s35fA ) Warning: proc_open() expects exactly 3 parameters, 5 given in /in/s35fA on line 5 Array ( [0] => /in/s35fA )