1--TEST--
2Flexible heredoc syntax complex test 1: interpolated nested heredocs
3with different delimiter names
4--FILE--
5<?php
6
7$a = 'b';
8${"b\nb\n d"} = 'b';
9
10var_dump(<<<DOC1
11    a
12    ${<<<DOC2
13        b
14        ${<<<DOC3
15            a
16            DOC3}
17         d
18        DOC2
19    }
20    c
21    DOC1);
22
23?>
24--EXPECTF--
25Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d
26
27Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d
28string(5) "a
29b
30c"
31