3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sxe = new SimpleXMLElement('<people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test"/>'); $xpath = new DOMXPath(($doc = dom_import_simplexml($sxe)->ownerDocument)); print_r(iterator_to_array($xpath->evaluate('/*/namespace::*')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8M6B
function name:  (null)
number of ops:  23
compiled vars:  !0 = $sxe, !1 = $xpath, !2 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cpeople+xmlns%3Ap%3D%22http%3A%2F%2Fexample.org%2Fns%22+xmlns%3At%3D%22http%3A%2F%2Fexample.org%2Ftest%22%2F%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DOMXPath'
          5        INIT_FCALL                                               'dom_import_simplexml'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        FETCH_OBJ_R                                      ~8      $7, 'ownerDocument'
          9        ASSIGN                                           ~9      !2, ~8
         10        SEND_VAL_EX                                              ~9
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $6
    4    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'iterator_to_array'
         15        INIT_METHOD_CALL                                         !1, 'evaluate'
         16        SEND_VAL_EX                                              '%2F%2A%2Fnamespace%3A%3A%2A'
         17        DO_FCALL                                      0  $12     
         18        SEND_VAR                                                 $12
         19        DO_ICALL                                         $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.67 ms | 1395 KiB | 19 Q