3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = 'http://www.medias-presse.info/'; function is_url_exist($url){ $ch = curl_init($url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if($code == 200){ $status = true; }else{ $status = false; } curl_close($ch); return $status; } var_dump( is_url_exists( $source ) );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function is_url_exists() in /in/uMX3b:17 Stack trace: #0 {main} thrown in /in/uMX3b on line 17
Process exited with code 255.

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:
47.82 ms | 401 KiB | 8 Q