3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $__row = null; function A($row) { $this->__row = $row; } } class B extends A { var $__module_id; function B($row, $module_id) { parent::A($row); $this->__module_id = $module_id; } } class C extends B { function C($row) { parent::B($row, 'common'); } } class D extends C { function D($row) { parent::B($row, 'something'); // ATTENTION - Here is "::B" not "::C" } } $d = new D('dummy'); var_dump($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   NEW                                              $1      'D'
          1        SEND_VAL_EX                                              'dummy'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   32     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class A:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  A
number of ops:  4
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '__row'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function a

End of class A.

Class B:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  B
number of ops:  8
compiled vars:  !0 = $row, !1 = $module_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_STATIC_METHOD_CALL                                  'A'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   15     5        ASSIGN_OBJ                                               '__module_id'
          6        OP_DATA                                                  !1
   16     7      > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  A
number of ops:  4
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '__row'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function a

End of class B.

Class C:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  C
number of ops:  6
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        INIT_STATIC_METHOD_CALL                                  'B'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'common'
          4        DO_FCALL                                      0          
   22     5      > RETURN                                                   null

End of function c

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  B
number of ops:  8
compiled vars:  !0 = $row, !1 = $module_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_STATIC_METHOD_CALL                                  'A'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   15     5        ASSIGN_OBJ                                               '__module_id'
          6        OP_DATA                                                  !1
   16     7      > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  A
number of ops:  4
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '__row'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function a

End of class C.

Class D:
Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  D
number of ops:  6
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
   27     1        INIT_STATIC_METHOD_CALL                                  'B'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'something'
          4        DO_FCALL                                      0          
   28     5      > RETURN                                                   null

End of function d

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  C
number of ops:  6
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        INIT_STATIC_METHOD_CALL                                  'B'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'common'
          4        DO_FCALL                                      0          
   22     5      > RETURN                                                   null

End of function c

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  B
number of ops:  8
compiled vars:  !0 = $row, !1 = $module_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_STATIC_METHOD_CALL                                  'A'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   15     5        ASSIGN_OBJ                                               '__module_id'
          6        OP_DATA                                                  !1
   16     7      > RETURN                                                   null

End of function b

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dfkg3
function name:  A
number of ops:  4
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               '__row'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function a

End of class D.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.8 ms | 1404 KiB | 15 Q