3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://testcURL.com/?item1=value&item2=value2', CURLOPT_USERAGENT => 'Codular Sample cURL Request' )); // Send the request & save response to $resp $resp = curl_exec($curl); // Close request to clear up some resources curl_close($curl);
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/GatMv:2 Stack trace: #0 {main} thrown in /in/GatMv on line 2
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function curl_init() in /in/GatMv on line 2
Process exited with code 255.