3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $image = 'http://island-alpaca.selfip.com:10202/SnapShotJPEG?Resolution=640x480&Quality=Standard'; $options = array( CURLOPT_URL => $image, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_MAXREDIRS => 10 ); $ch = curl_init(); curl_setopt_array($ch, $options); $cURL_source = curl_exec($ch); curl_close($ch); echo len($cURL_source);
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /in/aeTmK on line 5 Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /in/aeTmK on line 6 Notice: Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' in /in/aeTmK on line 7 Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /in/aeTmK on line 8 Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /in/aeTmK on line 9 Notice: Use of undefined constant CURLOPT_MAXREDIRS - assumed 'CURLOPT_MAXREDIRS' in /in/aeTmK on line 10 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/aeTmK:13 Stack trace: #0 {main} thrown in /in/aeTmK on line 13
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /in/aeTmK on line 5 Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /in/aeTmK on line 6 Notice: Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' in /in/aeTmK on line 7 Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /in/aeTmK on line 8 Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /in/aeTmK on line 9 Notice: Use of undefined constant CURLOPT_MAXREDIRS - assumed 'CURLOPT_MAXREDIRS' in /in/aeTmK on line 10 Fatal error: Call to undefined function curl_init() in /in/aeTmK on line 13
Process exited with code 255.
Output for 5.2.3 - 5.4.45
Fatal error: Call to undefined function curl_init() in /in/aeTmK on line 13
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to undefined function curl_init() in <b>/in/aeTmK</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: curl_init() in <b>/in/aeTmK</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: curl_init() in <b>/in/aeTmK</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: curl_init() in <b>/in/aeTmK</b> on line <b>13</b><br />