3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Class1 { public static function setup() { spl_autoload_register(array('Class1','_autoload')); } private static function _autoload() { } } class Class2 { public static function setup() { spl_autoload_register(array('Class2','_autoload')); } private static function _autoload() { } } Class1::setup(); Class2::setup(); print_r(spl_autoload_functions()); spl_autoload_unregister(array('Class1','_autoload')); print_r(spl_autoload_functions());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EndQ
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_STATIC_METHOD_CALL                                      'Class1', 'setup'
          1        DO_FCALL                                          0          
   17     2        INIT_STATIC_METHOD_CALL                                      'Class2', 'setup'
          3        DO_FCALL                                          0          
   18     4        INIT_FCALL                                                   'print_r'
          5        INIT_FCALL                                                   'spl_autoload_functions'
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
   19     9        INIT_FCALL                                                   'spl_autoload_unregister'
         10        SEND_VAL                                                     <array>
         11        DO_ICALL                                                     
   20    12        INIT_FCALL                                                   'print_r'
         13        INIT_FCALL                                                   'spl_autoload_functions'
         14        DO_ICALL                                             $5      
         15        SEND_VAR                                                     $5
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Class Class1:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EndQ
function name:  setup
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        SEND_VAL                                                     <array>
          2        DO_ICALL                                                     
    5     3      > RETURN                                                       null

End of function setup

Function _autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EndQ
function name:  _autoload
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       null

End of function _autoload

End of class Class1.

Class Class2:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EndQ
function name:  setup
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        SEND_VAL                                                     <array>
          2        DO_ICALL                                                     
   12     3      > RETURN                                                       null

End of function setup

Function _autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EndQ
function name:  _autoload
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                       null

End of function _autoload

End of class Class2.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.3 ms | 2268 KiB | 17 Q