I've looking for a php function to quickly know if a url is working or not.

i have a code that goes across 900 urls and it must work as quick as possible, so i would like to find something that waits about 10 seconds max per each URL and executes an extraction code if the url exists and jumps to the next one if not.

I tried fopen, fsocks and curl functions without good results.

Thank you all!