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 = json_encode($postData); $handler = curl_init(); curl_setopt($handler, CURLOPT_URL, $url); curl_setopt($handler, CURLOPT_POST,true); curl_setopt($handler, CURLOPT_POSTFIELDS, $elements); curl_exec($handler); $info = curl_getinfo($handler); curl_close($handler);
based on 4nWYX
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ot28i:5 Stack trace: #0 {main} thrown in /in/ot28i on line 5
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/ot28i on line 5
Process exited with code 255.