Syntax error, unexpected T_STRING from 5:1 to 5:3
Syntax error, unexpected EOF from 5:6 to 5:6
array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
+ 0: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: foo
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: bar
+ 1: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: bar
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 2: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: baz
+ 2: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: baz
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
)
-----
Syntax error, unexpected T_STRING from 4:1 to 4:3
array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
+ 0: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: foo
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: bar
+ 1: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: bar
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 2: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: baz
+ 2: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: baz
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
)
-----
Syntax error, unexpected T_STRING from 5:1 to 5:3
array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
+ 0: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: foo
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: bar
+ 1: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: bar
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
- 2: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: baz
+ 2: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: baz
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
)
-----
Syntax error, unexpected ';' from 3:5 to 3:5
array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: abc
+ 0: Stmt_Expression(
+ expr: Expr_ConstFetch(
+ name: Name(
+ parts: array(
+ 0: abc
+ )
)
)
)
- 1: Scalar_LNumber(
- value: 1
+ 1: Stmt_Expression(
+ expr: Scalar_LNumber(
+ value: 1
+ )
)
)
-----
array(
0: Stmt_Function(
byRef: false
- name: test
+ name: Identifier(
+ name: test
+ )
params: array(
)
returnType: null
stmts: array(
- 0: Scalar_LNumber(
- value: 1
+ 0: Stmt_Expression(
+ expr: Scalar_LNumber(
+ value: 1
+ )
)
)
)
-----
Syntax error, unexpected T_VARIABLE, expecting '(' from 6:1 to 6:2
array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: i
- )
- expr: Scalar_LNumber(
- value: 0
+ 0: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: i
+ )
+ expr: Scalar_LNumber(
+ value: 0
+ )
)
)
- 1: Expr_Assign(
- var: Expr_Variable(
- name: j
- )
- expr: Scalar_LNumber(
- value: 1
+ 1: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: j
+ )
+ expr: Scalar_LNumber(
+ value: 1
+ )
)
)
- 2: Expr_Assign(
- var: Expr_Variable(
- name: k
- )
- expr: Scalar_LNumber(
- value: 2
+ 2: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: k
+ )
+ expr: Scalar_LNumber(
+ value: 2
+ )
)
)
)
-----
Syntax error, unexpected ')' from 4:8 to 4:8
array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: i
- )
- expr: Scalar_LNumber(
- value: 0
+ 0: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: i
+ )
+ expr: Scalar_LNumber(
+ value: 0
+ )
)
)
- 1: Expr_Assign(
- var: Expr_Variable(
- name: j
- )
- expr: Scalar_LNumber(
- value: 1
+ 1: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: j
+ )
+ expr: Scalar_LNumber(
+ value: 1
+ )
)
)
- 2: Expr_Assign(
- var: Expr_Variable(
- name: k
- )
- expr: Scalar_LNumber(
- value: 2
+ 2: Stmt_Expression(
+ expr: Expr_Assign(
+ var: Expr_Variable(
+ name: k
+ )
+ expr: Scalar_LNumber(
+ value: 2
+ )
)
)
3: Stmt_Nop(
!!positions
Syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '{' or '$' from 3:1 to 3:1
array(
- 0: Expr_PropertyFetch[2:1 - 2:6](
- var: Expr_Variable[2:1 - 2:4](
- name: foo
- )
- name: Expr_Error[3:1 - 2:6](
+ 0: Stmt_Expression[2:1 - 3:1](
+ expr: Expr_PropertyFetch[2:1 - 2:6](
+ var: Expr_Variable[2:1 - 2:4](
+ name: foo
+ )
+ name: Expr_Error[3:1 - 2:6](
+ )
)
)
)
array(
0: Stmt_Function[2:1 - 4:1](
byRef: false
- name: foo
+ name: Identifier[2:10 - 2:12](
+ name: foo
+ )
params: array(
)
returnType: null
stmts: array(
- 0: Expr_PropertyFetch[3:5 - 3:10](
- var: Expr_Variable[3:5 - 3:8](
- name: bar
- )
- name: Expr_Error[4:1 - 3:10](
+ 0: Stmt_Expression[3:5 - 3:10](
+ expr: Expr_PropertyFetch[3:5 - 3:10](
+ var: Expr_Variable[3:5 - 3:8](
+ name: bar
+ )
+ name: Expr_Error[4:1 - 3:10](
+ )
)
)
)
-----
Syntax error, unexpected EOF from 2:6 to 2:6
array(
- 0: Expr_New(
- class: Name(
- parts: array(
- 0: T
+ 0: Stmt_Expression(
+ expr: Expr_New(
+ class: Name(
+ parts: array(
+ 0: T
+ )
+ )
+ args: array(
)
- )
- args: array(
)
)
)
!!php7,positions
Syntax error, unexpected EOF from 2:4 to 2:4
array(
- 0: Expr_New[2:1 - 2:3](
- class: Expr_Error[2:4 - 2:3](
- )
- args: array(
+ 0: Stmt_Expression[2:1 - 2:3](
+ expr: Expr_New[2:1 - 2:3](
+ class: Expr_Error[2:4 - 2:3](
+ )
+ args: array(
+ )
)
)
)
!!php7
Syntax error, unexpected EOF from 2:16 to 2:16
array(
- 0: Expr_Instanceof(
- expr: Expr_Variable(
- name: foo
- )
- class: Expr_Error(
+ 0: Stmt_Expression(
+ expr: Expr_Instanceof(
+ expr: Expr_Variable(
+ name: foo
+ )
+ class: Expr_Error(
+ )
)
)
)
!!php7
Syntax error, unexpected EOF, expecting T_VARIABLE or '{' or '$' from 2:2 to 2:2
array(
- 0: Expr_Variable(
- name: Expr_Error(
+ 0: Stmt_Expression(
+ expr: Expr_Variable(
+ name: Expr_Error(
+ )
)
)
)
!!php7
Syntax error, unexpected EOF, expecting T_VARIABLE or '{' or '$' from 2:7 to 2:7
array(
- 0: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: Foo
+ 0: Stmt_Expression(
+ expr: Expr_StaticPropertyFetch(
+ class: Name(
+ parts: array(
+ 0: Foo
+ )
+ )
+ name: Expr_Error(
)
- )
- name: Expr_Error(
)
)
)
!!php7
Syntax error, unexpected EOF from 2:6 to 2:6
array(
- 0: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: Foo
+ 0: Stmt_Expression(
+ expr: Expr_ClassConstFetch(
+ class: Name(
+ parts: array(
+ 0: Foo
+ )
+ )
+ name: Expr_Error(
)
- )
- name: Expr_Error(
)
)
)
0: A
)
)
- alias: A
+ alias: null
)
)
)
0: a
)
)
- alias: a
+ alias: null
)
)
)
0: B
)
)
- alias: B
+ alias: null
)
)
)
3: Stmt_Const(
consts: array(
0: Const(
- name: A
+ name: Identifier(
+ name: A
+ )
value: Scalar_LNumber(
value: 1
)
)
)
13: Stmt_Goto(
- name: label
+ name: Identifier(
+ name: label
+ )
)
)
)
A trailing comma is not allowed here from 13:17 to 13:17
A trailing comma is not allowed here from 14:14 to 14:14
A trailing comma is not allowed here from 16:22 to 16:22
-A trailing comma is not allowed here from 18:9 to 18:9
-A trailing comma is not allowed here from 19:9 to 19:9
A trailing comma is not allowed here from 21:13 to 21:13
A trailing comma is not allowed here from 23:16 to 23:16
-A trailing comma is not allowed here from 24:7 to 24:7
A trailing comma is not allowed here from 25:10 to 25:10
A trailing comma is not allowed here from 26:10 to 26:10
A trailing comma is not allowed here from 27:8 to 27:8
0: B
)
)
- alias: B
+ alias: null
)
)
)
0: b
)
)
- alias: b
+ alias: null
)
)
)
0: A
)
)
- alias: A
+ alias: null
)
)
)
3: Stmt_Const(
consts: array(
0: Const(
- name: A
+ name: Identifier(
+ name: A
+ )
value: Scalar_LNumber(
value: 42
)
)
4: Stmt_Class(
flags: 0
- name: X
+ name: Identifier(
+ name: X
+ )
extends: null
implements: array(
0: Name(
0: A
)
)
- method: b
+ method: Identifier(
+ name: b
+ )
insteadof: array(
0: Name(
parts: array(
flags: 0
consts: array(
0: Const(
- name: A
+ name: Identifier(
+ name: A
+ )
value: Scalar_LNumber(
value: 42
)
flags: MODIFIER_PUBLIC (1)
props: array(
0: Stmt_PropertyProperty(
- name: x
+ name: VarLikeIdentifier(
+ name: x
+ )
default: null
)
)
)
)
5: Stmt_Interface(
- name: I
+ name: Identifier(
+ name: I
+ )
extends: array(
0: Name(
parts: array(
)
)
)
- 7: Expr_Isset(
- vars: array(
- 0: Expr_Variable(
- name: x
+ 7: Stmt_Expression(
+ expr: Expr_Isset(
+ vars: array(
+ 0: Expr_Variable(
+ name: x
+ )
)
)
)
8: Stmt_Declare(
declares: array(
0: Stmt_DeclareDeclare(
- key: a
+ key: Identifier(
+ name: a
+ )
value: Scalar_LNumber(
value: 42
)
)
9: Stmt_Function(
byRef: false
- name: foo
+ name: Identifier(
+ name: foo
+ )
params: array(
0: Param(
type: null
byRef: false
variadic: false
- name: a
+ var: Expr_Variable(
+ name: a
+ )
default: null
)
)
stmts: array(
)
)
- 10: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
+ 10: Stmt_Expression(
+ expr: Expr_FuncCall(
+ name: Name(
+ parts: array(
+ 0: foo
+ )
)
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
+ args: array(
+ 0: Arg(
+ value: Expr_Variable(
+ name: a
+ )
+ byRef: false
+ unpack: false
)
- byRef: false
- unpack: false
)
)
)
12: Stmt_Static(
vars: array(
0: Stmt_StaticVar(
- name: a
+ var: Expr_Variable(
+ name: a
+ )
default: null
)
)
stmts: array(
)
)
- 15: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
+ 15: Stmt_Expression(
+ expr: Expr_Closure(
+ static: false
+ byRef: false
+ params: array(
+ 0: Param(
+ type: null
+ byRef: false
+ variadic: false
+ var: Expr_Variable(
+ name: a
+ )
+ default: null
+ )
)
- )
- uses: array(
- 0: Expr_ClosureUse(
- var: b
- byRef: false
+ uses: array(
+ 0: Expr_ClosureUse(
+ var: Expr_Variable(
+ name: b
+ )
+ byRef: false
+ )
+ )
+ returnType: null
+ stmts: array(
)
- )
- returnType: null
- stmts: array(
)
)
)
!!php7,positions
Syntax error, unexpected ')' from 3:10 to 3:10
array(
- 0: Expr_FuncCall[3:1 - 3:10](
- name: Name[3:1 - 3:3](
- parts: array(
- 0: foo
+ 0: Stmt_Expression[3:1 - 3:11](
+ expr: Expr_FuncCall[3:1 - 3:10](
+ name: Name[3:1 - 3:3](
+ parts: array(
+ 0: foo
+ )
)
- )
- args: array(
- 0: Arg[3:5 - 3:9](
- value: Expr_ClassConstFetch[3:5 - 3:9](
- class: Name[3:5 - 3:7](
- parts: array(
- 0: Bar
+ args: array(
+ 0: Arg[3:5 - 3:9](
+ value: Expr_ClassConstFetch[3:5 - 3:9](
+ class: Name[3:5 - 3:7](
+ parts: array(
+ 0: Bar
+ )
+ )
+ name: Expr_Error[3:10 - 3:9](
)
)
- name: Expr_Error[3:10 - 3:9](
- )
+ byRef: false
+ unpack: false
)
- byRef: false
- unpack: false
)
)
)