3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "http://10.0.0.222/iptecno/posicio-global?destination=node/6"; $postData = array("name" => "roberto", "pass" => "Razorin00", "op" => "Log in", "form_id" => "user_login_block"); $elements = array(); foreach ($postData as $name=>$value) { $elements[] = "{$name}=".urlencode($value); } $handler = curl_init(); curl_setopt($handler, CURLOPT_URL, $url); curl_setopt($handler, CURLOPT_POST,true); curl_setopt($handler, CURLOPT_POSTFIELDS, $elements); $response = curl_exec ($handler); curl_close($handler); print_r($response);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/4nWYX:9 Stack trace: #0 {main} thrown in /in/4nWYX on line 9
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/4nWYX on line 9
Process exited with code 255.