1standalone null, false and true types 2----- 3<?php 4 5function test(): null {} 6function test(): false {} 7function test(): true {} 8----- 9!!version=8.1 10array( 11 0: Stmt_Function( 12 attrGroups: array( 13 ) 14 byRef: false 15 name: Identifier( 16 name: test 17 ) 18 params: array( 19 ) 20 returnType: Identifier( 21 name: null 22 ) 23 stmts: array( 24 ) 25 ) 26 1: Stmt_Function( 27 attrGroups: array( 28 ) 29 byRef: false 30 name: Identifier( 31 name: test 32 ) 33 params: array( 34 ) 35 returnType: Identifier( 36 name: false 37 ) 38 stmts: array( 39 ) 40 ) 41 2: Stmt_Function( 42 attrGroups: array( 43 ) 44 byRef: false 45 name: Identifier( 46 name: test 47 ) 48 params: array( 49 ) 50 returnType: Name( 51 name: true 52 ) 53 stmts: array( 54 ) 55 ) 56) 57----- 58<?php 59 60function test(): null {} 61function test(): false {} 62function test(): true {} 63----- 64!!version=8.2 65array( 66 0: Stmt_Function( 67 attrGroups: array( 68 ) 69 byRef: false 70 name: Identifier( 71 name: test 72 ) 73 params: array( 74 ) 75 returnType: Identifier( 76 name: null 77 ) 78 stmts: array( 79 ) 80 ) 81 1: Stmt_Function( 82 attrGroups: array( 83 ) 84 byRef: false 85 name: Identifier( 86 name: test 87 ) 88 params: array( 89 ) 90 returnType: Identifier( 91 name: false 92 ) 93 stmts: array( 94 ) 95 ) 96 2: Stmt_Function( 97 attrGroups: array( 98 ) 99 byRef: false 100 name: Identifier( 101 name: test 102 ) 103 params: array( 104 ) 105 returnType: Identifier( 106 name: true 107 ) 108 stmts: array( 109 ) 110 ) 111) 112