3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function run(): mixed {} } class B extends A { public function run(): never { exit; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dYEAF
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                       1

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

End of function run

End of class A.

Class B:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/dYEAF
function name:  run
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E > > INIT_FCALL                                                   'exit'
          1*       DO_ICALL                                                     
   15     2*     > VERIFY_NEVER_TYPE                                            

End of function run

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.05 ms | 1439 KiB | 14 Q