3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
Warning: Trying to access array offset on value of type bool in /in/8MQ9E on line 13 Goog
Output for rfc.property-hooks
Warning: Trying to access array offset on false in /in/8MQ9E on line 13 Goog

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.94 ms | 401 KiB | 8 Q