3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("http://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=1",array( "trace"=>1)); $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M")); $xml = simplexml_load_string($client->__getLastRequest()); $json= json_encode($xml); var_dump($xml); echo "<BR>"; var_dump ($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sLKot
function name:  (null)
number of ops:  27
compiled vars:  !0 = $client, !1 = $obj, !2 = $xml, !3 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'SoapClient'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.scottnichol.com%2Fsamples%2Fhellowsdl2.php%3Fwsdl%26debug%3D1'
    3     2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
    2     4        ASSIGN                                                   !0, $4
    4     5        INIT_METHOD_CALL                                         !0, 'hello'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !1, $7
    5     9        INIT_FCALL                                               'simplexml_load_string'
         10        INIT_METHOD_CALL                                         !0, '__getLastRequest'
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    6    15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
    9    22        ECHO                                                     '%3CBR%3E'
   10    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.62 ms | 1395 KiB | 19 Q