3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($class) { class Foo{ public function __construct() { echo 'Foo'; } }; class_alias('Foo', '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/v8bKo
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%2Fv8bKo%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%2Fv8bKo%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v8bKo
function name:  {closure}
number of ops:  18
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        INIT_FCALL                                               'class_alias'
          3        SEND_VAL                                                 'Foo'
          4        SEND_VAL                                                 'Bar'
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'class_alias'
          7        SEND_VAL                                                 'Foo'
          8        SEND_VAL                                                 'Bar'
          9        DO_ICALL                                                 
   12    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'debug_backtrace'
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
   13    17      > RETURN                                                   null

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

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v8bKo
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.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.89 ms | 1396 KiB | 21 Q