3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass implements Countable { public function count(): int { } } class Child extends ParentClass { public function count(): string // it's ok when class implements Countable { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lUUH6
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'parentclass'
   12     1        DECLARE_CLASS                                            'child', 'parentclass'
   17     2      > RETURN                                                   1

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

End of function count

End of class ParentClass.

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

End of function count

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
240.69 ms | 994 KiB | 13 Q