CURLM_CALL_MULTI_PERFORM was deprecated.
do { $mrc = curl_multi_exec($mc, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM);
try like:
do { $mrc = curl_multi_exec($mc, $active); } while ($active > 0);