Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad Print Str Expr Call AttributeLoad NameLoad attr NameLoad Print Print Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Print Str NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Num Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad Call NameLoad Str Str Call NameLoad ListLoad Call NameLoad Call NameLoad Str Str Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Num NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Num NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Num Call NameLoad Str Call NameLoad Str Num Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Str Call NameLoad Call NameLoad Str Str Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Str Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Str Call NameLoad Call NameLoad Str Num Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Str Call NameLoad Str Call NameLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Str Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Str Call NameLoad Call NameLoad Call NameLoad Str Num Num Call NameLoad Call NameLoad Call NameLoad Str Str Num Call NameLoad Call NameLoad Call NameLoad Call NameLoad Str Str Num Str Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Call NameLoad Str Str ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str Num Call NameLoad Call NameLoad Str Str Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Str Call NameLoad Str Str Call NameLoad Call NameLoad Str Str Str Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str Num Num NameLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Str ListLoad Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Call NameLoad Call NameLoad Str Str ListLoad Call NameLoad Call NameLoad Str NameLoad Str ListLoad Call NameLoad Call NameLoad Str NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Num Call NameLoad Num Call NameLoad ListLoad Num ListLoad Call NameLoad Call NameLoad ListLoad Num ListLoad Call NameLoad Call NameLoad ListLoad Num Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Call NameLoad Str Num ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Num Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Num Call NameLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad ListLoad Str ListLoad Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad ListLoad Str Call NameLoad Call NameLoad ListLoad Call NameLoad ListLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Call NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str NameLoad NameLoad Call NameLoad Str NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad Call NameLoad Call NameLoad Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Call NameLoad Str Str Call NameLoad Call NameLoad Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Str Str ListLoad Str Str ListLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Str Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad ListLoad ListLoad Call NameLoad Str Num Call NameLoad Str NameLoad Call NameLoad ListLoad Str Str ListLoad Call NameLoad Str NameLoad Call NameLoad Str ListLoad Str ListLoad Call NameLoad Str NameLoad NameLoad NameLoad Call NameLoad Str NameLoad NameLoad NameLoad ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Str NameLoad NameLoad ListLoad ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Num NameLoad Call NameLoad Num NameLoad Call NameLoad Num NameLoad Call NameLoad Call NameLoad Str Call NameLoad Str ListLoad NameLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str NameLoad ListLoad Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad ListLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str Num Call NameLoad ListLoad Call NameLoad ListLoad Str Call NameLoad ListLoad Call NameLoad Str Num NameLoad Call NameLoad ListLoad Call NameLoad Str Num Call NameLoad ListLoad Call NameLoad ListLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad ListLoad Str ListLoad NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str ListLoad Call NameLoad Str Call NameLoad Str ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad NameLoad ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad ListLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Str Num Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad ListLoad Call NameLoad Str Str Call NameLoad ListLoad Call NameLoad Str Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad Str NameLoad NameLoad NameLoad ListLoad ListLoad Call NameLoad Str ListLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str NameLoad NameLoad NameLoad Call NameLoad Call NameLoad Str ListLoad Call NameLoad Str NameLoad Call NameLoad Call NameLoad Str Call NameLoad ListLoad Call NameLoad Str NameLoad NameLoad NameLoad Call NameLoad Str NameLoad NameLoad NameLoad ListLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad ListLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str ListLoad Call NameLoad Str NameLoad NameLoad NameLoad ListLoad Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Str Call NameLoad Str Str NameLoad Call NameLoad Str NameLoad NameLoad ListLoad ListLoad Call NameLoad Str ListLoad ListLoad ListLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Num NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Str NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Str NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Str NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Str NameLoad Call NameLoad Str ListLoad Call NameLoad Call NameLoad Str Str NameLoad NameLoad Call NameLoad Str ListLoad Expr Call NameLoad NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Call NameLoad Str ListLoad Call NameLoad Str NameLoad NameLoad Str Call NameLoad Str Num NameLoad Str Call NameLoad Str NameLoad NameLoad Str Call NameLoad Str Num NameLoad Str ListLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list
N/A phply phplex phply.phpparse parser phply.phpast * N/A nose.tools N/A pprint eq_ast N/A N/A input expected filename N/A None N/A N/A lexer N/A N/A N/A phplex lexer clone N/A N/A lexer filename filename N/A output N/A N/A parser parse input lexer lexer N/A N/A resolve_magic_constants output N/A Parser output: N/A N/A N/A pprint pprint output N/A N/A Node by node: N/A N/A out exp N/A zip output expected N/A N/A 	got: out 	expected: exp N/A N/A N/A N/A nose tools eq_ out exp N/A N/A N/A len output N/A len expected N/A output length was %d, expected %s N/A N/A len output N/A len expected N/A test_inline_html N/A N/A N/A N/A N/A input html <?php // php ?> more html N/A expected N/A N/A InlineHTML html  N/A InlineHTML  more html N/A N/A eq_ast input expected N/A test_echo N/A N/A N/A N/A N/A input <?php echo "hello, world!"; ?> N/A expected N/A N/A Echo N/A hello, world! N/A N/A eq_ast input expected N/A test_open_tag_with_echo N/A N/A N/A N/A N/A input <?= "hello, world!" ?><?= "test"; EXTRA; ?> N/A expected N/A N/A Echo N/A hello, world! N/A Echo N/A test N/A Constant EXTRA N/A N/A eq_ast input expected N/A test_exit N/A N/A N/A N/A N/A input <?php exit; exit(); exit(123); die; die(); die(456); ?> N/A expected N/A N/A Exit None N/A Exit None N/A Exit 123 N/A Exit None N/A Exit None N/A Exit 456 N/A N/A eq_ast input expected N/A test_isset N/A N/A N/A N/A N/A input <?php
        isset($a);
        isset($b->c);
        isset($d['e']);
        isset($f, $g);
    ?> N/A expected N/A N/A IsSet N/A N/A Variable $a N/A IsSet N/A N/A ObjectProperty N/A Variable $b c N/A IsSet N/A N/A ArrayOffset N/A Variable $d e N/A IsSet N/A N/A Variable $f N/A Variable $g N/A N/A eq_ast input expected N/A test_namespace_names N/A N/A N/A N/A N/A input <?php
        foo;
        bar\baz;
        one\too\tree;
        \top;
        \top\level;
        namespace\level;
    ?> N/A expected N/A N/A Constant foo N/A Constant bar\baz N/A Constant one\too\tree N/A Constant \top N/A Constant \top\level N/A Constant namespace\level N/A N/A eq_ast input expected N/A test_unary_ops N/A N/A N/A N/A N/A input <?
        $a = -5;
        $b = +6;
        $c = !$d;
        $e = ~$f;
    ?> N/A expected N/A N/A Assignment N/A Variable $a N/A UnaryOp - 5 False N/A Assignment N/A Variable $b N/A UnaryOp + 6 False N/A Assignment N/A Variable $c N/A UnaryOp ! N/A Variable $d False N/A Assignment N/A Variable $e N/A UnaryOp ~ N/A Variable $f False N/A N/A eq_ast input expected N/A test_assignment_ops N/A N/A N/A N/A N/A input <?
        $a += 5;
        $b -= 6;
        $c .= $d;
        $e ^= $f;
    ?> N/A expected N/A N/A AssignOp += N/A Variable $a 5 N/A AssignOp -= N/A Variable $b 6 N/A AssignOp .= N/A Variable $c N/A Variable $d N/A AssignOp ^= N/A Variable $e N/A Variable $f N/A N/A eq_ast input expected N/A test_object_properties N/A N/A N/A N/A N/A input <?
        $object->property;
        $object->foreach;
        $object->$variable;
        $object->$variable->schmariable;
        $object->$variable->$schmariable;
    ?> N/A expected N/A N/A ObjectProperty N/A Variable $object property N/A ObjectProperty N/A Variable $object foreach N/A ObjectProperty N/A Variable $object N/A Variable $variable N/A ObjectProperty N/A ObjectProperty N/A Variable $object N/A Variable $variable schmariable N/A ObjectProperty N/A ObjectProperty N/A Variable $object N/A Variable $variable N/A Variable $schmariable N/A N/A eq_ast input expected N/A test_string_unescape N/A N/A N/A N/A N/A input <?
        '\r\n\t\\\'';
        "\r\n\t\\\"";
    ?> N/A expected N/A \r\n\t\' 
	\" N/A N/A eq_ast input expected N/A test_string_offset_lookups N/A N/A N/A N/A N/A input <?
        "$array[offset]";
        "$array[42]";
        "$array[$variable]";
        "${curly['offset']}";
        "$too[many][offsets]";
        "$next[to]$array";
        "$object->property";
        "$too->many->properties";
        "$adjacent->object$lookup";
        "$two->$variables";
        "stray -> [ ]";
        "not[array]";
        "non->object";
    ?> N/A expected N/A N/A ArrayOffset N/A Variable $array offset N/A ArrayOffset N/A Variable $array 42 N/A ArrayOffset N/A Variable $array N/A Variable $variable N/A ArrayOffset N/A Variable $curly offset N/A BinaryOp . N/A ArrayOffset N/A Variable $too many [offsets] N/A BinaryOp . N/A ArrayOffset N/A Variable $next to N/A Variable $array N/A ObjectProperty N/A Variable $object property N/A BinaryOp . N/A ObjectProperty N/A Variable $too many ->properties N/A BinaryOp . N/A ObjectProperty N/A Variable $adjacent object N/A Variable $lookup N/A BinaryOp . N/A BinaryOp . N/A Variable $two -> N/A Variable $variables stray -> [ ] not[array] non->object N/A N/A eq_ast input expected N/A test_string_curly_dollar_expressions N/A N/A N/A N/A N/A input <?
        "a${dollar_curly}b";
        "c{$curly_dollar}d";
        "e${$dollar_curly_dollar}f";
        "{$array[0][1]}";
        "{$array['two'][3]}";
        "{$object->items[4]->five}";
        "{${$nasty}}";
        "{${funcall()}}";
        "{${$object->method()}}";
        "{$object->$variable}";
        "{$object->$variable[1]}";
        "{${static_class::constant}}";
        "{${static_class::$variable}}";
    ?> N/A expected N/A N/A BinaryOp . N/A BinaryOp . a N/A Variable $dollar_curly b N/A BinaryOp . N/A BinaryOp . c N/A Variable $curly_dollar d N/A BinaryOp . N/A BinaryOp . e N/A Variable $dollar_curly_dollar f N/A ArrayOffset N/A ArrayOffset N/A Variable $array 0 1 N/A ArrayOffset N/A ArrayOffset N/A Variable $array two 3 N/A ObjectProperty N/A ArrayOffset N/A ObjectProperty N/A Variable $object items 4 five N/A Variable N/A Variable $nasty N/A Variable N/A FunctionCall funcall N/A N/A Variable N/A MethodCall N/A Variable $object method N/A N/A ObjectProperty N/A Variable $object N/A Variable $variable N/A ObjectProperty N/A Variable $object N/A ArrayOffset N/A Variable $variable 1 N/A Variable N/A StaticProperty static_class constant N/A Variable N/A StaticProperty static_class N/A Variable $variable N/A N/A eq_ast input expected N/A test_heredoc N/A N/A N/A N/A N/A input <?
        echo <<<EOT
This is a "$heredoc" with some $embedded->variables.
This is not the EOT; this is:
EOT;
    ?> N/A expected N/A N/A Echo N/A N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . This  is a " N/A Variable $heredoc " with some  N/A ObjectProperty N/A Variable $embedded variables .
 This  is not the EOT; this is:
 N/A N/A eq_ast input expected N/A test_function_calls N/A N/A N/A N/A N/A input <?
        f();
        doit($arg1, &$arg2, 3 + 4);
        name\spaced();
        \name\spaced();
        namespace\d();
    ?> N/A expected N/A N/A FunctionCall f N/A N/A FunctionCall doit N/A N/A Parameter N/A Variable $arg1 False N/A Parameter N/A Variable $arg2 True N/A Parameter N/A BinaryOp + 3 4 False N/A FunctionCall name\spaced N/A N/A FunctionCall \name\spaced N/A N/A FunctionCall namespace\d N/A N/A N/A eq_ast input expected N/A test_method_calls N/A N/A N/A N/A N/A input <?
        $obj->meth($a, &$b, $c . $d);
        $chain->one($x)->two(&$y);
    ?> N/A expected N/A N/A MethodCall N/A Variable $obj meth N/A N/A Parameter N/A Variable $a False N/A Parameter N/A Variable $b True N/A Parameter N/A BinaryOp . N/A Variable $c N/A Variable $d False N/A MethodCall N/A MethodCall N/A Variable $chain one N/A N/A Parameter N/A Variable $x False two N/A N/A Parameter N/A Variable $y True N/A N/A eq_ast input expected N/A test_if N/A N/A N/A N/A N/A input <?
        if (1)
            if (2)
                echo 3;
            else
                echo 4;
        else
            echo 5;
        if ($a < $b) {
            return -1;
        } elseif ($a > $b) {
            return 1;
        } elseif ($a == $b) {
            return 0;
        } else {
            return 'firetruck';
        }
        if ($if):
            echo 'a';
        elseif ($elseif):
            echo 'b';
        else:
            echo 'c';
        endif;
    ?> N/A expected N/A N/A If 1 N/A If 2 N/A Echo N/A 3 N/A N/A Else N/A Echo N/A 4 N/A N/A Else N/A Echo N/A 5 N/A If N/A BinaryOp < N/A Variable $a N/A Variable $b N/A Block N/A N/A Return N/A UnaryOp - 1 N/A N/A ElseIf N/A BinaryOp > N/A Variable $a N/A Variable $b N/A Block N/A N/A Return 1 N/A ElseIf N/A BinaryOp == N/A Variable $a N/A Variable $b N/A Block N/A N/A Return 0 N/A Else N/A Block N/A N/A Return firetruck N/A If N/A Variable $if N/A Block N/A N/A Echo N/A a N/A N/A ElseIf N/A Variable $elseif N/A Block N/A N/A Echo N/A b N/A Else N/A Block N/A N/A Echo N/A c N/A N/A eq_ast input expected N/A test_foreach N/A N/A N/A N/A N/A input <?
        foreach ($foo as $bar) {
            echo $bar;
        }
        foreach ($spam as $ham => $eggs) {
            echo "$ham: $eggs";
        }
        foreach (complex($expression) as &$ref)
            $ref++;
        foreach ($what as &$de => &$dealy):
            yo();
            yo();
        endforeach;
    ?> N/A expected N/A N/A Foreach N/A Variable $foo None N/A ForeachVariable $bar False N/A Block N/A N/A Echo N/A N/A Variable $bar N/A Foreach N/A Variable $spam N/A ForeachVariable $ham False N/A ForeachVariable $eggs False N/A Block N/A N/A Echo N/A N/A BinaryOp . N/A BinaryOp . N/A Variable $ham :  N/A Variable $eggs N/A Foreach N/A FunctionCall complex N/A N/A Parameter N/A Variable $expression False None N/A ForeachVariable $ref True N/A PostIncDecOp ++ N/A Variable $ref N/A Foreach N/A Variable $what N/A ForeachVariable $de True N/A ForeachVariable $dealy True N/A Block N/A N/A FunctionCall yo N/A N/A FunctionCall yo N/A N/A N/A eq_ast input expected N/A test_global_variables N/A N/A N/A N/A N/A input <?
        global $foo, $bar;
        global $$yo;
        global ${$dawg};
        global ${$obj->prop};
    ?> N/A expected N/A N/A Global N/A N/A Variable $foo N/A Variable $bar N/A Global N/A N/A Variable N/A Variable $yo N/A Global N/A N/A Variable N/A Variable $dawg N/A Global N/A N/A Variable N/A ObjectProperty N/A Variable $obj prop N/A N/A eq_ast input expected N/A test_variable_variables N/A N/A N/A N/A N/A input <?
        $$a = $$b;
        $$a =& $$b;
        ${$a} = ${$b};
        ${$a} =& ${$b};
        $$a->b;
        $$$triple;
    ?> N/A expected N/A N/A Assignment N/A Variable N/A Variable $a N/A Variable N/A Variable $b False N/A Assignment N/A Variable N/A Variable $a N/A Variable N/A Variable $b True N/A Assignment N/A Variable N/A Variable $a N/A Variable N/A Variable $b False N/A Assignment N/A Variable N/A Variable $a N/A Variable N/A Variable $b True N/A ObjectProperty N/A Variable N/A Variable $a b N/A Variable N/A Variable N/A Variable $triple N/A N/A eq_ast input expected N/A test_classes N/A N/A N/A N/A N/A input <?
        FINAL class Clown extends Unicycle implements RedNose, FacePaint {
            const the = 'only', constant = 'is';
            const change = 'chump';
            var $iable = 999, $nein;
            protected sTaTiC $x;
            public function conjunction_junction($arg1, $arg2) {
                return $arg1 . $arg2;
            }
        }
        class Stub {}
    ?> N/A expected N/A N/A Class Clown final Unicycle N/A RedNose FacePaint N/A N/A ClassConstants N/A N/A ClassConstant the only N/A ClassConstant constant is N/A ClassConstants N/A N/A ClassConstant change chump N/A ClassVariables N/A N/A N/A ClassVariable $iable 999 N/A ClassVariable $nein None N/A ClassVariables N/A protected static N/A N/A ClassVariable $x None N/A Method conjunction_junction N/A public N/A N/A FormalParameter $arg1 None False None N/A FormalParameter $arg2 None False None N/A N/A Return N/A BinaryOp . N/A Variable $arg1 N/A Variable $arg2 False N/A Class Stub None None N/A N/A N/A N/A eq_ast input expected N/A test_new N/A N/A N/A N/A N/A input <?
        new Foo;
        new Foo();
        new Bar(1, 2, 3);
        $crusty =& new OldSyntax();
        new name\Spaced();
        new \name\Spaced();
        new namespace\D();
    ?> N/A expected N/A N/A New Foo N/A N/A New Foo N/A N/A New Bar N/A N/A Parameter 1 False N/A Parameter 2 False N/A Parameter 3 False N/A Assignment N/A Variable $crusty N/A New OldSyntax N/A True N/A New name\Spaced N/A N/A New \name\Spaced N/A N/A New namespace\D N/A N/A N/A eq_ast input expected N/A test_exceptions N/A N/A N/A N/A N/A input <?
        try {
            $a = $b + $c;
            throw new Food($a);
        } catch (Food $f) {
            echo "Received food: $f";
        } catch (\Bar\Food $f) {
            echo "Received bar food: $f";
        } catch (namespace\Food $f) {
            echo "Received namespace food: $f";
        } catch (Exception $e) {
            echo "Problem?";
        }
    ?> N/A expected N/A N/A Try N/A N/A Assignment N/A Variable $a N/A BinaryOp + N/A Variable $b N/A Variable $c False N/A Throw N/A New Food N/A N/A Parameter N/A Variable $a False N/A N/A Catch Food N/A Variable $f N/A N/A Echo N/A N/A BinaryOp . Received food:  N/A Variable $f N/A Catch \Bar\Food N/A Variable $f N/A N/A Echo N/A N/A BinaryOp . Received bar food:  N/A Variable $f N/A Catch namespace\Food N/A Variable $f N/A N/A Echo N/A N/A BinaryOp . Received namespace food:  N/A Variable $f N/A Catch Exception N/A Variable $e N/A N/A Echo N/A Problem? N/A N/A eq_ast input expected N/A test_declare N/A N/A N/A N/A N/A input <?
        declare(ticks=1) {
            echo 'hi';
        }
        declare(ticks=2);
        declare(ticks=3):
        echo 'bye';
        enddeclare;
    ?> N/A expected N/A N/A Declare N/A N/A Directive ticks 1 N/A Block N/A N/A Echo N/A hi N/A Declare N/A N/A Directive ticks 2 None N/A Declare N/A N/A Directive ticks 3 N/A Block N/A N/A Echo N/A bye N/A N/A eq_ast input expected N/A test_instanceof N/A N/A N/A N/A N/A input <?
        if ($foo iNsTaNcEoF Bar) {
            echo '$foo is a bar';
        }
        $foo instanceof $bar;
    ?> N/A expected N/A N/A If N/A BinaryOp instanceof N/A Variable $foo N/A Constant Bar N/A Block N/A N/A Echo N/A $foo is a bar N/A None N/A BinaryOp instanceof N/A Variable $foo N/A Variable $bar N/A N/A eq_ast input expected N/A test_static_members N/A N/A N/A N/A N/A input <?
        Ztatic::constant;
        Ztatic::$variable;
        Ztatic::method();
        Ztatic::$variable_method();
        static::late_binding;
        STATIC::$late_binding;
        Static::late_binding();
    ?> N/A expected N/A N/A StaticProperty Ztatic constant N/A StaticProperty Ztatic N/A Variable $variable N/A StaticMethodCall Ztatic method N/A N/A StaticMethodCall Ztatic N/A Variable $variable_method N/A N/A StaticProperty static late_binding N/A StaticProperty static N/A Variable $late_binding N/A StaticMethodCall static late_binding N/A N/A N/A eq_ast input expected N/A test_casts N/A N/A N/A N/A N/A input <?
        (aRray) $x;
        (bOol) $x;
        (bOolean) $x;
        (rEal) $x;
        (dOuble) $x;
        (fLoat) $x;
        (iNt) $x;
        (iNteger) $x;
        (sTring) $x;
        (uNset) $x;
    ?> N/A expected N/A N/A Cast array N/A Variable $x N/A Cast bool N/A Variable $x N/A Cast bool N/A Variable $x N/A Cast double N/A Variable $x N/A Cast double N/A Variable $x N/A Cast double N/A Variable $x N/A Cast int N/A Variable $x N/A Cast int N/A Variable $x N/A Cast string N/A Variable $x N/A Cast unset N/A Variable $x N/A N/A eq_ast input expected N/A test_namespaces N/A N/A N/A N/A N/A input <?
        namespace my\name;
        namespace my\name {
            foo();
            bar();
        }
        namespace {
            foo();
            bar();
        }
    ?> N/A expected N/A N/A Namespace my\name N/A N/A Namespace my\name N/A N/A FunctionCall foo N/A N/A FunctionCall bar N/A N/A Namespace None N/A N/A FunctionCall foo N/A N/A FunctionCall bar N/A N/A N/A eq_ast input expected N/A test_use_declarations N/A N/A N/A N/A N/A input <?
        use me;
        use \me;
        use \me\please;
        use my\name as foo;
        use a, b;
        use a as b, \c\d\e as f;
    ?> N/A expected N/A N/A UseDeclarations N/A N/A UseDeclaration me None N/A UseDeclarations N/A N/A UseDeclaration \me None N/A UseDeclarations N/A N/A UseDeclaration \me\please None N/A UseDeclarations N/A N/A UseDeclaration my\name foo N/A UseDeclarations N/A N/A UseDeclaration a None N/A UseDeclaration b None N/A UseDeclarations N/A N/A UseDeclaration a b N/A UseDeclaration \c\d\e f N/A N/A eq_ast input expected N/A test_constant_declarations N/A N/A N/A N/A N/A input <?
        const foo = 42;
        const bar = 'baz', wat = \DOO;
        const ant = namespace\level;
        const dq1 = "";
        const dq2 = "nothing fancy";
    ?> N/A expected N/A N/A ConstantDeclarations N/A N/A ConstantDeclaration foo 42 N/A ConstantDeclarations N/A N/A ConstantDeclaration bar baz N/A ConstantDeclaration wat N/A Constant \DOO N/A ConstantDeclarations N/A N/A ConstantDeclaration ant N/A Constant namespace\level N/A ConstantDeclarations N/A N/A ConstantDeclaration dq1 N/A ConstantDeclarations N/A N/A ConstantDeclaration dq2 nothing fancy N/A N/A eq_ast input expected N/A test_closures N/A N/A N/A N/A N/A input <?
        $greet = function($name) {
            printf("Hello %s\r\n", $name);
        };
        $greet('World');
        $cb = function&($a, &$b) use ($c, &$d) {};
    ?> N/A expected N/A N/A Assignment N/A Variable $greet N/A Closure N/A N/A FormalParameter $name None False None N/A N/A N/A FunctionCall printf N/A N/A Parameter Hello %s
 False N/A Parameter N/A Variable $name False False False N/A FunctionCall N/A Variable $greet N/A N/A Parameter World False N/A Assignment N/A Variable $cb N/A Closure N/A N/A FormalParameter $a None False None N/A FormalParameter $b None True None N/A N/A LexicalVariable $c False N/A LexicalVariable $d True N/A True False N/A N/A eq_ast input expected N/A test_magic_constants N/A N/A N/A N/A N/A input <?
        namespace Shmamespace;

        function p($x) {
            echo __FUNCTION__ . ': ' . $x . "\n";
        }

        class Bar {
            function __construct() {
                p(__LINE__);
                p(__DIR__);
                p(__FILE__);
                p(__NAMESPACE__);
                p(__CLASS__);
                p(__METHOD__);
            }
        }

        new Bar();
    ?> N/A expected N/A N/A Namespace Shmamespace N/A N/A Function p N/A N/A FormalParameter $x None False None N/A N/A Echo N/A N/A BinaryOp . N/A BinaryOp . N/A BinaryOp . N/A MagicConstant __FUNCTION__ Shmamespace\p :  N/A Variable $x False N/A Class Bar None None N/A N/A N/A Method __construct N/A N/A N/A N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __LINE__ 10 False N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __DIR__ /my/dir False N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __FILE__ /my/dir/file.php False N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __NAMESPACE__ Shmamespace False N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __CLASS__ Shmamespace\Bar False N/A FunctionCall p N/A N/A Parameter N/A MagicConstant __METHOD__ Shmamespace\Bar::__construct False False N/A New Bar N/A N/A N/A eq_ast input expected filename /my/dir/file.php N/A test_type_hinting N/A N/A N/A N/A N/A input <?
    function foo(Foo $var1, Bar $var2=1, Quux &$var3, Corge &$var4=1) {
    }
    ?> N/A expected N/A N/A Function foo N/A N/A FormalParameter $var1 None False Foo N/A FormalParameter $var2 1 False Bar N/A FormalParameter $var3 None True Quux N/A FormalParameter $var4 1 True Corge N/A False N/A N/A eq_ast input expected N/A