3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.47 ms | 1398 KiB | 13 Q