%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/vendor/nikic/php-parser/test/code/parser/expr/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/vendor/nikic/php-parser/test/code/parser/expr/listWithKeys.test
List destructing with keys
-----
<?php

list('a' => $b) = ['a' => 'b'];
list('a' => list($b => $c), 'd' => $e) = $x;
-----
!!php7
array(
    0: Expr_Assign(
        var: Expr_List(
            items: array(
                0: Expr_ArrayItem(
                    key: Scalar_String(
                        value: a
                    )
                    value: Expr_Variable(
                        name: b
                    )
                    byRef: false
                )
            )
        )
        expr: Expr_Array(
            items: array(
                0: Expr_ArrayItem(
                    key: Scalar_String(
                        value: a
                    )
                    value: Scalar_String(
                        value: b
                    )
                    byRef: false
                )
            )
        )
    )
    1: Expr_Assign(
        var: Expr_List(
            items: array(
                0: Expr_ArrayItem(
                    key: Scalar_String(
                        value: a
                    )
                    value: Expr_List(
                        items: array(
                            0: Expr_ArrayItem(
                                key: Expr_Variable(
                                    name: b
                                )
                                value: Expr_Variable(
                                    name: c
                                )
                                byRef: false
                            )
                        )
                    )
                    byRef: false
                )
                1: Expr_ArrayItem(
                    key: Scalar_String(
                        value: d
                    )
                    value: Expr_Variable(
                        name: e
                    )
                    byRef: false
                )
            )
        )
        expr: Expr_Variable(
            name: x
        )
    )
)

VaKeR 2022