3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TT{ private $that; public function __construct(){ $this->that = $this; } } class TT_B extends TT{ public function that(){ $this->that = $this; } } $a = new TT_B; $a->that();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1P0sj
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'TT_B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'that'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class TT:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1P0sj
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       ~1      
          1        ASSIGN_OBJ                                               'that'
          2        OP_DATA                                                  ~1
    8     3      > RETURN                                                   null

End of function __construct

End of class TT.

Class TT_B:
Function that:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1P0sj
function name:  that
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_THIS                                       ~1      
          1        ASSIGN_OBJ                                               'that'
          2        OP_DATA                                                  ~1
   16     3      > RETURN                                                   null

End of function that

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1P0sj
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       ~1      
          1        ASSIGN_OBJ                                               'that'
          2        OP_DATA                                                  ~1
    8     3      > RETURN                                                   null

End of function __construct

End of class TT_B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.15 ms | 1395 KiB | 13 Q