3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 ) );
based on fW0Y1
Output for 7.0.0 - 7.1.0
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.
Output for 5.0.0 - 5.6.28, hhvm-3.12.0
Fatal error: Call to undefined function is_url_exists() in /in/uMX3b on line 17
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: is_url_exists() in /in/uMX3b on line 17
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: is_url_exists() in /in/uMX3b on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: is_url_exists() in /in/uMX3b on line 17