3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadXML('<?xml version="1.0" encoding="utf-8"?><example><foo bar:baz="bat"/></example>'); $foo = $doc->getElementsByTagName('foo')->item(0); var_dump($foo->lookupNamespaceURI('bar'), $foo->getAttributeNS(NULL, 'baz'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZqDhD
function name:  (null)
number of ops:  25
compiled vars:  !0 = $doc, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%3Cexample%3E%3Cfoo+bar%3Abaz%3D%22bat%22%2F%3E%3C%2Fexample%3E'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          7        SEND_VAL_EX                                              'foo'
          8        DO_FCALL                                      0  $6      
          9        INIT_METHOD_CALL                                         $6, 'item'
         10        SEND_VAL_EX                                              0
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !1, $7
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !1, 'lookupNamespaceURI'
         15        SEND_VAL_EX                                              'bar'
         16        DO_FCALL                                      0  $9      
         17        SEND_VAR                                                 $9
         18        INIT_METHOD_CALL                                         !1, 'getAttributeNS'
         19        SEND_VAL_EX                                              null
         20        SEND_VAL_EX                                              'baz'
         21        DO_FCALL                                      0  $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.87 ms | 1387 KiB | 15 Q