3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "https://uat.billdesk.com/pgidsk/PGIMerchantPayment?hidRequestId=PGIME600"; // 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" => "test" ) )); print_R($curl); $data1 = curl_exec($curl); print("\n\nError: ".curl_error()." / ".curl_errno());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XA2GQ
function name:  (null)
number of ops:  32
compiled vars:  !0 = $url, !1 = $curl, !2 = $data1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fuat.billdesk.com%2Fpgidsk%2FPGIMerchantPayment%3FhidRequestId%3DPGIME600'
    5     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !1, $4
    7     4        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
          5        SEND_VAR_EX                                              !1
    8     6        FETCH_CONSTANT                                   ~6      'CURLOPT_RETURNTRANSFER'
          7        INIT_ARRAY                                       ~7      1, ~6
    9     8        FETCH_CONSTANT                                   ~8      'CURLOPT_URL'
          9        ADD_ARRAY_ELEMENT                                ~7      !0, ~8
   10    10        FETCH_CONSTANT                                   ~9      'CURLOPT_POST'
         11        ADD_ARRAY_ELEMENT                                ~7      1, ~9
   11    12        FETCH_CONSTANT                                   ~10     'CURLOPT_POSTFIELDS'
    8    13        ADD_ARRAY_ELEMENT                                ~7      <array>, ~10
         14        SEND_VAL_EX                                              ~7
         15        DO_FCALL                                      0          
   15    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   16    19        INIT_FCALL_BY_NAME                                       'curl_exec'
         20        SEND_VAR_EX                                              !1
         21        DO_FCALL                                      0  $13     
         22        ASSIGN                                                   !2, $13
   18    23        INIT_FCALL_BY_NAME                                       'curl_error'
         24        DO_FCALL                                      0  $15     
         25        CONCAT                                           ~16     '%0A%0AError%3A+', $15
         26        CONCAT                                           ~17     ~16, '+%2F+'
         27        INIT_FCALL_BY_NAME                                       'curl_errno'
         28        DO_FCALL                                      0  $18     
         29        CONCAT                                           ~19     ~17, $18
         30        ECHO                                                     ~19
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.35 ms | 1396 KiB | 15 Q