3v4l.org

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

Function anotherloader:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lb6TH
function name:  anotherLoader
number of ops:  3
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1      > RETURN                                                   <true>
   11     2*     > RETURN                                                   null

End of function anotherloader

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

End of function load

End of class ALoader.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.86 ms | 1396 KiB | 19 Q