1Some statements may occur outside of namespaces
2-----
3<?php
4declare(A='B');
5namespace B {
6
7}
8__halt_compiler()
9?>
10Hi!
11-----
12array(
13    0: Stmt_Declare(
14        declares: array(
15            0: DeclareItem(
16                key: Identifier(
17                    name: A
18                )
19                value: Scalar_String(
20                    value: B
21                )
22            )
23        )
24        stmts: null
25    )
26    1: Stmt_Namespace(
27        name: Name(
28            name: B
29        )
30        stmts: array(
31        )
32    )
33    2: Stmt_HaltCompiler(
34        remaining: Hi!
35    )
36)
37-----
38<?php
39/* Comment */
40;
41namespace Foo;
42-----
43array(
44    0: Stmt_Nop(
45        comments: array(
46            0: /* Comment */
47        )
48    )
49    1: Stmt_Namespace(
50        name: Name(
51            name: Foo
52        )
53        stmts: array(
54        )
55    )
56)
57