3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument; $outer = $dom->appendChild($dom->createElementNS("urn:a", "outer")); $outer->appendChild($dom->createElement("inner")); echo $dom->saveXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8aqgO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $dom, !1 = $outer
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, 'appendChild'
          4        INIT_METHOD_CALL                                             !0, 'createElementNS'
          5        SEND_VAL_EX                                                  'urn%3Aa'
          6        SEND_VAL_EX                                                  'outer'
          7        DO_FCALL                                          0  $5      
          8        SEND_VAR_NO_REF_EX                                           $5
          9        DO_FCALL                                          0  $6      
         10        ASSIGN                                                       !1, $6
    5    11        INIT_METHOD_CALL                                             !1, 'appendChild'
         12        INIT_METHOD_CALL                                             !0, 'createElement'
         13        SEND_VAL_EX                                                  'inner'
         14        DO_FCALL                                          0  $8      
         15        SEND_VAR_NO_REF_EX                                           $8
         16        DO_FCALL                                          0          
    6    17        INIT_METHOD_CALL                                             !0, 'saveXML'
         18        DO_FCALL                                          0  $10     
         19        ECHO                                                         $10
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.13 ms | 3329 KiB | 13 Q