3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function autoload($class){} } class B { public static function autoload($class){} } class C { public static function autoload($class){} } spl_autoload_register(array('A', 'autoload'), true); spl_autoload_register(array('B', 'autoload'), true); var_dump(spl_autoload_functions()); spl_autoload_register(array('C', 'autoload'), true, true); var_dump(spl_autoload_functions());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QH6Xn
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   17     4        INIT_FCALL                                               'spl_autoload_register'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                                 
   19     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'spl_autoload_functions'
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
   20    13        INIT_FCALL                                               'spl_autoload_register'
         14        SEND_VAL                                                 <array>
         15        SEND_VAL                                                 <true>
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                                 
   22    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'spl_autoload_functions'
         20        DO_ICALL                                         $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class A:
Function autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QH6Xn
function name:  autoload
number of ops:  2
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function autoload

End of class A.

Class B:
Function autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QH6Xn
function name:  autoload
number of ops:  2
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function autoload

End of class B.

Class C:
Function autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QH6Xn
function name:  autoload
number of ops:  2
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function autoload

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.49 ms | 1400 KiB | 19 Q