3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('drupal_autoload_class'); function drupal_autoload_class($class) { print __FUNCTION__ . "\n"; return _registry_check_code('class', $class); } function _registry_check_code($type, $name = NULL) { static $lookup_cache, $cache_update_needed; if ($type == 'class' && class_exists($name) || $type == 'interface' && interface_exists($name)) { return TRUE; } return FALSE; } print class_exists('C') ? 'YES' : 'NO';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kk1di
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'drupal_autoload_class'
          2        DO_ICALL                                                 
   19     3        INIT_FCALL                                               'class_exists'
          4        SEND_VAL                                                 'C'
          5        DO_ICALL                                         $1      
          6      > JMPZ                                                     $1, ->9
          7    >   QM_ASSIGN                                        ~2      'YES'
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~2      'NO'
         10    >   ECHO                                                     ~2
         11      > RETURN                                                   1

Function drupal_autoload_class:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kk1di
function name:  drupal_autoload_class
number of ops:  8
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     'drupal_autoload_class%0A'
    6     2        INIT_FCALL_BY_NAME                                       '_registry_check_code'
          3        SEND_VAL_EX                                              'class'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $1      
          6      > RETURN                                                   $1
    7     7*     > RETURN                                                   null

End of function drupal_autoload_class

Function _registry_check_code:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/kk1di
function name:  _registry_check_code
number of ops:  22
compiled vars:  !0 = $type, !1 = $name, !2 = $lookup_cache, !3 = $cache_update_needed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
   10     2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
   12     4        IS_EQUAL                                         ~4      !0, 'class'
          5      > JMPZ_EX                                          ~4      ~4, ->10
          6    >   INIT_FCALL                                               'class_exists'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        BOOL                                             ~4      $5
         10    > > JMPNZ_EX                                         ~4      ~4, ->18
         11    >   IS_EQUAL                                         ~6      !0, 'interface'
         12      > JMPZ_EX                                          ~6      ~6, ->17
         13    >   INIT_FCALL                                               'interface_exists'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        BOOL                                             ~6      $7
         17    >   BOOL                                             ~4      ~6
         18    > > JMPZ                                                     ~4, ->20
   13    19    > > RETURN                                                   <true>
   16    20    > > RETURN                                                   <false>
   17    21*     > RETURN                                                   null

End of function _registry_check_code

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.01 ms | 1400 KiB | 19 Q