3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = <<<EOF <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <ns2:getauthresponse xmlns:ns2="http://dpd.com/common/service/types/LoginService/2.0" xmlns:ns3="http://dpd.com/common/service/exceptions"> <return> <delisid>thedelisid</delisid> <customeruid>thecustomerid</customeruid> <authtoken>theauthenticationcode</authtoken> <depot>thedepot</depot> </return> </ns2:getauthresponse> </soap:body> </soap:envelope> EOF; $xml = new SimpleXMLElement($xmlString); print_r($xml->body->return->authtoken);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8bhh
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xmlString, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Csoap%3Aenvelope+xmlns%3Asoap%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%0A%3Csoap%3Abody%3E%0A%3Cns2%3Agetauthresponse+xmlns%3Ans2%3D%22http%3A%2F%2Fdpd.com%2Fcommon%2Fservice%2Ftypes%2FLoginService%2F2.0%22+xmlns%3Ans3%3D%22http%3A%2F%2Fdpd.com%2Fcommon%2Fservice%2Fexceptions%22%3E%0A%3Creturn%3E%0A++++%3Cdelisid%3Ethedelisid%3C%2Fdelisid%3E%0A++++%3Ccustomeruid%3Ethecustomerid%3C%2Fcustomeruid%3E%0A++++%3Cauthtoken%3Etheauthenticationcode%3C%2Fauthtoken%3E%0A++++%3Cdepot%3Ethedepot%3C%2Fdepot%3E%0A%3C%2Freturn%3E%0A%3C%2Fns2%3Agetauthresponse%3E%0A%3C%2Fsoap%3Abody%3E%0A%3C%2Fsoap%3Aenvelope%3E'
   17     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   18     5        INIT_FCALL                                               'print_r'
          6        FETCH_OBJ_R                                      ~6      !1, 'body'
          7        FETCH_OBJ_R                                      ~7      ~6, 'return'
          8        FETCH_OBJ_R                                      ~8      ~7, 'authtoken'
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1394 KiB | 15 Q