3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Pull in the NuSOAP code require_once('nusoap.php'); $username="pmportail01"; $password="zse4rfv!"; // Create the client instance $client = new nusoap_client('http://dev.paramaitre.com:8081/Services/PortailService.svc', 'wsdl'); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; exit(); } $parameter=array('operation'=>'LireClient',"usager" =>$username, "motDePasse" => $password, "pmPortailId" => "D1073E3F-4F84-4993-9566-60E52934ABFB" ,"EnveloppeRequete"=>array("Operation"=>"LireClient",'Params'=>array("Client"=>array('Id'=>"","NumeroClient"=>2), "RequeteId" => ""))); $client->soap_defencoding = 'UTF-8'; $result = $client->call('Requete',$parameter); if ($client->fault) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '<h2>Error</h2><pre>' . $err . '</pre>'; } else { // Display the result echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } } echo '<h2>Request</h2>'; echo '<pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2>'; echo '<pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 25
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 46
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 54
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eLrWV
function name:  (null)
number of ops:  78
compiled vars:  !0 = $username, !1 = $password, !2 = $client, !3 = $err, !4 = $parameter, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'nusoap.php', REQUIRE_ONCE
    4     1        ASSIGN                                                   !0, 'pmportail01'
    5     2        ASSIGN                                                   !1, 'zse4rfv%21'
    9     3        NEW                                              $9      'nusoap_client'
          4        SEND_VAL_EX                                              'http%3A%2F%2Fdev.paramaitre.com%3A8081%2FServices%2FPortailService.svc'
          5        SEND_VAL_EX                                              'wsdl'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $9
   10     8        INIT_METHOD_CALL                                         !2, 'getError'
          9        DO_FCALL                                      0  $12     
         10        ASSIGN                                                   !3, $12
   11    11      > JMPZ                                                     !3, ->25
   12    12    >   CONCAT                                           ~14     '%3Ch2%3EConstructor+error%3C%2Fh2%3E%3Cpre%3E', !3
         13        CONCAT                                           ~15     ~14, '%3C%2Fpre%3E'
         14        ECHO                                                     ~15
   13    15        INIT_FCALL                                               'htmlspecialchars'
         16        INIT_METHOD_CALL                                         !2, 'getDebug'
         17        DO_FCALL                                      0  $16     
         18        SEND_VAR                                                 $16
         19        SEND_VAL                                                 3
         20        DO_ICALL                                         $17     
         21        CONCAT                                           ~18     '%3Ch2%3EDebug%3C%2Fh2%3E%3Cpre%3E', $17
         22        CONCAT                                           ~19     ~18, '%3C%2Fpre%3E'
         23        ECHO                                                     ~19
   14    24      > EXIT                                                     
   17    25    >   INIT_ARRAY                                       ~20     'LireClient', 'operation'
         26        ADD_ARRAY_ELEMENT                                ~20     !0, 'usager'
         27        ADD_ARRAY_ELEMENT                                ~20     !1, 'motDePasse'
         28        ADD_ARRAY_ELEMENT                                ~20     'D1073E3F-4F84-4993-9566-60E52934ABFB', 'pmPortailId'
         29        ADD_ARRAY_ELEMENT                                ~20     <array>, 'EnveloppeRequete'
         30        ASSIGN                                                   !4, ~20
   18    31        ASSIGN_OBJ                                               !2, 'soap_defencoding'
         32        OP_DATA                                                  'UTF-8'
   19    33        INIT_METHOD_CALL                                         !2, 'call'
         34        SEND_VAL_EX                                              'Requete'
         35        SEND_VAR_EX                                              !4
         36        DO_FCALL                                      0  $23     
         37        ASSIGN                                                   !5, $23
   21    38        FETCH_OBJ_R                                      ~25     !2, 'fault'
         39      > JMPZ                                                     ~25, ->46
   22    40    >   ECHO                                                     '%3Ch2%3EFault%3C%2Fh2%3E%3Cpre%3E'
   23    41        INIT_FCALL                                               'print_r'
         42        SEND_VAR                                                 !5
         43        DO_ICALL                                                 
   24    44        ECHO                                                     '%3C%2Fpre%3E'
         45      > JMP                                                      ->59
   27    46    >   INIT_METHOD_CALL                                         !2, 'getError'
         47        DO_FCALL                                      0  $27     
         48        ASSIGN                                                   !3, $27
   28    49      > JMPZ                                                     !3, ->54
   30    50    >   CONCAT                                           ~29     '%3Ch2%3EError%3C%2Fh2%3E%3Cpre%3E', !3
         51        CONCAT                                           ~30     ~29, '%3C%2Fpre%3E'
         52        ECHO                                                     ~30
         53      > JMP                                                      ->59
   33    54    >   ECHO                                                     '%3Ch2%3EResult%3C%2Fh2%3E%3Cpre%3E'
   34    55        INIT_FCALL                                               'print_r'
         56        SEND_VAR                                                 !5
         57        DO_ICALL                                                 
   35    58        ECHO                                                     '%3C%2Fpre%3E'
   38    59    >   ECHO                                                     '%3Ch2%3ERequest%3C%2Fh2%3E'
   39    60        INIT_FCALL                                               'htmlspecialchars'
         61        FETCH_OBJ_R                                      ~32     !2, 'request'
         62        SEND_VAL                                                 ~32
         63        SEND_VAL                                                 3
         64        DO_ICALL                                         $33     
         65        CONCAT                                           ~34     '%3Cpre%3E', $33
         66        CONCAT                                           ~35     ~34, '%3C%2Fpre%3E'
         67        ECHO                                                     ~35
   40    68        ECHO                                                     '%3Ch2%3EResponse%3C%2Fh2%3E'
   41    69        INIT_FCALL                                               'htmlspecialchars'
         70        FETCH_OBJ_R                                      ~36     !2, 'response'
         71        SEND_VAL                                                 ~36
         72        SEND_VAL                                                 3
         73        DO_ICALL                                         $37     
         74        CONCAT                                           ~38     '%3Cpre%3E', $37
         75        CONCAT                                           ~39     ~38, '%3C%2Fpre%3E'
         76        ECHO                                                     ~39
   42    77      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1392 KiB | 17 Q