1--TEST--
2Flexible heredoc syntax complex test 3: interpolated nested heredocs
3with the same delimiter name with different levels of indentation
4--FILE--
5<?php
6
7${' a'} = ' b';
8${' b'} = 'c';
9${"b\n b"} = 'b';
10
11var_dump(<<<DOC1
12      a
13     ${<<<DOC2
14        b
15        ${<<<DOC3
16             a
17            DOC3}
18        DOC2
19     }
20    c
21    DOC1);
22
23?>
24--EXPECT--
25string(8) "  a
26 b
27c"
28