3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $ok = true; while ( $i < 90000 ) { $i = $i + 1; $tmp="http://www.newgrounds.com/audio/listen/".$i; if (!URLIsValid($tmp)) { print $i; print"\n"; } } function URLIsValid($URL) { $exists = true; $file_headers = @get_headers($URL); $InvalidHeaders = array('404', '403', '500'); foreach($InvalidHeaders as $HeaderVal) { if(strstr($file_headers[0], $HeaderVal)) { $exists = false; break; } } return $exists; }

preferences:
56.82 ms | 402 KiB | 5 Q