3v4l.org

run code in 300+ PHP versions simultaneously
<?php $endpoint = 'http://www.corretor-online.com.br/HostWS.asmx?WSDL'; try { $client = new SoapClient( $endpoint, array( 'soap_version' => SOAP_1_2, 'trace' => 1 ) ); $data = array( 'corretora' => 'COLWEB', 'userName' => 'luca01', 'password' => '123456' ); try { $response = $client->Login( $data ); echo '<pre>'; print_r( $response ); } catch (Exception $e) { echo $e->getMessage(); } } catch (SoapFault $e) { echo $e->getMessage(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Found catch point at position: 24
Branch analysis from position: 24
2 jumps found. (Code = 107) Position 1 = 25, Position 2 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZoYIU
function name:  (null)
number of ops:  29
compiled vars:  !0 = $endpoint, !1 = $client, !2 = $data, !3 = $response, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.corretor-online.com.br%2FHostWS.asmx%3FWSDL'
    5     1        NEW                                              $6      'SoapClient'
          2        SEND_VAR_EX                                              !0
          3        FETCH_CONSTANT                                   ~7      'SOAP_1_2'
          4        INIT_ARRAY                                       ~8      ~7, 'soap_version'
          5        ADD_ARRAY_ELEMENT                                ~8      1, 'trace'
          6        SEND_VAL_EX                                              ~8
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
    6     9        ASSIGN                                                   !2, <array>
   12    10        INIT_METHOD_CALL                                         !1, 'Login'
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $12     
         13        ASSIGN                                                   !3, $12
   13    14        ECHO                                                     '%3Cpre%3E'
   14    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > JMP                                                      ->23
   15    19  E > > CATCH                                       last         'Exception'
   16    20    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         21        DO_FCALL                                      0  $15     
         22        ECHO                                                     $15
         23    > > JMP                                                      ->28
   18    24  E > > CATCH                                       last         'SoapFault'
   19    25    >   INIT_METHOD_CALL                                         !4, 'getMessage'
         26        DO_FCALL                                      0  $16     
         27        ECHO                                                     $16
   21    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.9 ms | 1401 KiB | 15 Q