3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function toArray(): array { return []; } } class SomethingElse extends Something { public function toArray(): array { return []; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b3BGR
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 Something:
Function toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b3BGR
function name:  toArray
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   <array>
    9     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function toarray

End of class Something.

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

End of function toarray

End of class SomethingElse.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.86 ms | 1006 KiB | 13 Q