3v4l.org

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

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

End of function foo

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

End of function bar

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

End of function proxy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1013 KiB | 21 Q