3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function f() { echo "A.f() "; } public function g() { echo "A.g() "; } public static function main() { $a = new B(); $a->f(); } } class B extends A { public function f() { echo "B.f() "; } public function g() { echo "B.g() "; } public static function main() { $a = new B(); $a->f(); } } A::main(); B::main();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'main'
          1        DO_FCALL                                      0          
   33     2        INIT_STATIC_METHOD_CALL                                  'B', 'main'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class A:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  f
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'A.f%28%29+'
    6     1      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  g
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'A.g%28%29+'
   10     1      > RETURN                                                   null

End of function g

Function main:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  main
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
   14     5      > RETURN                                                   null

End of function main

End of class A.

Class B:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  f
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ECHO                                                     'B.f%28%29+'
   21     1      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  g
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   ECHO                                                     'B.g%28%29+'
   25     1      > RETURN                                                   null

End of function g

Function main:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gGsOK
function name:  main
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
   29     5      > RETURN                                                   null

End of function main

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.39 ms | 1399 KiB | 13 Q