3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lien = "http://www.hatshowroom.com/chapeaux/8-feutre-monkey-noir-3000008353259.html"; if(urlExist($lien) === FALSE){ echo 'KO'; } else { echo "Goog"; } function urlExist($url) { $file_headers = @get_headers($url); if($file_headers[0] == 'HTTP/1.1 404 Not Found'){ return false; } else { return true; } }
Output for 5.0.0 - 7.2.0
Goog
Output for 4.3.2 - 4.4.9

Process exited with code 255.
Output for 4.3.0 - 4.3.1