3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public abstract function getName(); } class B extends A { public function getName() { echo 'B'; } } class C extends A { public function getName() { echo 'C'; } } $b = new B; $b->getName(); $c = new C; $c->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z40lK
function name:  (null)
number of ops:  11
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $2      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   20     3        INIT_METHOD_CALL                                         !0, 'getName'
          4        DO_FCALL                                      0          
   22     5        NEW                                              $6      'C'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   23     8        INIT_METHOD_CALL                                         !1, 'getName'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z40lK
function name:  getName
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function getname

End of class A.

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

End of function getname

End of class B.

Class C:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z40lK
function name:  getName
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'C'
   16     1      > RETURN                                                   null

End of function getname

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.55 ms | 1385 KiB | 13 Q