3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { private $_e; protected function setE() { $this->$_e++; } protected function getE() { return $this->$_e; } } class Foo extends Base { public function __contruct() { $this->setE(); } } class Bar extends Base { public function __contruct() { $this->setE(); } } $foo = new Foo; //$bar = new Bar; echo $foo->getE();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   37     3        INIT_METHOD_CALL                                         !0, 'getE'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

Class Base:
Function sete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  setE
number of ops:  2
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   PRE_INC_OBJ                                              !0
   10     1      > RETURN                                                   null

End of function sete

Function gete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  getE
number of ops:  3
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~1      !0
          1      > RETURN                                                   ~1
   15     2*     > RETURN                                                   null

End of function gete

End of class Base.

Class Foo:
Function __contruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  __contruct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_METHOD_CALL                                         'setE'
          1        DO_FCALL                                      0          
   23     2      > RETURN                                                   null

End of function __contruct

Function sete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  setE
number of ops:  2
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   PRE_INC_OBJ                                              !0
   10     1      > RETURN                                                   null

End of function sete

Function gete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  getE
number of ops:  3
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~1      !0
          1      > RETURN                                                   ~1
   15     2*     > RETURN                                                   null

End of function gete

End of class Foo.

Class Bar:
Function __contruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  __contruct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_METHOD_CALL                                         'setE'
          1        DO_FCALL                                      0          
   31     2      > RETURN                                                   null

End of function __contruct

Function sete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  setE
number of ops:  2
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   PRE_INC_OBJ                                              !0
   10     1      > RETURN                                                   null

End of function sete

Function gete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0gfHJ
function name:  getE
number of ops:  3
compiled vars:  !0 = $_e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~1      !0
          1      > RETURN                                                   ~1
   15     2*     > RETURN                                                   null

End of function gete

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.94 ms | 1399 KiB | 13 Q