3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b; public $c; public function __construct() { $this->b = new B(); $this->c = new C(); } } class B { public $a; public function __construct() { $this->a = new A(); } } class C { } print_r(new A()); var_dump(new A()); var_export(new A());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0LE3
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_FCALL                                               'print_r'
          1        NEW                                              $0      'A'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
   31     5        INIT_FCALL                                               'var_dump'
          6        NEW                                              $3      'A'
          7        DO_FCALL                                      0          
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   32    10        INIT_FCALL                                               'var_export'
         11        NEW                                              $6      'A'
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0LE3
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'b'
          3        OP_DATA                                                  $1
   11     4        NEW                                              $4      'C'
          5        DO_FCALL                                      0          
          6        ASSIGN_OBJ                                               'c'
          7        OP_DATA                                                  $4
   12     8      > RETURN                                                   null

End of function __construct

End of class A.

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

End of function __construct

End of class B.

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.93 ms | 1396 KiB | 19 Q