3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("http://www.webservicex.net/globalweather.asmx?wsdl"); $params = new stdClass; $params->CityName= 'Auckland'; $params->CountryName= 'New Zealand'; $result = $client->GetWeather($params); // Check for errors... $weatherXML = $result->GetWeatherResponse;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WQLXf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $client, !1 = $params, !2 = $result, !3 = $weatherXML
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'SoapClient'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.webservicex.net%2Fglobalweather.asmx%3Fwsdl'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    3     4        NEW                                              $7      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
    4     7        ASSIGN_OBJ                                               !1, 'CityName'
          8        OP_DATA                                                  'Auckland'
    5     9        ASSIGN_OBJ                                               !1, 'CountryName'
         10        OP_DATA                                                  'New+Zealand'
    6    11        INIT_METHOD_CALL                                         !0, 'GetWeather'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $12     
         14        ASSIGN                                                   !2, $12
    8    15        FETCH_OBJ_R                                      ~14     !2, 'GetWeatherResponse'
         16        ASSIGN                                                   !3, ~14
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.93 ms | 1393 KiB | 13 Q