3v4l.org

run code in 300+ PHP versions simultaneously
<?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());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uTDtE
function name:  (null)
number of ops:  37
compiled vars:  !0 = $url, !1 = $data, !2 = $curl, !3 = $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'
    3     1        ASSIGN_DIM                                               !1, 'msg'
          2        OP_DATA                                                  'test'
    6     3        INIT_FCALL_BY_NAME                                       'curl_init'
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !2, $6
    8     6        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
          7        SEND_VAR_EX                                              !2
    9     8        FETCH_CONSTANT                                   ~8      'CURLOPT_RETURNTRANSFER'
          9        INIT_ARRAY                                       ~9      1, ~8
   10    10        FETCH_CONSTANT                                   ~10     'CURLOPT_URL'
         11        ADD_ARRAY_ELEMENT                                ~9      !0, ~10
   11    12        FETCH_CONSTANT                                   ~11     'CURLOPT_POST'
         13        ADD_ARRAY_ELEMENT                                ~9      1, ~11
   12    14        FETCH_CONSTANT                                   ~12     'CURLOPT_POSTFIELDS'
   13    15        FETCH_CONSTANT                                   ~13     'msg'
         16        FETCH_DIM_R                                      ~14     !1, 'msg'
         17        INIT_ARRAY                                       ~15     ~14, ~13
         18        ADD_ARRAY_ELEMENT                                ~9      ~15, ~12
         19        SEND_VAL_EX                                              ~9
         20        DO_FCALL                                      0          
   16    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   17    24        INIT_FCALL_BY_NAME                                       'curl_exec'
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0  $18     
         27        ASSIGN                                                   !3, $18
   19    28        INIT_FCALL_BY_NAME                                       'curl_error'
         29        DO_FCALL                                      0  $20     
         30        CONCAT                                           ~21     '%0A%0AError%3A+', $20
         31        CONCAT                                           ~22     ~21, '+%2F+'
         32        INIT_FCALL_BY_NAME                                       'curl_errno'
         33        DO_FCALL                                      0  $23     
         34        CONCAT                                           ~24     ~22, $23
         35        ECHO                                                     ~24
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.71 ms | 1396 KiB | 15 Q