123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- UVS new expressions
- -----
- <?php
- new $className;
- new $array['className'];
- new $array{'className'};
- new $obj->className;
- new Test::$className;
- new $test::$className;
- new $weird[0]->foo::$className;
- -----
- !!php7
- array(
- 0: Expr_New(
- class: Expr_Variable(
- name: className
- )
- args: array(
- )
- )
- 1: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: array
- )
- dim: Scalar_String(
- value: className
- )
- )
- args: array(
- )
- )
- 2: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: array
- )
- dim: Scalar_String(
- value: className
- )
- )
- args: array(
- )
- )
- 3: Expr_New(
- class: Expr_PropertyFetch(
- var: Expr_Variable(
- name: obj
- )
- name: className
- )
- args: array(
- )
- )
- 4: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: className
- )
- args: array(
- )
- )
- 5: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Expr_Variable(
- name: test
- )
- name: className
- )
- args: array(
- )
- )
- 6: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Expr_PropertyFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: weird
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- name: foo
- )
- name: className
- )
- args: array(
- )
- )
- )
|