mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-15 02:16:56 +01:00
43 lines
586 B
Plaintext
43 lines
586 B
Plaintext
Different integer syntaxes
|
|
-----
|
|
<?php
|
|
|
|
0;
|
|
1;
|
|
@@{ PHP_INT_MAX }@@;
|
|
@@{ PHP_INT_MAX + 1 }@@;
|
|
0xFFF;
|
|
0xfff;
|
|
0XfFf;
|
|
0777;
|
|
0787;
|
|
-----
|
|
array(
|
|
0: Scalar_LNumber(
|
|
value: 0
|
|
)
|
|
1: Scalar_LNumber(
|
|
value: 1
|
|
)
|
|
2: Scalar_LNumber(
|
|
value: 2147483647
|
|
)
|
|
3: Scalar_DNumber(
|
|
value: 2147483648
|
|
)
|
|
4: Scalar_LNumber(
|
|
value: 4095
|
|
)
|
|
5: Scalar_LNumber(
|
|
value: 4095
|
|
)
|
|
6: Scalar_LNumber(
|
|
value: 4095
|
|
)
|
|
7: Scalar_LNumber(
|
|
value: 511
|
|
)
|
|
8: Scalar_LNumber(
|
|
value: 7
|
|
)
|
|
) |