3v4l.org

run code in 300+ PHP versions simultaneously
<?php class aaa { public $xxx = 'aaa'; function yyy(){ echo $this->xxx; } } class bbb extends aaa { public $zzz=''; } class ccc extends bbb { function tests(){ echo parent::$this->xxx; } } $ccc_o = new ccc(); $ccc_o->tests(); $ccc_o->yyy(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYIpr
function name:  (null)
number of ops:  8
compiled vars:  !0 = $ccc_o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   NEW                                              $1      'ccc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   27     3        INIT_METHOD_CALL                                         !0, 'tests'
          4        DO_FCALL                                      0          
   28     5        INIT_METHOD_CALL                                         !0, 'yyy'
          6        DO_FCALL                                      0          
   30     7      > RETURN                                                   1

Class aaa:
Function yyy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYIpr
function name:  yyy
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'xxx'
          1        ECHO                                                     ~0
    9     2      > RETURN                                                   null

End of function yyy

End of class aaa.

Class bbb:
Function yyy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYIpr
function name:  yyy
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'xxx'
          1        ECHO                                                     ~0
    9     2      > RETURN                                                   null

End of function yyy

End of class bbb.

Class ccc:
Function tests:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYIpr
function name:  tests
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'this'
          1        FETCH_OBJ_R                                      ~1      ~0, 'xxx'
          2        ECHO                                                     ~1
   23     3      > RETURN                                                   null

End of function tests

Function yyy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYIpr
function name:  yyy
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'xxx'
          1        ECHO                                                     ~0
    9     2      > RETURN                                                   null

End of function yyy

End of class ccc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.65 ms | 1395 KiB | 13 Q