3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; }
Output for 5.0.0 - 7.1.0

Process exited with code 137.
Output for 4.3.2 - 4.4.9

Process exited with code 255.
Output for 4.3.0 - 4.3.1