1Literals
2-----
3<?php
4
5<<<'STR'
6STR;
7<<<STR
8STR;
9
10<<<'STR'
11A
12B
13STR;
14<<<STR
15A
16B
17STR;
18
19<<<'STR'
20a\nb$c
21STR;
22<<<STR
23a\\nb\$c
24STR;
25
26<<<STR
27a$b
28{$c->d}
29STR;
30
31call(
32    <<<STR
33A
34STR
35    , <<<STR
36B
37STR
38);
39
40function test() {
41    <<<'STR'
42    STR;
43    <<<'STR'
44    Foo
45        Bar
46            Baz
47    STR;
48    <<<STR
49    STR;
50    <<<STR
51Foo
52Bar
53STR;
54    <<<STR
55    Bar
56        Baz
57    STR;
58    <<<STR
59    $bar
60        $baz
61    STR;
62}
63-----
64<<<'STR'
65STR;
66<<<STR
67STR;
68<<<'STR'
69A
70B
71STR;
72<<<STR
73A
74B
75STR;
76<<<'STR'
77a\nb$c
78STR;
79<<<STR
80a\\nb\$c
81STR;
82<<<STR
83a{$b}
84{$c->d}
85STR;
86call(<<<STR
87A
88STR, <<<STR
89B
90STR);
91function test()
92{
93    <<<'STR'
94    STR;
95    <<<'STR'
96    Foo
97        Bar
98            Baz
99    STR;
100    <<<STR
101    STR;
102    <<<STR
103    Foo
104    Bar
105    STR;
106    <<<STR
107    Bar
108        Baz
109    STR;
110    <<<STR
111    {$bar}
112        {$baz}
113    STR;
114}
115-----
116<?php
117if (1) {
118    foo(<<<STR
119abc
120STR
121    , <<<STR
122abc
123STR
124    );
125}
126-----
127!!version=7.2
128if (1) {
129    foo(<<<STR
130abc
131STR
132, <<<STR
133abc
134STR
135);
136}
137