3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!class_exists('SoapClient')) { die ("You haven't installed the PHP-Soap module."); } $wsdl = 'http://localhost:8080/WebService/WebServices?wsdl'; file_get_contents($wsdl); $client = new SoapClient($wsdl, array( 'soap_version' => SOAP_1_2, 'trace' => 1, 'cache_wsdl' => WSDL_CACHE_NONE, // this is important for the purpose of the test 'exception' => true, )); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/upAcg
function name:  (null)
number of ops:  22
compiled vars:  !0 = $wsdl, !1 = $client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'SoapClient'
          2        DO_ICALL                                         $2      
          3        BOOL_NOT                                         ~3      $2
          4      > JMPZ                                                     ~3, ->6
    4     5    > > EXIT                                                     'You+haven%27t+installed+the+PHP-Soap+module.'
    6     6    >   ASSIGN                                                   !0, 'http%3A%2F%2Flocalhost%3A8080%2FWebService%2FWebServices%3Fwsdl'
    7     7        INIT_FCALL                                               'file_get_contents'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    8    10        NEW                                              $6      'SoapClient'
         11        SEND_VAR_EX                                              !0
    9    12        FETCH_CONSTANT                                   ~7      'SOAP_1_2'
         13        INIT_ARRAY                                       ~8      ~7, 'soap_version'
   10    14        ADD_ARRAY_ELEMENT                                ~8      1, 'trace'
   11    15        FETCH_CONSTANT                                   ~9      'WSDL_CACHE_NONE'
         16        ADD_ARRAY_ELEMENT                                ~8      ~9, 'cache_wsdl'
    9    17        ADD_ARRAY_ELEMENT                                ~8      <true>, 'exception'
         18        SEND_VAL_EX                                              ~8
         19        DO_FCALL                                      0          
    8    20        ASSIGN                                                   !1, $6
   15    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.34 ms | 1395 KiB | 17 Q