3v4l.org

run code in 500+ PHP versions simultaneously
<?php class CI_Config {} if (!class_exists('MX_Config')) { class MX_Config extends CI_Config {} } class MY_Config extends MX_Config {} $config = new MY_Config(); var_dump( $config instanceof MX_Config, $config instanceof CI_Config );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/3pXGt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $config
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FRAMELESS_ICALL_1                class_exists        ~1      'MX_Config'
          1        BOOL_NOT                                             ~2      ~1
          2      > JMPZ                                                         ~2, ->4
    6     3    >   DECLARE_CLASS                                                'mx_config', 'ci_config'
    9     4    >   DECLARE_CLASS                                                'my_config', 'mx_config'
   11     5        NEW                                                  $3      'MY_Config'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $3
   13     8        INIT_FCALL                                                   'var_dump'
   14     9        INSTANCEOF                                           ~6      !0, 'MX_Config'
         10        SEND_VAL                                                     ~6
   15    11        INSTANCEOF                                           ~7      !0, 'CI_Config'
         12        SEND_VAL                                                     ~7
   13    13        DO_ICALL                                                     
   16    14      > RETURN                                                       1

Class CI_Config: [no user functions]
Class MX_Config: [no user functions]
Class MY_Config: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.92 ms | 485 KiB | 10 Q