title: PHP Ping no response
body: <p>I'm running a local dev environment using larval valet on my Mac.
  And I'm trying to ping a host, however I never get a response.</p>
  <p>Running a simple shell command like &quot;ls&quot; works and gives the expected output.</p>
  <p><strong>Code</strong></p>
  <pre><code>function getStatus($name) {
      $ip =   &quot;1.1.1.1&quot;;
      exec(&quot;ping -n 3 $ip&quot;, $output, $status);
      print_r($output);
      print_r($status);
  }
  </code></pre>
  <p><strong>Output:</strong></p>
  <pre><code>Array ( ) 127
  </code></pre>