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; } } $test = new specialMemberAccount(10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/icXCt
function name:  (null)
number of ops:  5
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'specialMemberAccount'
          1        SEND_VAL_EX                                              10
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class memberAccount:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/icXCt
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/icXCt
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/icXCt
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/icXCt
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:
157.2 ms | 1395 KiB | 13 Q