3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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; } >
Output for 5.3.0 - 5.6.13
Parse error: syntax error, unexpected '>' in /in/DTrng on line 33
Process exited with code 255.