Some problems I've found are: redirects and non 200 status codes.
I plan on redoing the whole thing in JavaScript or any other client side technology and add color coding.
You might also want to look into PHP's curl wrapper which is a lot more powerful[2].
[0]https://secure.php.net/manual/en/function.filter-var.php