3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $rss = $dom->appendChild($dom->createElement('RSS')); $rss->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:atom', 'http://www.w3.org/2005/Atom' ); echo $dom->saveXml();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dCUv9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dom, !1 = $rss
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, 'createElement'
          5        SEND_VAL_EX                                              'RSS'
          6        DO_FCALL                                      0  $5      
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !1, $6
    5    10        INIT_METHOD_CALL                                         !1, 'setAttributeNS'
    6    11        SEND_VAL_EX                                              'http%3A%2F%2Fwww.w3.org%2F2000%2Fxmlns%2F'
    7    12        SEND_VAL_EX                                              'xmlns%3Aatom'
    8    13        SEND_VAL_EX                                              'http%3A%2F%2Fwww.w3.org%2F2005%2FAtom'
         14        DO_FCALL                                      0          
   11    15        INIT_METHOD_CALL                                         !0, 'saveXml'
         16        DO_FCALL                                      0  $9      
         17        ECHO                                                     $9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.3 ms | 1393 KiB | 13 Q