3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace ns1 { class testClass { } } namespace ns2 { use ns1; var_dump(class_exists('testClass')); var_dump(class_exists('\ns1\testClass')); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 208) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 208) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 208) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
Branch analysis from position: 15
filename:       /in/mlAm4
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   INIT_NS_FCALL_BY_NAME                                        'ns2%5Cvar_dump'
          1      > JMP_FRAMELESS                                   s16          'ns2%5Cclass_exists', ->6
          2    >   INIT_NS_FCALL_BY_NAME                                        'ns2%5Cclass_exists'
          3        SEND_VAL_EX                                                  'testClass'
          4        DO_FCALL                                          0  $0      
          5      > JMP                                                          ->7
          6    >   FRAMELESS_ICALL_1                class_exists        $0      'testClass'
          7    >   SEND_VAR_NO_REF_EX                                           $0
          8        DO_FCALL                                          0          
   16     9        INIT_NS_FCALL_BY_NAME                                        'ns2%5Cvar_dump'
         10      > JMP_FRAMELESS                                   s40          'ns2%5Cclass_exists', ->15
         11    >   INIT_NS_FCALL_BY_NAME                                        'ns2%5Cclass_exists'
         12        SEND_VAL_EX                                                  '%5Cns1%5CtestClass'
         13        DO_FCALL                                          0  $2      
         14      > JMP                                                          ->16
         15    >   FRAMELESS_ICALL_1                class_exists        $2      '%5Cns1%5CtestClass'
         16    >   SEND_VAR_NO_REF_EX                                           $2
         17        DO_FCALL                                          0          
   17    18      > RETURN                                                       1

Class ns1\testClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.68 ms | 1992 KiB | 15 Q