3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function isHTML() { echo "lower\n"; } } class b extends a { function IsHTML() { echo "upper\n"; } } $bb = new b(); $bb->isHTML(); $bb->IsHTML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2v1l8
function name:  (null)
number of ops:  8
compiled vars:  !0 = $bb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'b'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'isHTML'
          4        DO_FCALL                                      0          
   17     5        INIT_METHOD_CALL                                         !0, 'IsHTML'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function ishtml

End of class a.

Class b:
Function ishtml:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2v1l8
function name:  IsHTML
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'upper%0A'
   12     1      > RETURN                                                   null

End of function ishtml

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.27 ms | 1394 KiB | 13 Q