3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Header { public function __construct() { var_dump(debug_backtrace()); } } class Modules { public function __construct() { $this->header = new Header(); } } class Project { public $config = "config"; public function __construct() { $this->modules = new Modules(); } } $p = new Project();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Klpc6
function name:  (null)
number of ops:  4
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   NEW                                              $1      'Project'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

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

End of function __construct

End of class Header.

Class Modules:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Klpc6
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Header'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'header'
          3        OP_DATA                                                  $1
   16     4      > RETURN                                                   null

End of function __construct

End of class Modules.

Class Project:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Klpc6
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'Modules'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'modules'
          3        OP_DATA                                                  $1
   26     4      > RETURN                                                   null

End of function __construct

End of class Project.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.72 ms | 1396 KiB | 17 Q