3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($class) { class Foo{ public function __construct() { echo 'Foo'; } }; class Bar{}; class_alias('Foo', 'Bar'); var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)); }, true, true); $bar = new Foo(); $bar2 = new Bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9r2aA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bar, !1 = $bar2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F9r2aA%3A3%240'
   13     2        SEND_VAL                                                 ~2
          3        SEND_VAL                                                 <true>
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                                 
   15     6        NEW                                              $4      'Foo'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $4
   16     9        NEW                                              $7      'Bar'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $7
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F9r2aA%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9r2aA
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        DECLARE_CLASS                                            'foo'
   10     2        DECLARE_CLASS                                            'bar'
   11     3        INIT_FCALL                                               'class_alias'
          4        SEND_VAL                                                 'Foo'
          5        SEND_VAL                                                 'Bar'
          6        DO_ICALL                                                 
   12     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'debug_backtrace'
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
   13    14      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F9r2aA%3A3%240

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9r2aA
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'Foo'
    7     1      > RETURN                                                   null

End of function __construct

End of class Foo.

Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.14 ms | 1388 KiB | 21 Q