$matches[1], // e.g., LISTEN 'Recv-Q' => $matches[2], // e.g., 0 'Send-Q' => $matches[3], // e.g., 128 'LocalAddress' => $matches[4], // e.g., 0.0.0.0:80 'ForeignAddress' => $matches[5], // e.g., 0.0.0.0:* 'Program' => $matches[6], // e.g., nginx 'PID' => $matches[7], // e.g., 1234 'FD' => $matches[8], // e.g., 6 ]; } } return $connections; } }