3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $u = "test@mail.com"; $p = "******************"; $fields = array("user[email_address]" => $u, "user[password]" => $p); $ch = curl_init(); //Set curl options $options = array( CURLOPT_URL => "https://secure.izettle.com/portal/login", CURLOPT_COOKIEJAR => "cookie.txt", CURLOPT_COOKIEFILE => "cookie.txt", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $fields ); curl_setopt_array($ch, $options); curl_exec($ch); curl_setopt($ch, CURLOPT_URL, "https://secure.izettle.com/portal/reports?date=2014-05-21"); $page = curl_exec($ch); echo $page.'<br>'; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/u1W8X:6 Stack trace: #0 {main} thrown in /in/u1W8X on line 6
Process exited with code 255.
Output for hhvm-3.12.0
<br>
Output for hhvm-3.10.0

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