3v4l.org

run code in 500+ PHP versions simultaneously
<?php function returnsInt() : int { return 5; } echo returnsInt();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0lYZt
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'returnsint'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
          3      > RETURN                                                       1

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

End of function returnsint

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
199.42 ms | 2721 KiB | 9 Q