1Flexible heredoc/nowdoc (PHP 7.3) 2----- 3<?php 4 5$ary = [ 6 <<<FOO 7Test 8FOO, 9 <<<'BAR' 10 Test 11 BAR, 12]; 13 14<<<'END' 15 END; 16 17<<<END 18 19 END; 20 21<<<END 22@@{ " " }@@ 23 END; 24 25<<<'END' 26 a 27 b 28 29 c 30 31 d 32 e 33 END; 34 35<<<END 36 a 37 b 38 $test 39 d 40 e 41 END; 42 43<<<'END' 44 45 a 46 47 b 48 49 c 50 51 d 52 53e 54 55END; 56 57<<<END 58 a\r\n 59\ta\n 60 b\r\n 61 $test\n 62 d\r\n 63e\n 64END; 65 66<<<BAR 67 $one- 68 BAR; 69 70<<<BAR 71 $two - 72 BAR; 73 74<<<BAR 75 $three - 76 BAR; 77 78<<<BAR 79 $four-$four 80 BAR; 81 82<<<BAR 83 $five-$five- 84 BAR; 85 86<<<BAR 87 $six-$six-$six 88 BAR; 89 90<<<BAR 91 $seven 92 - 93 BAR; 94 95<<<BAR 96 $eight 97 - 98 BAR; 99 100<<<BAR 101$nine 102BAR; 103 104<<<BAR 105 - 106 BAR; 107 108<<<BAR 109 - 110 BAR; 111----- 112array( 113 0: Stmt_Expression( 114 expr: Expr_Assign( 115 var: Expr_Variable( 116 name: ary 117 ) 118 expr: Expr_Array( 119 items: array( 120 0: ArrayItem( 121 key: null 122 value: Scalar_String( 123 value: Test 124 ) 125 byRef: false 126 unpack: false 127 ) 128 1: ArrayItem( 129 key: null 130 value: Scalar_String( 131 value: Test 132 ) 133 byRef: false 134 unpack: false 135 ) 136 ) 137 ) 138 ) 139 ) 140 1: Stmt_Expression( 141 expr: Scalar_String( 142 value: 143 ) 144 ) 145 2: Stmt_Expression( 146 expr: Scalar_String( 147 value: 148 ) 149 ) 150 3: Stmt_Expression( 151 expr: Scalar_String( 152 value: 153 ) 154 ) 155 4: Stmt_Expression( 156 expr: Scalar_String( 157 value: a 158 b 159 160 c 161 162 d 163 e 164 ) 165 ) 166 5: Stmt_Expression( 167 expr: Scalar_InterpolatedString( 168 parts: array( 169 0: InterpolatedStringPart( 170 value: a 171 b 172 173 ) 174 1: Expr_Variable( 175 name: test 176 ) 177 2: InterpolatedStringPart( 178 value: 179 d 180 e 181 ) 182 ) 183 ) 184 ) 185 6: Stmt_Expression( 186 expr: Scalar_String( 187 value: 188 a 189 190 b 191 192 c 193 194 d 195 196 e 197 198 ) 199 ) 200 7: Stmt_Expression( 201 expr: Scalar_InterpolatedString( 202 parts: array( 203 0: InterpolatedStringPart( 204 value: a 205 206 @@{ "\t" }@@a 207 208 b 209 210 211 ) 212 1: Expr_Variable( 213 name: test 214 ) 215 2: InterpolatedStringPart( 216 value: 217 218 d 219 220 e 221 222 ) 223 ) 224 ) 225 ) 226 8: Stmt_Expression( 227 expr: Scalar_InterpolatedString( 228 parts: array( 229 0: Expr_Variable( 230 name: one 231 ) 232 1: InterpolatedStringPart( 233 value: - 234 ) 235 ) 236 ) 237 ) 238 9: Stmt_Expression( 239 expr: Scalar_InterpolatedString( 240 parts: array( 241 0: Expr_Variable( 242 name: two 243 ) 244 1: InterpolatedStringPart( 245 value: - 246 ) 247 ) 248 ) 249 ) 250 10: Stmt_Expression( 251 expr: Scalar_InterpolatedString( 252 parts: array( 253 0: Expr_Variable( 254 name: three 255 ) 256 1: InterpolatedStringPart( 257 value: - 258 ) 259 ) 260 ) 261 ) 262 11: Stmt_Expression( 263 expr: Scalar_InterpolatedString( 264 parts: array( 265 0: Expr_Variable( 266 name: four 267 ) 268 1: InterpolatedStringPart( 269 value: - 270 ) 271 2: Expr_Variable( 272 name: four 273 ) 274 ) 275 ) 276 ) 277 12: Stmt_Expression( 278 expr: Scalar_InterpolatedString( 279 parts: array( 280 0: Expr_Variable( 281 name: five 282 ) 283 1: InterpolatedStringPart( 284 value: - 285 ) 286 2: Expr_Variable( 287 name: five 288 ) 289 3: InterpolatedStringPart( 290 value: - 291 ) 292 ) 293 ) 294 ) 295 13: Stmt_Expression( 296 expr: Scalar_InterpolatedString( 297 parts: array( 298 0: Expr_Variable( 299 name: six 300 ) 301 1: InterpolatedStringPart( 302 value: - 303 ) 304 2: Expr_Variable( 305 name: six 306 ) 307 3: InterpolatedStringPart( 308 value: - 309 ) 310 4: Expr_Variable( 311 name: six 312 ) 313 ) 314 ) 315 ) 316 14: Stmt_Expression( 317 expr: Scalar_InterpolatedString( 318 parts: array( 319 0: Expr_Variable( 320 name: seven 321 ) 322 1: InterpolatedStringPart( 323 value: 324 - 325 ) 326 ) 327 ) 328 ) 329 15: Stmt_Expression( 330 expr: Scalar_InterpolatedString( 331 parts: array( 332 0: Expr_Variable( 333 name: eight 334 ) 335 1: InterpolatedStringPart( 336 value: 337 - 338 ) 339 ) 340 ) 341 ) 342 16: Stmt_Expression( 343 expr: Scalar_InterpolatedString( 344 parts: array( 345 0: Expr_Variable( 346 name: nine 347 ) 348 ) 349 ) 350 ) 351 17: Stmt_Expression( 352 expr: Scalar_String( 353 value: - 354 ) 355 ) 356 18: Stmt_Expression( 357 expr: Scalar_String( 358 value: - 359 ) 360 ) 361) 362