3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php dodce(10); function dodce($veces){ for ($x =0;$x<$veces;$x++){ echo $x; $post_data['number'] = "&isloginfree=false&UserName=contpaq&Password=TGVv"; foreach ( $post_data as $key => $value) { $post_items[] = $key . '=' . $value; } $post_string = implode ('&', $post_items); $curl_connection = curl_init("http://notas.site50.net/IP/esedos.php"); curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 300); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); //curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); $result = curl_exec($curl_connection); curl_getinfo($curl_connection); curl_errno($curl_connection) . '-' .curl_error($curl_connection); curl_close($curl_connection); } } ?>
Output for 7.0.0 - 7.1.0
0 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/cO9QD:12 Stack trace: #0 /in/cO9QD(2): dodce(10) #1 {main} thrown in /in/cO9QD on line 12
Process exited with code 255.
Output for 5.0.0 - 5.6.28
0 Fatal error: Call to undefined function curl_init() in /in/cO9QD on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
0 Fatal error: Call to undefined function: curl_init() in /in/cO9QD on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
0 Fatal error: Call to undefined function: curl_init() in /in/cO9QD on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
0 Fatal error: Call to undefined function: curl_init() in /in/cO9QD on line 12