3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mage_url = 'http://order.idrottssupport.se/api/?wsdl'; $mage_user = 'testAccount'; $mage_api_key = 'qweasdzxc'; $soap = new SoapClient( $mage_url ); $session_id = $soap->login( $mage_user, $mage_api_key ); echo $session_id; echo "\n"; $response = $soap->resources($session_id); echo json_encode($response); $resources = $soap->resources( $session_id ); $response = $soap->call($session_id, 'catalog_product.info', 15); echo implode("|",$response); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RRSEs
function name:  (null)
number of ops:  38
compiled vars:  !0 = $mage_url, !1 = $mage_user, !2 = $mage_api_key, !3 = $soap, !4 = $session_id, !5 = $response, !6 = $resources
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Forder.idrottssupport.se%2Fapi%2F%3Fwsdl'
    4     1        ASSIGN                                                   !1, 'testAccount'
    5     2        ASSIGN                                                   !2, 'qweasdzxc'
    7     3        NEW                                              $10     'SoapClient'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $10
    9     7        INIT_METHOD_CALL                                         !3, 'login'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAR_EX                                              !2
         10        DO_FCALL                                      0  $13     
         11        ASSIGN                                                   !4, $13
   11    12        ECHO                                                     !4
   12    13        ECHO                                                     '%0A'
   14    14        INIT_METHOD_CALL                                         !3, 'resources'
         15        SEND_VAR_EX                                              !4
         16        DO_FCALL                                      0  $15     
         17        ASSIGN                                                   !5, $15
   15    18        INIT_FCALL                                               'json_encode'
         19        SEND_VAR                                                 !5
         20        DO_ICALL                                         $17     
         21        ECHO                                                     $17
   17    22        INIT_METHOD_CALL                                         !3, 'resources'
         23        SEND_VAR_EX                                              !4
         24        DO_FCALL                                      0  $18     
         25        ASSIGN                                                   !6, $18
   20    26        INIT_METHOD_CALL                                         !3, 'call'
         27        SEND_VAR_EX                                              !4
         28        SEND_VAL_EX                                              'catalog_product.info'
         29        SEND_VAL_EX                                              15
         30        DO_FCALL                                      0  $20     
         31        ASSIGN                                                   !5, $20
   21    32        INIT_FCALL                                               'implode'
         33        SEND_VAL                                                 '%7C'
         34        SEND_VAR                                                 !5
         35        DO_ICALL                                         $22     
         36        ECHO                                                     $22
   22    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.69 ms | 1396 KiB | 17 Q