3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DomElement('foo'); var_dump($a->ownerDocument); $a = new DOMAttr('foo'); var_dump($a->ownerDocument); $a = new DOMText('foo'); // for DOMCharacterData var_dump($a->ownerDocument); $a = new DOMProcessingInstruction('foo'); var_dump($a->ownerDocument);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mMQj8
function name:  (null)
number of ops:  33
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DomElement'
          1        SEND_VAL_EX                                              'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~4      !0, 'ownerDocument'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    6     8        NEW                                              $6      'DOMAttr'
          9        SEND_VAL_EX                                              'foo'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $6
    7    12        INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~9      !0, 'ownerDocument'
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
    9    16        NEW                                              $11     'DOMText'
         17        SEND_VAL_EX                                              'foo'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !0, $11
   10    20        INIT_FCALL                                               'var_dump'
         21        FETCH_OBJ_R                                      ~14     !0, 'ownerDocument'
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                                 
   12    24        NEW                                              $16     'DOMProcessingInstruction'
         25        SEND_VAL_EX                                              'foo'
         26        DO_FCALL                                      0          
         27        ASSIGN                                                   !0, $16
   13    28        INIT_FCALL                                               'var_dump'
         29        FETCH_OBJ_R                                      ~19     !0, 'ownerDocument'
         30        SEND_VAL                                                 ~19
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.63 ms | 1001 KiB | 14 Q