3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TT{ private $that; public function __construct(){ $this->that = &$this; } public function poop(){ var_dump( $this ); } } class TT_B extends TT{ public function that(){ unset( $this->that ); $this->poop(); } } $a = new TT_B; $a->that();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7hJJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'TT_B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     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/V7hJJ
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $1      
          1        MAKE_REF                                         $2      $1
          2        ASSIGN_OBJ_REF                                           'that'
          3        OP_DATA                                                  $2
    8     4      > RETURN                                                   null

End of function __construct

Function poop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7hJJ
function name:  poop
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function poop

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/V7hJJ
function name:  that
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   UNSET_OBJ                                                'that'
   18     1        INIT_METHOD_CALL                                         'poop'
          2        DO_FCALL                                      0          
   19     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/V7hJJ
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $1      
          1        MAKE_REF                                         $2      $1
          2        ASSIGN_OBJ_REF                                           'that'
          3        OP_DATA                                                  $2
    8     4      > RETURN                                                   null

End of function __construct

Function poop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V7hJJ
function name:  poop
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_THIS                                       ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function poop

End of class TT_B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1400 KiB | 15 Q