1Blockless statements for if/for/etc
2-----
3<?php
4
5if ($a) $A;
6elseif ($b) $B;
7else $C;
8
9for (;;) $foo;
10
11foreach ($a as $b) $AB;
12
13while ($a) $A;
14
15do $A; while ($a);
16
17declare (a='b') $C;
18-----
19array(
20    0: Stmt_If(
21        cond: Expr_Variable(
22            name: a
23        )
24        stmts: array(
25            0: Stmt_Expression(
26                expr: Expr_Variable(
27                    name: A
28                )
29            )
30        )
31        elseifs: array(
32            0: Stmt_ElseIf(
33                cond: Expr_Variable(
34                    name: b
35                )
36                stmts: array(
37                    0: Stmt_Expression(
38                        expr: Expr_Variable(
39                            name: B
40                        )
41                    )
42                )
43            )
44        )
45        else: Stmt_Else(
46            stmts: array(
47                0: Stmt_Expression(
48                    expr: Expr_Variable(
49                        name: C
50                    )
51                )
52            )
53        )
54    )
55    1: Stmt_For(
56        init: array(
57        )
58        cond: array(
59        )
60        loop: array(
61        )
62        stmts: array(
63            0: Stmt_Expression(
64                expr: Expr_Variable(
65                    name: foo
66                )
67            )
68        )
69    )
70    2: Stmt_Foreach(
71        expr: Expr_Variable(
72            name: a
73        )
74        keyVar: null
75        byRef: false
76        valueVar: Expr_Variable(
77            name: b
78        )
79        stmts: array(
80            0: Stmt_Expression(
81                expr: Expr_Variable(
82                    name: AB
83                )
84            )
85        )
86    )
87    3: Stmt_While(
88        cond: Expr_Variable(
89            name: a
90        )
91        stmts: array(
92            0: Stmt_Expression(
93                expr: Expr_Variable(
94                    name: A
95                )
96            )
97        )
98    )
99    4: Stmt_Do(
100        stmts: array(
101            0: Stmt_Expression(
102                expr: Expr_Variable(
103                    name: A
104                )
105            )
106        )
107        cond: Expr_Variable(
108            name: a
109        )
110    )
111    5: Stmt_Declare(
112        declares: array(
113            0: DeclareItem(
114                key: Identifier(
115                    name: a
116                )
117                value: Scalar_String(
118                    value: b
119                )
120            )
121        )
122        stmts: array(
123            0: Stmt_Expression(
124                expr: Expr_Variable(
125                    name: C
126                )
127            )
128        )
129    )
130)
131