3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $ok = true; while ( $ok ) { $i = $i + 1; $tmp="http://www.newgrounds.com/audio/listen/".$i; if (URLIsValid($tmp)) { print $i; print"\n"; print $tmp; 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:
29.53 ms | 402 KiB | 5 Q