3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<user:name test:one = "firstUser" />'; print_r($xml); echo '\n'; echo '\n'; $doc = new DOMDocument(); $xpath = new DOMXPath($doc); $simpleXml = simplexml_load_string($xml); echo '\n'; print_r($simpleXml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ijeHp
function name:  (null)
number of ops:  22
compiled vars:  !0 = $xml, !1 = $doc, !2 = $xpath, !3 = $simpleXml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cuser%3Aname+test%3Aone+%3D+%22firstUser%22+%2F%3E'
    4     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        ECHO                                                     '%5Cn'
    6     5        ECHO                                                     '%5Cn'
    8     6        NEW                                              $6      'DOMDocument'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
    9     9        NEW                                              $9      'DOMXPath'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $9
   10    13        INIT_FCALL                                               'simplexml_load_string'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !3, $12
   11    17        ECHO                                                     '%5Cn'
   12    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.61 ms | 1002 KiB | 15 Q