3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); var_dump($dom->createComment('Foo')->ownerDocument instanceof DOMDocument); var_dump($dom->importNode($dom->createComment('Foo'))->ownerDocument instanceof DOMDocument);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ou6uT
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'createComment'
          5        SEND_VAL_EX                                              'Foo'
          6        DO_FCALL                                      0  $4      
          7        FETCH_OBJ_R                                      ~5      $4, 'ownerDocument'
          8        INSTANCEOF                                       ~6      ~5, 'DOMDocument'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !0, 'importNode'
         13        INIT_METHOD_CALL                                         !0, 'createComment'
         14        SEND_VAL_EX                                              'Foo'
         15        DO_FCALL                                      0  $8      
         16        SEND_VAR_NO_REF_EX                                       $8
         17        DO_FCALL                                      0  $9      
         18        FETCH_OBJ_R                                      ~10     $9, 'ownerDocument'
         19        INSTANCEOF                                       ~11     ~10, 'DOMDocument'
         20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.38 ms | 1395 KiB | 15 Q