123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- Different float syntaxes
- -----
- <?php
- 0.0;
- 0.;
- .0;
- 0e0;
- 0E0;
- 0e+0;
- 0e-0;
- 30.20e10;
- 300.200e100;
- 1e10000;
- // various integer -> float overflows
- // (all are actually the same number, just in different representations)
- 18446744073709551615;
- 0xFFFFFFFFFFFFFFFF;
- 01777777777777777777777;
- 0177777777777777777777787;
- 0b1111111111111111111111111111111111111111111111111111111111111111;
- -----
- array(
- 0: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 1: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 2: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 3: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 4: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 5: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 6: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 0
- )
- )
- 7: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 302000000000
- )
- )
- 8: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 3.002E+102
- )
- )
- 9: Stmt_Expression(
- expr: Scalar_DNumber(
- value: INF
- )
- )
- 10: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 1.844674407371E+19
- comments: array(
- 0: // various integer -> float overflows
- 1: // (all are actually the same number, just in different representations)
- )
- )
- comments: array(
- 0: // various integer -> float overflows
- 1: // (all are actually the same number, just in different representations)
- )
- )
- 11: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- )
- 12: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- )
- 13: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- )
- 14: Stmt_Expression(
- expr: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- )
- )
|