3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->appendChild(new DOMElement('div')); $doc = new DOMDocument; $doc->appendChild($doc->createElement('div'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/trMYc
function name:  (null)
number of ops:  19
compiled vars:  !0 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'appendChild'
          4        NEW                                              $4      'DOMElement'
          5        SEND_VAL_EX                                              'div'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
    7     9        NEW                                              $7      'DOMDocument'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $7
    8    12        INIT_METHOD_CALL                                         !0, 'appendChild'
         13        INIT_METHOD_CALL                                         !0, 'createElement'
         14        SEND_VAL_EX                                              'div'
         15        DO_FCALL                                      0  $10     
         16        SEND_VAR_NO_REF_EX                                       $10
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1393 KiB | 13 Q