3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new Document(); $dom ->appendChild($this->appendElement('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/PUfO4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Document'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_METHOD_CALL                                         !0, 'appendChild'
          4        FETCH_THIS                                       $4      
          5        INIT_METHOD_CALL                                         $4, 'appendElement'
          6        SEND_VAL_EX                                              'test'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0  $6      
    6    10        INIT_METHOD_CALL                                         $6, 'appendChild'
         11        INIT_METHOD_CALL                                         !0, 'createComment'
         12        SEND_VAL_EX                                              'success'
         13        DO_FCALL                                      0  $7      
         14        SEND_VAR_NO_REF_EX                                       $7
         15        DO_FCALL                                      0          
    8    16        INIT_METHOD_CALL                                         !0, 'saveXML'
         17        CHECK_FUNC_ARG                                           
         18        FETCH_OBJ_FUNC_ARG                               $9      !0, 'documentElement'
         19        SEND_FUNC_ARG                                            $9
         20        DO_FCALL                                      0  $10     
         21        ECHO                                                     $10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1393 KiB | 13 Q