3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'libGou4uApi.php'; $olibGou4uApi = new libGou4uApi(); $oGou4uApi->setApiUrl('http://www.gou4u.com/api/reseller'); $oGou4uApi->setPartnerId('partner ID'); $oGou4uApi->setPartnerKey('partner Key'); // request API $sMsgId = date('YmdHis').str_pad(preg_replace('/^.+\./', '', microtime(true)), 4, '0', STR_PAD_LEFT); $sServiceType = 'test'; $aRequestData = array(); $aResponseData = $oGou4uApi->requestApi($sMsgId, $sServiceType, $aRequestData); echo '<pre>'; var_dump($aResponseData); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mi2FT
function name:  (null)
number of ops:  46
compiled vars:  !0 = $olibGou4uApi, !1 = $oGou4uApi, !2 = $sMsgId, !3 = $sServiceType, !4 = $aRequestData, !5 = $aResponseData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INCLUDE_OR_EVAL                                          'libGou4uApi.php', REQUIRE_ONCE
    4     1        NEW                                              $7      'libGou4uApi'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $7
    5     4        INIT_METHOD_CALL                                         !1, 'setApiUrl'
          5        SEND_VAL_EX                                              'http%3A%2F%2Fwww.gou4u.com%2Fapi%2Freseller'
          6        DO_FCALL                                      0          
    6     7        INIT_METHOD_CALL                                         !1, 'setPartnerId'
          8        SEND_VAL_EX                                              'partner+ID'
          9        DO_FCALL                                      0          
    7    10        INIT_METHOD_CALL                                         !1, 'setPartnerKey'
         11        SEND_VAL_EX                                              'partner+Key'
         12        DO_FCALL                                      0          
   10    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'YmdHis'
         15        DO_ICALL                                         $13     
         16        INIT_FCALL                                               'str_pad'
         17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%2F%5E.%2B%5C.%2F'
         19        SEND_VAL                                                 ''
         20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $14     
         23        SEND_VAR                                                 $14
         24        DO_ICALL                                         $15     
         25        SEND_VAR                                                 $15
         26        SEND_VAL                                                 4
         27        SEND_VAL                                                 '0'
         28        SEND_VAL                                                 0
         29        DO_ICALL                                         $16     
         30        CONCAT                                           ~17     $13, $16
         31        ASSIGN                                                   !2, ~17
   11    32        ASSIGN                                                   !3, 'test'
   12    33        ASSIGN                                                   !4, <array>
   13    34        INIT_METHOD_CALL                                         !1, 'requestApi'
         35        SEND_VAR_EX                                              !2
         36        SEND_VAR_EX                                              !3
         37        SEND_VAR_EX                                              !4
         38        DO_FCALL                                      0  $21     
         39        ASSIGN                                                   !5, $21
   15    40        ECHO                                                     '%3Cpre%3E'
   16    41        INIT_FCALL                                               'var_dump'
         42        SEND_VAR                                                 !5
         43        DO_ICALL                                                 
   17    44        ECHO                                                     '%3C%2Fpre%3E'
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.44 ms | 1400 KiB | 23 Q