3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $curl_multi_handle = curl_multi_init(); $curl_handle1 = curl_init('iamdoooooooown.com'); curl_setopt($curl_handle1, CURLOPT_RETURNTRANSFER, true); curl_multi_add_handle($curl_multi_handle, $curl_handle1); $still_running = 1; while($still_running > 0) $multi_errors = curl_multi_exec($curl_multi_handle, $still_running); if($multi_errors != CURLM_OK) die("curl error [$multi_errors]: ".curl_error($curl_multi_handle)); if(strlen(curl_error($curl_handle1))) die("curl error: [".curl_error($curl_handle1)."]<br>"); $curl_info = curl_getinfo($curl_handle1); //info for individual requests $is_up = ($curl_info['http_code'] == 0) ? 0 : 1; $content = curl_multi_getcontent($curl_handle1); curl_multi_remove_handle($curl_multi_handle, $curl_handle1); curl_close($curl_handle1); curl_multi_close($curl_multi_handle);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function curl_multi_init() in /in/HHhmh:2 Stack trace: #0 {main} thrown in /in/HHhmh on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
curl error: [Could not resolve host: iamdoooooooown.com]<br>
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function curl_multi_init() in /in/HHhmh on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_multi_init() in /in/HHhmh on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_multi_init() in /in/HHhmh on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_multi_init() in /in/HHhmh on line 2