3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("http://clublinq.com/marylandlive/clublinq.svc?singleWSDL",array( "trace"=>1, "exceptions"=>0) ); $req->KeyID = "1B3BFE04-78AF-4B84-967E-C32BA0B30FB0"; $req->PlayerID="2588"; $parameters->request = $req; $obj = $client->GetCustomerInfo(array('request'=>(array('KeyID'=>"1B3BFE04-78AF-4B84-967E-C32BA0B30FB0",'PlayerID'=>'2588')))); $xml = $client->__getLastResponse(); //$xml = simplexml_load_string($client->__getLastRequest()); //$xml = new SimplexmlElement($client->__getLastResponse(), TRUE); $json= json_encode($client->__getLastResponse()); print "<pre>\n"; print "<br />\n Request : ".htmlspecialchars($client->__getLastRequest()); print "<br />\n Response: ".htmlspecialchars($client->__getLastResponse()); print "<br />\n xml: ".$xml; print "<br />\n JSON: ".$json; print "</pre>"; $array = json_decode(json_encode((array)simplexml_load_string($xml)),1); var_dump($array) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tm02o
function name:  (null)
number of ops:  60
compiled vars:  !0 = $client, !1 = $req, !2 = $parameters, !3 = $obj, !4 = $xml, !5 = $json, !6 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $7      'SoapClient'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fclublinq.com%2Fmarylandlive%2Fclublinq.svc%3FsingleWSDL'
    3     2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
    2     4        ASSIGN                                                   !0, $7
    7     5        ASSIGN_OBJ                                               !1, 'KeyID'
          6        OP_DATA                                                  '1B3BFE04-78AF-4B84-967E-C32BA0B30FB0'
    8     7        ASSIGN_OBJ                                               !1, 'PlayerID'
          8        OP_DATA                                                  '2588'
    9     9        ASSIGN_OBJ                                               !2, 'request'
         10        OP_DATA                                                  !1
   10    11        INIT_METHOD_CALL                                         !0, 'GetCustomerInfo'
         12        SEND_VAL_EX                                              <array>
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !3, $13
   11    15        INIT_METHOD_CALL                                         !0, '__getLastResponse'
         16        DO_FCALL                                      0  $15     
         17        ASSIGN                                                   !4, $15
   15    18        INIT_FCALL                                               'json_encode'
         19        INIT_METHOD_CALL                                         !0, '__getLastResponse'
         20        DO_FCALL                                      0  $17     
         21        SEND_VAR                                                 $17
         22        DO_ICALL                                         $18     
         23        ASSIGN                                                   !5, $18
   16    24        ECHO                                                     '%3Cpre%3E%0A'
   17    25        INIT_FCALL                                               'htmlspecialchars'
         26        INIT_METHOD_CALL                                         !0, '__getLastRequest'
         27        DO_FCALL                                      0  $20     
         28        SEND_VAR                                                 $20
         29        DO_ICALL                                         $21     
         30        CONCAT                                           ~22     '%3Cbr+%2F%3E%0A+Request+%3A+', $21
         31        ECHO                                                     ~22
   18    32        INIT_FCALL                                               'htmlspecialchars'
         33        INIT_METHOD_CALL                                         !0, '__getLastResponse'
         34        DO_FCALL                                      0  $23     
         35        SEND_VAR                                                 $23
         36        DO_ICALL                                         $24     
         37        CONCAT                                           ~25     '%3Cbr+%2F%3E%0A+Response%3A+', $24
         38        ECHO                                                     ~25
   20    39        CONCAT                                           ~26     '%3Cbr+%2F%3E%0A+xml%3A+', !4
         40        ECHO                                                     ~26
   21    41        CONCAT                                           ~27     '%3Cbr+%2F%3E%0A+JSON%3A+', !5
         42        ECHO                                                     ~27
   23    43        ECHO                                                     '%3C%2Fpre%3E'
   24    44        INIT_FCALL                                               'json_decode'
         45        INIT_FCALL                                               'json_encode'
         46        INIT_FCALL                                               'simplexml_load_string'
         47        SEND_VAR                                                 !4
         48        DO_ICALL                                         $28     
         49        CAST                                          7  ~29     $28
         50        SEND_VAL                                                 ~29
         51        DO_ICALL                                         $30     
         52        SEND_VAR                                                 $30
         53        SEND_VAL                                                 1
         54        DO_ICALL                                         $31     
         55        ASSIGN                                                   !6, $31
   25    56        INIT_FCALL                                               'var_dump'
         57        SEND_VAR                                                 !6
         58        DO_ICALL                                                 
   26    59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.56 ms | 1400 KiB | 23 Q