3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient('http://www.ukverify.co.uk/webservice.asmx?wsdl'); $username='stevew2014'; $password='stevew2014'; $token=''; $ns = 'http://ukverify.co.uk/'; $headerbody = array('Username'=>$username,'Password'=>$password); $header = new SoapHeader($ns,'WebServiceHeader',$headerbody); $client->__setSoapHeaders($header); //try { $apiToken = $client->AuthenticateUser()->AuthenticateUserResult; var_dump($apiToken);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bvl0G
function name:  (null)
number of ops:  28
compiled vars:  !0 = $client, !1 = $username, !2 = $password, !3 = $token, !4 = $ns, !5 = $headerbody, !6 = $header, !7 = $apiToken
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $8      'SoapClient'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.ukverify.co.uk%2Fwebservice.asmx%3Fwsdl'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $8
    5     4        ASSIGN                                                   !1, 'stevew2014'
    6     5        ASSIGN                                                   !2, 'stevew2014'
    7     6        ASSIGN                                                   !3, ''
    8     7        ASSIGN                                                   !4, 'http%3A%2F%2Fukverify.co.uk%2F'
   10     8        INIT_ARRAY                                       ~15     !1, 'Username'
          9        ADD_ARRAY_ELEMENT                                ~15     !2, 'Password'
         10        ASSIGN                                                   !5, ~15
   11    11        NEW                                              $17     'SoapHeader'
         12        SEND_VAR_EX                                              !4
         13        SEND_VAL_EX                                              'WebServiceHeader'
         14        SEND_VAR_EX                                              !5
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !6, $17
   12    17        INIT_METHOD_CALL                                         !0, '__setSoapHeaders'
         18        SEND_VAR_EX                                              !6
         19        DO_FCALL                                      0          
   14    20        INIT_METHOD_CALL                                         !0, 'AuthenticateUser'
         21        DO_FCALL                                      0  $21     
         22        FETCH_OBJ_R                                      ~22     $21, 'AuthenticateUserResult'
         23        ASSIGN                                                   !7, ~22
   16    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !7
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1395 KiB | 15 Q