Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Execute a command and open file pointers for input/output
<?php proc_open(    array|string $command,    array $descriptor_spec,    array &$pipes,    ?string $cwd = null,    ?array $env_vars = null,    ?array $options = null): resource|false
<?php         $input = (defined('STDIN') ? STDIN : fopen('php://input', 'r+'));



        if ($isTtySupported === null && function_exists('proc_open')) {

            $isTtySupported = (bool) @proc_open('echo 1 >/dev/null', [['file', '/dev/tty', 'r'], ['file', '/dev/tty', 'w'], ['file', '/dev/tty', 'w']], $pipes);

        }



        if (! $isTtySupported) {
<?php             2 => ['pipe', 'w'],

        ];



        $process = proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);

        if (! is_resource($process)) {

            return null;

        }