1Return type declarations 2----- 3<?php 4 5function test1() {} 6function test2() : array {} 7function test3() : callable {} 8function test4() : Foo\Bar {} 9----- 10array( 11 0: Stmt_Function( 12 attrGroups: array( 13 ) 14 byRef: false 15 name: Identifier( 16 name: test1 17 ) 18 params: array( 19 ) 20 returnType: null 21 stmts: array( 22 ) 23 ) 24 1: Stmt_Function( 25 attrGroups: array( 26 ) 27 byRef: false 28 name: Identifier( 29 name: test2 30 ) 31 params: array( 32 ) 33 returnType: Identifier( 34 name: array 35 ) 36 stmts: array( 37 ) 38 ) 39 2: Stmt_Function( 40 attrGroups: array( 41 ) 42 byRef: false 43 name: Identifier( 44 name: test3 45 ) 46 params: array( 47 ) 48 returnType: Identifier( 49 name: callable 50 ) 51 stmts: array( 52 ) 53 ) 54 3: Stmt_Function( 55 attrGroups: array( 56 ) 57 byRef: false 58 name: Identifier( 59 name: test4 60 ) 61 params: array( 62 ) 63 returnType: Name( 64 name: Foo\Bar 65 ) 66 stmts: array( 67 ) 68 ) 69) 70