3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument(); $doc->loadXML('<example a="b">Test</example>'); $oXPath = new DOMXPath(@$doc); //$example = $doc->getElementsByTagName('example')->item(0); //$attr = $example->getAttributeNode('a'); var_dump($oXPath); print_r($oXPath);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5Vqa
function name:  (null)
number of ops:  20
compiled vars:  !0 = $doc, !1 = $oXPath
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                                              '%3Cexample+a%3D%22b%22%3ETest%3C%2Fexample%3E'
          5        DO_FCALL                                      0          
    5     6        NEW                                              $6      'DOMXPath'
          7        BEGIN_SILENCE                                    ~7      
          8        FETCH_R                      local               ~8      'doc'
          9        END_SILENCE                                              ~7
         10        SEND_VAL_EX                                              ~8
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $6
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.3 ms | 1395 KiB | 17 Q