3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requestParams = array( 'CityName' => 'Berlin', 'CountryName' => 'Germany' ); $client = new SoapClient('http://www.webservicex.net/globalweather.asmx?WSDL'); $response = $client->GetWeather($requestParams); echo file_get_contents($wsdl); die(); print_r($response); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/YJHs4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $requestParams, !1 = $client, !2 = $response, !3 = $wsdl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        NEW                                              $5      'SoapClient'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fwww.webservicex.net%2Fglobalweather.asmx%3FWSDL'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    8     5        INIT_METHOD_CALL                                         !1, 'GetWeather'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                                   !2, $8
    9     9        INIT_FCALL                                               'file_get_contents'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        ECHO                                                     $10
   10    13      > EXIT                                                     
   11    14*       INIT_FCALL                                               'print_r'
         15*       SEND_VAR                                                 !2
         16*       DO_ICALL                                                 
   12    17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.66 ms | 1399 KiB | 17 Q