3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "https://uat.billdesk.com/pgidsk/PGIMerchantPayment?hidRequestId=PGIME600"; $data['msg'] = "test"; // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $url, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => array( msg => $data['msg'] ) )); print_R($curl); $data1 = curl_exec($curl); print("\n\nError: ".curl_error()." / ".curl_errno());
based on WKfvq
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/uTDtE:6 Stack trace: #0 {main} thrown in /in/uTDtE on line 6
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/uTDtE on line 6
Process exited with code 255.