3v4l.org

run code in 300+ PHP versions simultaneously
<?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 )
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected end of file in /in/50L8A on line 18
Process exited with code 255.

preferences:
188.1 ms | 1387 KiB | 65 Q