3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loader1($class) { var_dump(__FUNCTION__, $class); } function loader2($class) { var_dump(__FUNCTION__, $class); } spl_autoload_register('loader1'); spl_autoload_register('loader2'); new Xyz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CYhJU
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'loader1'
          2        DO_ICALL                                                 
   12     3        INIT_FCALL                                               'spl_autoload_register'
          4        SEND_VAL                                                 'loader2'
          5        DO_ICALL                                                 
   14     6        NEW                                              $2      'Xyz'
          7        DO_FCALL                                      0          
          8        FREE                                                     $2
          9      > RETURN                                                   1

Function loader1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CYhJU
function name:  loader1
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 'loader1'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function loader1

Function loader2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CYhJU
function name:  loader2
number of ops:  6
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 'loader2'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    9     5      > RETURN                                                   null

End of function loader2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.25 ms | 1395 KiB | 17 Q