3v4l.org

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

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

End of function without

Function with:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pRhCT
function name:  with
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'no+return'
    9     1        VERIFY_RETURN_TYPE                                       
          2      > RETURN                                                   null

End of function with

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.51 ms | 1000 KiB | 15 Q