3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadXML('<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="fooooooooooooooooooooo"> </urlset> '); if ($dom->documentElement) { if ($spaceNode = $dom->documentElement->getAttributeNode('xmlns')) { $spaceNode->parentNode; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 16
filename:       /in/FuH85
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dom, !1 = $spaceNode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Curlset+xmlns%3D%22http%3A%2F%2Fwww.sitemaps.org%2Fschemas%2Fsitemap%2F0.9%22+xmlns%3Axsi%3D%22fooooooooooooooooooooo%22%3E%0A%3C%2Furlset%3E%0A'
          5        DO_FCALL                                      0          
    7     6        FETCH_OBJ_R                                      ~6      !0, 'documentElement'
          7      > JMPZ                                                     ~6, ->16
    8     8    >   FETCH_OBJ_R                                      ~7      !0, 'documentElement'
          9        INIT_METHOD_CALL                                         ~7, 'getAttributeNode'
         10        SEND_VAL_EX                                              'xmlns'
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                           ~9      !1, $8
         13      > JMPZ                                                     ~9, ->16
    9    14    >   FETCH_OBJ_R                                      ~10     !1, 'parentNode'
         15        FREE                                                     ~10
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1393 KiB | 13 Q