'; } $descriptorspec = [ 0 => ["pipe", "r"], // stdin 1 => ["pipe", "w"], // stdout 2 => ["pipe", "w"] // stderr ]; $process = proc_open('php', $descriptorspec, $pipes); if (is_resource($process)) { fwrite($pipes[0], $code); fclose($pipes[0]);