3v4l.org

run code in 300+ PHP versions simultaneously
<?php function SplAutoloadTest1($name) {} function SplAutoloadTest2($name) {} var_dump(spl_autoload_functions()); spl_autoload_register(); var_dump(spl_autoload_functions()); spl_autoload_register('SplAutoloadTest1'); spl_autoload_register('SplAutoloadTest2'); spl_autoload_register('SplAutoloadTest1'); var_dump(spl_autoload_functions()); spl_autoload_unregister('SplAutoloadTest1'); var_dump(spl_autoload_functions()); spl_autoload_unregister('spl_autoload_call'); var_dump(spl_autoload_functions()); spl_autoload_register(); var_dump(spl_autoload_functions()); spl_autoload_unregister('spl_autoload'); var_dump(spl_autoload_functions()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Oa6o
function name:  (null)
number of ops:  58
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'spl_autoload_functions'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'spl_autoload_register'
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'spl_autoload_functions'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
   12    12        INIT_FCALL                                               'spl_autoload_register'
         13        SEND_VAL                                                 'SplAutoloadTest1'
         14        DO_ICALL                                                 
   13    15        INIT_FCALL                                               'spl_autoload_register'
         16        SEND_VAL                                                 'SplAutoloadTest2'
         17        DO_ICALL                                                 
   14    18        INIT_FCALL                                               'spl_autoload_register'
         19        SEND_VAL                                                 'SplAutoloadTest1'
         20        DO_ICALL                                                 
   16    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'spl_autoload_functions'
         23        DO_ICALL                                         $8      
         24        SEND_VAR                                                 $8
         25        DO_ICALL                                                 
   18    26        INIT_FCALL                                               'spl_autoload_unregister'
         27        SEND_VAL                                                 'SplAutoloadTest1'
         28        DO_ICALL                                                 
   20    29        INIT_FCALL                                               'var_dump'
         30        INIT_FCALL                                               'spl_autoload_functions'
         31        DO_ICALL                                         $11     
         32        SEND_VAR                                                 $11
         33        DO_ICALL                                                 
   22    34        INIT_FCALL                                               'spl_autoload_unregister'
         35        SEND_VAL                                                 'spl_autoload_call'
         36        DO_ICALL                                                 
   24    37        INIT_FCALL                                               'var_dump'
         38        INIT_FCALL                                               'spl_autoload_functions'
         39        DO_ICALL                                         $14     
         40        SEND_VAR                                                 $14
         41        DO_ICALL                                                 
   26    42        INIT_FCALL                                               'spl_autoload_register'
         43        DO_ICALL                                                 
   28    44        INIT_FCALL                                               'var_dump'
         45        INIT_FCALL                                               'spl_autoload_functions'
         46        DO_ICALL                                         $17     
         47        SEND_VAR                                                 $17
         48        DO_ICALL                                                 
   30    49        INIT_FCALL                                               'spl_autoload_unregister'
         50        SEND_VAL                                                 'spl_autoload'
         51        DO_ICALL                                                 
   32    52        INIT_FCALL                                               'var_dump'
         53        INIT_FCALL                                               'spl_autoload_functions'
         54        DO_ICALL                                         $20     
         55        SEND_VAR                                                 $20
         56        DO_ICALL                                                 
   34    57      > RETURN                                                   1

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

End of function splautoloadtest1

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

End of function splautoloadtest2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.93 ms | 1405 KiB | 21 Q