3v4l.org

run code in 300+ PHP versions simultaneously
<?php class memberAccount { private $aNumber; public function __construct($aNumberParam) { $aNumber = $aNumberParam; } private function getNumber() { return $this->aNumber; } } class specialMemberAccount extends memberAccount { private function getNumber() { return $this->aNumber + 1000; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NbK0b
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   1

Class memberAccount:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NbK0b
function name:  __construct
number of ops:  3
compiled vars:  !0 = $aNumberParam, !1 = $aNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, !0
    9     2      > RETURN                                                   null

End of function __construct

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

End of function getnumber

End of class memberAccount.

Class specialMemberAccount:
Function getnumber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NbK0b
function name:  getNumber
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_OBJ_R                                      ~0      'aNumber'
          1        ADD                                              ~1      ~0, 1000
          2      > RETURN                                                   ~1
   22     3*     > RETURN                                                   null

End of function getnumber

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NbK0b
function name:  __construct
number of ops:  3
compiled vars:  !0 = $aNumberParam, !1 = $aNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, !0
    9     2      > RETURN                                                   null

End of function __construct

End of class specialMemberAccount.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.35 ms | 1395 KiB | 13 Q