3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); $host = "http://kubyk.inkodus.lt/index.php"; //our online shop url $client = new SoapClient($host."/api/soap/?wsdl"); //soap handle $apiuser= "android"; //webservice user login $apikey = "android_kubyk"; //webservice user pass $action = "customer.login"; //an action to call later (loading Sales Order List) try { // SOAP klientas loginasi i webservisa, gauna sesijos id $sess_id= $client->login($apiuser, $apikey); //we do login $params = array("email" => "testas2@testas2.COM", "password" => "adminas13"); // O va cia jau callinam ta customer.login metoda ir paduodam sesijos id + parametrus loginimuisi $rezultatas = $client->call($sess_id, $action, $params); } catch (Exception $e) { //while an error has occured echo "==> Error: ".$e->getMessage(); //we print this exit(); } ?>
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: 25
Branch analysis from position: 25
2 jumps found. (Code = 107) Position 1 = 26, Position 2 = -2
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/H0sY1
function name:  (null)
number of ops:  32
compiled vars:  !0 = $host, !1 = $client, !2 = $apiuser, !3 = $apikey, !4 = $action, !5 = $sess_id, !6 = $params, !7 = $rezultatas, !8 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 'http%3A%2F%2Fkubyk.inkodus.lt%2Findex.php'
    4     4        NEW                                              $11     'SoapClient'
          5        CONCAT                                           ~12     !0, '%2Fapi%2Fsoap%2F%3Fwsdl'
          6        SEND_VAL_EX                                              ~12
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $11
    5     9        ASSIGN                                                   !2, 'android'
    6    10        ASSIGN                                                   !3, 'android_kubyk'
    7    11        ASSIGN                                                   !4, 'customer.login'
   11    12        INIT_METHOD_CALL                                         !1, 'login'
         13        SEND_VAR_EX                                              !2
         14        SEND_VAR_EX                                              !3
         15        DO_FCALL                                      0  $18     
         16        ASSIGN                                                   !5, $18
   13    17        ASSIGN                                                   !6, <array>
   15    18        INIT_METHOD_CALL                                         !1, 'call'
         19        SEND_VAR_EX                                              !5
         20        SEND_VAR_EX                                              !4
         21        SEND_VAR_EX                                              !6
         22        DO_FCALL                                      0  $21     
         23        ASSIGN                                                   !7, $21
         24      > JMP                                                      ->31
   17    25  E > > CATCH                                       last         'Exception'
   18    26    >   INIT_METHOD_CALL                                         !8, 'getMessage'
         27        DO_FCALL                                      0  $23     
         28        CONCAT                                           ~24     '%3D%3D%3E+Error%3A+', $23
         29        ECHO                                                     ~24
   19    30      > EXIT                                                     
   21    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.42 ms | 1396 KiB | 15 Q