3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $frag1 = $dom->createDocumentFragment(); $frag1->normalize(); var_dump($dom->saveHTML($frag1)); $frag2 = $dom->createDocumentFragment(); $frag2->appendChild($dom->createElement('div')); $frag2->normalize(); var_dump($dom->saveHTML($frag2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AmfTt
function name:  (null)
number of ops:  32
compiled vars:  !0 = $dom, !1 = $frag1, !2 = $frag2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        INIT_METHOD_CALL                                         !0, 'createDocumentFragment'
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !1, $6
    6     6        INIT_METHOD_CALL                                         !1, 'normalize'
          7        DO_FCALL                                      0          
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'saveHTML'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0  $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                                 
    9    14        INIT_METHOD_CALL                                         !0, 'createDocumentFragment'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
   10    17        INIT_METHOD_CALL                                         !2, 'appendChild'
         18        INIT_METHOD_CALL                                         !0, 'createElement'
         19        SEND_VAL_EX                                              'div'
         20        DO_FCALL                                      0  $13     
         21        SEND_VAR_NO_REF_EX                                       $13
         22        DO_FCALL                                      0          
   11    23        INIT_METHOD_CALL                                         !2, 'normalize'
         24        DO_FCALL                                      0          
   12    25        INIT_FCALL                                               'var_dump'
         26        INIT_METHOD_CALL                                         !0, 'saveHTML'
         27        SEND_VAR_EX                                              !2
         28        DO_FCALL                                      0  $16     
         29        SEND_VAR                                                 $16
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.26 ms | 1388 KiB | 15 Q