3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?> <Rows xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Row Index="1"> <Email xsi:nil="true"/> </Row> </Rows>'; $dom = new DomDocument(); $dom->loadXml($xml); print $dom->getElementsByTagName('email')->item(0)->getAttribute('xsi:nil');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZfOrt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3CRows+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%3E%0A++%3CRow+Index%3D%221%22%3E%0A++++%3CEmail+xsi%3Anil%3D%22true%22%2F%3E%0A++%3C%2FRow%3E%0A%3C%2FRows%3E'
   11     1        NEW                                              $3      'DomDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   12     4        INIT_METHOD_CALL                                         !1, 'loadXml'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   13     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'email'
          9        DO_FCALL                                      0  $7      
         10        INIT_METHOD_CALL                                         $7, 'item'
         11        SEND_VAL_EX                                              0
         12        DO_FCALL                                      0  $8      
         13        INIT_METHOD_CALL                                         $8, 'getAttribute'
         14        SEND_VAL_EX                                              'xsi%3Anil'
         15        DO_FCALL                                      0  $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.28 ms | 1394 KiB | 13 Q