3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <ORDERSTATUS> <DATE>10/03/17</DATE> <INVOICE>abc</INVOICE> <INVTOTAL Tax="15.00" Freight="18" SubTotal="100.00">133.0</INVTOTAL> </ORDERSTATUS> XML; $xml = simplexml_load_string($string); echo $xml->INVTOTAL->attributes()->Tax;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IXkbF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3CORDERSTATUS%3E%0A++++%3CDATE%3E10%2F03%2F17%3C%2FDATE%3E%0A++++%3CINVOICE%3Eabc%3C%2FINVOICE%3E%0A++++%3CINVTOTAL+Tax%3D%2215.00%22+Freight%3D%2218%22+SubTotal%3D%22100.00%22%3E133.0%3C%2FINVTOTAL%3E%0A%3C%2FORDERSTATUS%3E'
   11     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   13     5        FETCH_OBJ_R                                      ~5      !1, 'INVTOTAL'
          6        INIT_METHOD_CALL                                         ~5, 'attributes'
          7        DO_FCALL                                      0  $6      
          8        FETCH_OBJ_R                                      ~7      $6, 'Tax'
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.21 ms | 1001 KiB | 14 Q