3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bar { function blaat() { echo "blaat1"; } } class foo extends bar { function blaat() { echo "blaat2"; parent::blaat(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MN8W8
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

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

End of function blaat

End of class bar.

Class foo:
Function blaat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MN8W8
function name:  blaat
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'blaat2'
   12     1        INIT_STATIC_METHOD_CALL                                  'blaat'
          2        DO_FCALL                                      0          
   13     3      > RETURN                                                   null

End of function blaat

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.1 ms | 1384 KiB | 13 Q