3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); $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(); ?>
based on Rfpno
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 22
Branch analysis from position: 22
2 jumps found. (Code = 107) Position 1 = 23, Position 2 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S4K8g
function name:  (null)
number of ops:  33
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        ASSIGN                                                   !0, <array>
   6     9        ASSIGN                                                   !1, <array>
   7    10        NEW                                              $10     :3
        11        SEND_VAL_EX                                              'http%3A%2F%2Fturismar.servidoresdelsur.uy%3A8081%2FPostDesa%2FReservaServicio.svc%3Fwsdl'
        12        SEND_VAR_EX                                              !0
        13        DO_FCALL                                      0          
        14        ASSIGN                                                   !2, $10
   9    15        INIT_METHOD_CALL                                         !2, 'DoLogin'
        16        SEND_VAR_EX                                              !1
        17        DO_FCALL                                      0  $13     
        18        ASSIGN                                                   !3, $13
  11    19        FETCH_OBJ_R                                      $15     !3, 'DoLoginResult'
        20        ASSIGN                                                   !4, $15
        21      > JMP                                                      ->26
  15    22  E > > CATCH                                                    'Exception', !5
  16    23    >   INIT_FCALL                                               'var_dump'
        24        SEND_VAR                                                 !5
        25        DO_ICALL                                                 
  18    26    >   INIT_FCALL                                               'header'
        27        SEND_VAL                                                 'Content-type%3A+application%2Fxml'
        28        DO_ICALL                                                 
  19    29        INIT_METHOD_CALL                                         !2, '__getLastResponse'
        30        DO_FCALL                                      0  $19     
        31        ECHO                                                     $19
  20    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0