1PHP 7.3 trailing comma additions 2----- 3<?php 4 5foo($a, $b, ); 6$foo->bar($a, $b, ); 7Foo::bar($a, $b, ); 8new Foo($a, $b, ); 9unset($a, $b, ); 10isset($a, $b, ); 11----- 12array( 13 0: Stmt_Expression( 14 expr: Expr_FuncCall( 15 name: Name( 16 name: foo 17 ) 18 args: array( 19 0: Arg( 20 name: null 21 value: Expr_Variable( 22 name: a 23 ) 24 byRef: false 25 unpack: false 26 ) 27 1: Arg( 28 name: null 29 value: Expr_Variable( 30 name: b 31 ) 32 byRef: false 33 unpack: false 34 ) 35 ) 36 ) 37 ) 38 1: Stmt_Expression( 39 expr: Expr_MethodCall( 40 var: Expr_Variable( 41 name: foo 42 ) 43 name: Identifier( 44 name: bar 45 ) 46 args: array( 47 0: Arg( 48 name: null 49 value: Expr_Variable( 50 name: a 51 ) 52 byRef: false 53 unpack: false 54 ) 55 1: Arg( 56 name: null 57 value: Expr_Variable( 58 name: b 59 ) 60 byRef: false 61 unpack: false 62 ) 63 ) 64 ) 65 ) 66 2: Stmt_Expression( 67 expr: Expr_StaticCall( 68 class: Name( 69 name: Foo 70 ) 71 name: Identifier( 72 name: bar 73 ) 74 args: array( 75 0: Arg( 76 name: null 77 value: Expr_Variable( 78 name: a 79 ) 80 byRef: false 81 unpack: false 82 ) 83 1: Arg( 84 name: null 85 value: Expr_Variable( 86 name: b 87 ) 88 byRef: false 89 unpack: false 90 ) 91 ) 92 ) 93 ) 94 3: Stmt_Expression( 95 expr: Expr_New( 96 class: Name( 97 name: Foo 98 ) 99 args: array( 100 0: Arg( 101 name: null 102 value: Expr_Variable( 103 name: a 104 ) 105 byRef: false 106 unpack: false 107 ) 108 1: Arg( 109 name: null 110 value: Expr_Variable( 111 name: b 112 ) 113 byRef: false 114 unpack: false 115 ) 116 ) 117 ) 118 ) 119 4: Stmt_Unset( 120 vars: array( 121 0: Expr_Variable( 122 name: a 123 ) 124 1: Expr_Variable( 125 name: b 126 ) 127 ) 128 ) 129 5: Stmt_Expression( 130 expr: Expr_Isset( 131 vars: array( 132 0: Expr_Variable( 133 name: a 134 ) 135 1: Expr_Variable( 136 name: b 137 ) 138 ) 139 ) 140 ) 141) 142