3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("soap.wsdl_cache_enabled", "0"); ini_set('default_socket_timeout', 600); try { $soap_option = array('trace' => true, 'connection_timeout' => 120, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE,); $requestParams = array('usuario' => 'reservasweb', 'pass' => 'Turis2015'); $client = new SoapClient('http://turismar.servidoresdelsur.uy:8081/PostDesa/ReservaServicio.svc?wsdl',$soap_option); $result = $client->DoLogin($requestParams); //, array('trace' => 1, 'soap_version' => SOAP_2_0, 'encoding'=> 'UTF-8') $sessionID = $result->DoLoginResult; //echo $sessionID; } catch (Exception $e) { var_dump($e); } header('Content-type: application/xml'); echo $client->__getLastResponse(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 27
Branch analysis from position: 27
2 jumps found. (Code = 107) Position 1 = 28, Position 2 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xi306
function name:  (null)
number of ops:  38
compiled vars:  !0 = $soap_option, !1 = $requestParams, !2 = $client, !3 = $result, !4 = $sessionID, !5 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'soap.wsdl_cache_enabled'
          2        SEND_VAL                                                 '0'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'default_socket_timeout'
          6        SEND_VAL                                                 600
          7        DO_ICALL                                                 
    5     8        INIT_ARRAY                                       ~8      <true>, 'trace'
          9        ADD_ARRAY_ELEMENT                                ~8      120, 'connection_timeout'
         10        ADD_ARRAY_ELEMENT                                ~8      <true>, 'exceptions'
         11        FETCH_CONSTANT                                   ~9      'WSDL_CACHE_NONE'
         12        ADD_ARRAY_ELEMENT                                ~8      ~9, 'cache_wsdl'
         13        ASSIGN                                                   !0, ~8
    6    14        ASSIGN                                                   !1, <array>
    7    15        NEW                                              $12     'SoapClient'
         16        SEND_VAL_EX                                              'http%3A%2F%2Fturismar.servidoresdelsur.uy%3A8081%2FPostDesa%2FReservaServicio.svc%3Fwsdl'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !2, $12
    9    20        INIT_METHOD_CALL                                         !2, 'DoLogin'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $15     
         23        ASSIGN                                                   !3, $15
   11    24        FETCH_OBJ_R                                      ~17     !3, 'DoLoginResult'
         25        ASSIGN                                                   !4, ~17
         26      > JMP                                                      ->31
   15    27  E > > CATCH                                       last         'Exception'
   16    28    >   INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !5
         30        DO_ICALL                                                 
   18    31    >   INIT_FCALL                                               'header'
         32        SEND_VAL                                                 'Content-type%3A+application%2Fxml'
         33        DO_ICALL                                                 
   19    34        INIT_METHOD_CALL                                         !2, '__getLastResponse'
         35        DO_FCALL                                      0  $21     
         36        ECHO                                                     $21
   20    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
208.88 ms | 1400 KiB | 19 Q