3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('drupal_autoload_class'); function drupal_autoload_class($class) { print class_exists($class === 'C' ? 'CC' : 'C') ? '+' : '-'; print "\n"; print __FUNCTION__ . "('$class')\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/svNJC
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                                                 
   21     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
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
Branch analysis from position: 12
filename:       /in/svNJC
function name:  drupal_autoload_class
number of ops:  26
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'class_exists'
          2        IS_IDENTICAL                                             !0, 'C'
          3      > JMPZ                                                     ~1, ->6
          4    >   QM_ASSIGN                                        ~2      'CC'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~2      'C'
          7    >   SEND_VAL                                                 ~2
          8        DO_ICALL                                         $3      
          9      > JMPZ                                                     $3, ->12
         10    >   QM_ASSIGN                                        ~4      '%2B'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~4      '-'
         13    >   ECHO                                                     ~4
    6    14        ECHO                                                     '%0A'
    7    15        ROPE_INIT                                     3  ~6      '%28%27'
         16        ROPE_ADD                                      1  ~6      ~6, !0
         17        ROPE_END                                      2  ~5      ~6, '%27%29%0A'
         18        CONCAT                                           ~8      'drupal_autoload_class', ~5
         19        ECHO                                                     ~8
    8    20        INIT_FCALL_BY_NAME                                       '_registry_check_code'
         21        SEND_VAL_EX                                              'class'
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0  $9      
         24      > RETURN                                                   $9
    9    25*     > 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/svNJC
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
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
   12     2        BIND_STATIC                                              !2
          3        BIND_STATIC                                              !3
   14     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
   15    19    > > RETURN                                                   <true>
   18    20    > > RETURN                                                   <false>
   19    21*     > RETURN                                                   null

End of function _registry_check_code

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1400 KiB | 19 Q