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 => $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/WKfvq
function name:  (null)
number of ops:  35
compiled vars:  !0 = $url, !1 = $curl, !2 = $data, !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'
    6     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !1, $5
    8     4        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
          5        SEND_VAR_EX                                              !1
    9     6        FETCH_CONSTANT                                   ~7      'CURLOPT_RETURNTRANSFER'
          7        INIT_ARRAY                                       ~8      1, ~7
   10     8        FETCH_CONSTANT                                   ~9      'CURLOPT_URL'
          9        ADD_ARRAY_ELEMENT                                ~8      !0, ~9
   11    10        FETCH_CONSTANT                                   ~10     'CURLOPT_POST'
         11        ADD_ARRAY_ELEMENT                                ~8      1, ~10
   12    12        FETCH_CONSTANT                                   ~11     'CURLOPT_POSTFIELDS'
   13    13        FETCH_CONSTANT                                   ~12     'msg'
         14        FETCH_DIM_R                                      ~13     !2, 'msg'
         15        INIT_ARRAY                                       ~14     ~13, ~12
         16        ADD_ARRAY_ELEMENT                                ~8      ~14, ~11
         17        SEND_VAL_EX                                              ~8
         18        DO_FCALL                                      0          
   16    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
   17    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $17     
         25        ASSIGN                                                   !3, $17
   19    26        INIT_FCALL_BY_NAME                                       'curl_error'
         27        DO_FCALL                                      0  $19     
         28        CONCAT                                           ~20     '%0A%0AError%3A+', $19
         29        CONCAT                                           ~21     ~20, '+%2F+'
         30        INIT_FCALL_BY_NAME                                       'curl_errno'
         31        DO_FCALL                                      0  $22     
         32        CONCAT                                           ~23     ~21, $22
         33        ECHO                                                     ~23
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.62 ms | 941 KiB | 16 Q