1Different integer syntaxes
2-----
3<?php
4
56.674_083e-11;
6299_792_458;
70x7AFE_F00D;
80b0101_1111;
90137_041;
10
11// already a valid constant name
12_100;
13
14// syntax errors
15100_;
161__1;
171_.0;
181._0;
190x_123;
200b_101;
211_e2;
221e_2;
23-----
24Syntax error, unexpected T_STRING from 13:4 to 13:4
25Syntax error, unexpected T_STRING from 14:2 to 14:4
26Syntax error, unexpected T_STRING from 15:2 to 15:2
27Syntax error, unexpected T_STRING from 16:3 to 16:4
28Syntax error, unexpected T_STRING from 17:2 to 17:6
29Syntax error, unexpected T_STRING from 18:2 to 18:6
30Syntax error, unexpected T_STRING from 19:2 to 19:4
31Syntax error, unexpected T_STRING from 20:2 to 20:4
32array(
33    0: Stmt_Expression(
34        expr: Scalar_Float(
35            value: 6.674083E-11
36        )
37    )
38    1: Stmt_Expression(
39        expr: Scalar_Int(
40            value: 299792458
41        )
42    )
43    2: Stmt_Expression(
44        expr: Scalar_Int(
45            value: 2063527949
46        )
47    )
48    3: Stmt_Expression(
49        expr: Scalar_Int(
50            value: 95
51        )
52    )
53    4: Stmt_Expression(
54        expr: Scalar_Int(
55            value: 48673
56        )
57    )
58    5: Stmt_Expression(
59        expr: Expr_ConstFetch(
60            name: Name(
61                name: _100
62            )
63        )
64        comments: array(
65            0: // already a valid constant name
66        )
67    )
68    6: Stmt_Expression(
69        expr: Scalar_Int(
70            value: 100
71        )
72        comments: array(
73            0: // syntax errors
74        )
75    )
76    7: Stmt_Expression(
77        expr: Expr_ConstFetch(
78            name: Name(
79                name: _
80            )
81        )
82    )
83    8: Stmt_Expression(
84        expr: Scalar_Int(
85            value: 1
86        )
87    )
88    9: Stmt_Expression(
89        expr: Expr_ConstFetch(
90            name: Name(
91                name: __1
92            )
93        )
94    )
95    10: Stmt_Expression(
96        expr: Scalar_Int(
97            value: 1
98        )
99    )
100    11: Stmt_Expression(
101        expr: Expr_ConstFetch(
102            name: Name(
103                name: _
104            )
105        )
106    )
107    12: Stmt_Expression(
108        expr: Scalar_Float(
109            value: 0
110        )
111    )
112    13: Stmt_Expression(
113        expr: Scalar_Float(
114            value: 1
115        )
116    )
117    14: Stmt_Expression(
118        expr: Expr_ConstFetch(
119            name: Name(
120                name: _0
121            )
122        )
123    )
124    15: Stmt_Expression(
125        expr: Scalar_Int(
126            value: 0
127        )
128    )
129    16: Stmt_Expression(
130        expr: Expr_ConstFetch(
131            name: Name(
132                name: x_123
133            )
134        )
135    )
136    17: Stmt_Expression(
137        expr: Scalar_Int(
138            value: 0
139        )
140    )
141    18: Stmt_Expression(
142        expr: Expr_ConstFetch(
143            name: Name(
144                name: b_101
145            )
146        )
147    )
148    19: Stmt_Expression(
149        expr: Scalar_Int(
150            value: 1
151        )
152    )
153    20: Stmt_Expression(
154        expr: Expr_ConstFetch(
155            name: Name(
156                name: _e2
157            )
158        )
159    )
160    21: Stmt_Expression(
161        expr: Scalar_Int(
162            value: 1
163        )
164    )
165    22: Stmt_Expression(
166        expr: Expr_ConstFetch(
167            name: Name(
168                name: e_2
169            )
170        )
171    )
172)
173