code: private static function removeStdIO(array $fds)
      {
          foreach ($fds as $i => $fd) {
              if ($fd > 2) {
                  return array_slice($fds, $i);
              }
          }
  
          return $fds;
      }
docs: @param array $fds
  
  @return array