3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test(): string { return 'coucou'; } echo test();
based on HLSVG
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4kZSi
function name:  (null)
number of ops:  5
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   6     1        INIT_FCALL                                               'test'
         2        DO_FCALL                                      0  $0      
         3        ECHO                                                     $0
         4      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 7.3.0