3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url ="http://www.ndesignwebagency.com/immagini/web-agency.jpg"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_TIMEOUT, 30); curl_setopt($curl, CURLOPT_NOBODY, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($curl); curl_close($curl); preg_match("/HTTP\/1\.[1|0]\s(\d{3})/",$data,$matches); return ($matches[1] == 200);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/QXI6T:3 Stack trace: #0 {main} thrown in /in/QXI6T on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Notice: Undefined index: 1 in /in/QXI6T on line 12
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/QXI6T on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_init() in /in/QXI6T on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_init() in /in/QXI6T on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_init() in /in/QXI6T on line 3