There is an array of target url
$urlArray = array('aaa','bbb','xxx','yyy','zzz');
The size of the array is not known in advance. There is also an array of proxy servers
$proxyArray = array('iii','jjj','kkk');
The size of this array is also not known.
The task is to get the maximum probability of getting 200 http_code for all url from $ urlArray array using parallel curl and proxy requests.
Such a solution comes to mind: loop the requests with further exclusion from the url array for which the answer 200 was, as the array with the url decreases, assign the same url to several proxy servers until the url array remains empty. The problem is that with this solution the target server is very heavily loaded: several requests will be sent to one url. Perhaps prompt more correct decision?