3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($argc > 1) { var_dump($argv); } else { $descriptorspec = array( 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to ); $proc = proc_open("php " . escapeshellarg($argv[0]) . " args lel", $descriptorspec, $pipes); fclose($pipes[0]); // default-inherited-stdin creeps me out while (proc_get_status($proc)['running']) { usleep(100 * 1000); } var_dump('stdout: ', stream_get_contents($pipes[1])); fclose($pipes[1]); proc_close($proc); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function proc_open() in /in/4uC8n:9 Stack trace: #0 {main} thrown in /in/4uC8n on line 9
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
69.39 ms | 401 KiB | 8 Q