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(){ $this->that = new TT; } public function check(){ var_dump( 'new' ); } } $a = new TT_B; $a->that(); $a->check();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QRcW
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'TT_B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'that'
          4        DO_FCALL                                      0          
   27     5        INIT_METHOD_CALL                                         !0, 'check'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class TT:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QRcW
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/4QRcW
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/4QRcW
function name:  that
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'TT'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'that'
          3        OP_DATA                                                  $1
   18     4      > RETURN                                                   null

End of function that

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

End of function check

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QRcW
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/4QRcW
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:
157.04 ms | 1400 KiB | 15 Q