3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapService { const WSDL_URL = 'https://soap.cap.co.uk/Vehicles/CapVehicles.asmx?WSDL'; private $client; function __construct() { $this->client = new SoapClient(self::WSDL_URL, array("trace" => 1, "exception" => 0)); } function getMakes() { $header = NULL; $result = $this->client->__soapCall("GetCapMan", array( "GetCapMan" => array( "subscriberId" => 'xxxx', "password" => "xxxx", "database" => "car", "justCurrentManufacturers" => true, "bodyStyleFilter" => '' ) ), NULL, $header); return $result; } } $client = new SoapService(); $makes = $client->getMakes(); var_dump($makes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uCLZE
function name:  (null)
number of ops:  10
compiled vars:  !0 = $client, !1 = $makes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   NEW                                              $2      'SoapService'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   33     3        INIT_METHOD_CALL                                         !0, 'getMakes'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   34     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class SoapService:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uCLZE
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'SoapClient'
          1        SEND_VAL_EX                                              'https%3A%2F%2Fsoap.cap.co.uk%2FVehicles%2FCapVehicles.asmx%3FWSDL'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        ASSIGN_OBJ                                               'client'
          5        OP_DATA                                                  $1
   12     6      > RETURN                                                   null

End of function __construct

Function getmakes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uCLZE
function name:  getMakes
number of ops:  11
compiled vars:  !0 = $header, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, null
   18     1        FETCH_OBJ_R                                      ~3      'client'
          2        INIT_METHOD_CALL                                         ~3, '__soapCall'
          3        SEND_VAL_EX                                              'GetCapMan'
   20     4        SEND_VAL_EX                                              <array>
   26     5        SEND_VAL_EX                                              null
   18     6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !1, $4
   28     9      > RETURN                                                   !1
   29    10*     > RETURN                                                   null

End of function getmakes

End of class SoapService.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.59 ms | 1396 KiB | 15 Q