403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.14
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/www/wp-content/plugins/wpide/PHP-Parser/test/code/parser/stmt/loop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/www/wp-content/plugins/wpide/PHP-Parser/test/code/parser/stmt/loop/foreach.test
Foreach loop
-----
<?php

// foreach on variable
foreach ($a as $b)  {}
foreach ($a as &$b) {}
foreach ($a as $b => $c) {}
foreach ($a as $b => &$c) {}
foreach ($a as list($a, $b)) {}
foreach ($a as $a => list($b, , $c)) {}

// foreach on expression
foreach (array() as $b) {}

// alternative syntax
foreach ($a as $b):
endforeach;
-----
array(
    0: Stmt_Foreach(
        keyVar: null
        byRef: false
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_Variable(
            name: b
        )
    )
    1: Stmt_Foreach(
        keyVar: null
        byRef: true
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_Variable(
            name: b
        )
    )
    2: Stmt_Foreach(
        keyVar: Expr_Variable(
            name: b
        )
        byRef: false
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_Variable(
            name: c
        )
    )
    3: Stmt_Foreach(
        keyVar: Expr_Variable(
            name: b
        )
        byRef: true
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_Variable(
            name: c
        )
    )
    4: Stmt_Foreach(
        keyVar: null
        byRef: false
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_List(
            vars: array(
                0: Expr_Variable(
                    name: a
                )
                1: Expr_Variable(
                    name: b
                )
            )
        )
    )
    5: Stmt_Foreach(
        keyVar: Expr_Variable(
            name: a
        )
        byRef: false
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_List(
            vars: array(
                0: Expr_Variable(
                    name: b
                )
                1: null
                2: Expr_Variable(
                    name: c
                )
            )
        )
    )
    6: Stmt_Foreach(
        keyVar: null
        byRef: false
        stmts: array(
        )
        expr: Expr_Array(
            items: array(
            )
        )
        valueVar: Expr_Variable(
            name: b
        )
    )
    7: Stmt_Foreach(
        keyVar: null
        byRef: false
        stmts: array(
        )
        expr: Expr_Variable(
            name: a
        )
        valueVar: Expr_Variable(
            name: b
        )
    )
)

Youez - 2016 - github.com/yon3zu
LinuXploit