3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1($class) { echo "f1: [[$class]]\n"; } function f2($class) { echo "f2: [[$class]]\n"; } spl_autoload_register('f1'); spl_autoload_register('f2'); //spl_autoload_register(create_function('$class', 'echo "cf1: [[$class]]\n";')); //spl_autoload_register(create_function('$class', 'echo "cf2: [[$class]]\n";')); var_dump(spl_autoload_functions()); foreach (spl_autoload_functions() AS $func) { spl_autoload_unregister($func); } var_dump(spl_autoload_functions()); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/gA1kF
function name:  (null)
number of ops:  26
compiled vars:  !0 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'f1'
          2        DO_ICALL                                                 
    7     3        INIT_FCALL                                               'spl_autoload_register'
          4        SEND_VAL                                                 'f2'
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'spl_autoload_functions'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'spl_autoload_functions'
         12        DO_ICALL                                         $5      
         13      > FE_RESET_R                                       $6      $5, ->19
         14    > > FE_FETCH_R                                               $6, !0, ->19
   14    15    >   INIT_FCALL                                               'spl_autoload_unregister'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   12    18      > JMP                                                      ->14
         19    >   FE_FREE                                                  $6
   16    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'spl_autoload_functions'
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
   18    25      > RETURN                                                   1

Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gA1kF
function name:  f1
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        ROPE_INIT                                     3  ~2      'f1%3A+%5B%5B'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%5D%5D%0A'
          4        ECHO                                                     ~1
          5      > RETURN                                                   null

End of function f1

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gA1kF
function name:  f2
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        ROPE_INIT                                     3  ~2      'f2%3A+%5B%5B'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%5D%5D%0A'
          4        ECHO                                                     ~1
          5      > RETURN                                                   null

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1400 KiB | 21 Q