3v4l.org

run code in 500+ PHP versions simultaneously
<?php class myXMLReader extends XMLReader { } $r1 = myXMLReader::XML('foo'); var_dump(get_debug_type($r1)); $r2 = new myXMLReader; $r2->XML('foo'); var_dump(get_debug_type($r2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lCOAvJ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $r1, !1 = $r2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_STATIC_METHOD_CALL                                      'myXMLReader', 'XML'
          1        SEND_VAL                                                     'foo'
          2        DO_FCALL                                          0  $2      
          3        ASSIGN                                                       !0, $2
    6     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'get_debug_type'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                                     
    8    10        NEW                                                  $6      'myXMLReader'
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !1, $6
    9    13        INIT_METHOD_CALL                                             !1, 'XML'
         14        SEND_VAL_EX                                                  'foo'
         15        DO_FCALL                                          0          
   10    16        INIT_FCALL                                                   'var_dump'
         17        INIT_FCALL                                                   'get_debug_type'
         18        SEND_VAR                                                     !1
         19        DO_ICALL                                             $10     
         20        SEND_VAR                                                     $10
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Class myXMLReader: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.95 ms | 1590 KiB | 15 Q