3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $handle = curl_init(); // set url curl_setopt($handle, CURLOPT_URL, "dd32.id.au"); //return the transfer as a string curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt( $handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP ); curl_setopt( $handle, CURLOPT_PROXY, 'test.dd32.id.au' ); curl_setopt( $handle, CURLOPT_PROXYPORT, '80' ); // $output contains the output string $output = curl_exec($handle); var_dump( $output ); var_dump( curl_error($handle), $handle );
based on LO81S
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/kcEnM:3 Stack trace: #0 {main} thrown in /in/kcEnM on line 3
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/kcEnM on line 3
Process exited with code 255.