title: Checking Multi URL status
body: <p>I want a lot of domain address for checking the status.
  I try multi curl but its to slow</p>
  
  <pre><code>class BotCronJobs extends Controller {
  
      public function __construct() {
      }
  
      public function index() {
          $Query = servers::all();    
  
          $urls = [];
          foreach ($Query as $item){
              $urls[$item-&gt;id] = $item-&gt;serverUrl;
          }
          var_dump($this-&gt;test($urls));
      }
  
      public function test($urls = []) {
  
          $status = [];
          $mh = curl_multi_init();
          foreach($urls as $key =&gt; $value){
              $ch[$key] = curl_init($value);
              curl_setopt($ch[$key], CURLOPT_NOBODY, true);
              curl_setopt($ch[$key], CURLOPT_HEADER, true);
              curl_setopt($ch[$key], CURLOPT_RETURNTRANSFER, true);
              curl_setopt($ch[$key], CURLOPT_SSL_VERIFYPEER, false);
              curl_setopt($ch[$key], CURLOPT_SSL_VERIFYHOST, false);
              curl_multi_add_handle($mh,$ch[$key]);
          }
  
          do {
              curl_multi_exec($mh, $running);
              curl_multi_select($mh);
          } while ($running &gt; 0);
  
          foreach(array_keys($ch) as $key){
              $status[$key][] = curl_getinfo($ch[$key], CURLINFO_HTTP_CODE);
              $status[$key][] = curl_getinfo($ch[$key], CURLINFO_EFFECTIVE_URL);
              curl_multi_remove_handle($mh, $ch[$key]);
          }
  
          curl_multi_close($mh);
  
          return $status;
  
      }
  }
  </code></pre>
  
  <p>I just need to check is server online or not and every server have an id it's important for me to understand which server is offline.
  is there any faster way?</p>