3v4l.org

run code in 300+ PHP versions simultaneously
<?php class theParent { function derp() { echo 'Everything went better than expected...'; } } class ParentChild extends theParent { function derp() { die('DONT DO THIS'); } } class Child extends ParentChild { function derp() { // dont parent::derp(); parent::parent::derp(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ib1NT
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   1

Class theParent:
Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ib1NT
function name:  derp
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Everything+went+better+than+expected...'
    5     1      > RETURN                                                   null

End of function derp

End of class theParent.

Class ParentChild:
Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/Ib1NT
function name:  derp
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > EXIT                                                     'DONT+DO+THIS'
   10     1*     > RETURN                                                   null

End of function derp

End of class ParentChild.

Class Child:
Function derp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ib1NT
function name:  derp
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_CLASS_CONSTANT                             ~0      'parent'
          1        FETCH_CLASS                                   0  $1      ~0
          2        INIT_STATIC_METHOD_CALL                                  $1, 'derp'
          3        DO_FCALL                                      0          
   16     4      > RETURN                                                   null

End of function derp

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.11 ms | 939 KiB | 14 Q