3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument('1.0', 'UTF-8'); $root = $doc->createElement('Document'); $root->setAttribute('xmlns:xsi',"http://www.w3.org/2001/XMLSchema-instance"); $doc->appendChild($root); $doc->saveXML($root, LIBXML_NOEMPTYTAG);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KWU0E
function name:  (null)
number of ops:  21
compiled vars:  !0 = $doc, !1 = $root
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DOMDocument'
          1        SEND_VAL_EX                                              '1.0'
          2        SEND_VAL_EX                                              'UTF-8'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        INIT_METHOD_CALL                                         !0, 'createElement'
          6        SEND_VAL_EX                                              'Document'
          7        DO_FCALL                                      0  $5      
          8        ASSIGN                                                   !1, $5
    6     9        INIT_METHOD_CALL                                         !1, 'setAttribute'
         10        SEND_VAL_EX                                              'xmlns%3Axsi'
         11        SEND_VAL_EX                                              'http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance'
         12        DO_FCALL                                      0          
    7    13        INIT_METHOD_CALL                                         !0, 'appendChild'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0          
    8    16        INIT_METHOD_CALL                                         !0, 'saveXML'
         17        SEND_VAR_EX                                              !1
         18        SEND_VAL_EX                                              4
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1393 KiB | 13 Q