HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/carrotps/carrotps.com/vendor/nikic/php-parser/test/code/parser/stmt/declare.test
Declare
-----
<?php

declare (X='Y');

declare (A='B', C='D') {}

declare (A='B', C='D'):
enddeclare;
-----
array(
    0: Stmt_Declare(
        declares: array(
            0: Stmt_DeclareDeclare(
                key: Identifier(
                    name: X
                )
                value: Scalar_String(
                    value: Y
                )
            )
        )
        stmts: null
    )
    1: Stmt_Declare(
        declares: array(
            0: Stmt_DeclareDeclare(
                key: Identifier(
                    name: A
                )
                value: Scalar_String(
                    value: B
                )
            )
            1: Stmt_DeclareDeclare(
                key: Identifier(
                    name: C
                )
                value: Scalar_String(
                    value: D
                )
            )
        )
        stmts: array(
        )
    )
    2: Stmt_Declare(
        declares: array(
            0: Stmt_DeclareDeclare(
                key: Identifier(
                    name: A
                )
                value: Scalar_String(
                    value: B
                )
            )
            1: Stmt_DeclareDeclare(
                key: Identifier(
                    name: C
                )
                value: Scalar_String(
                    value: D
                )
            )
        )
        stmts: array(
        )
    )
)