1--TEST--
2Explicit (int) cast must not warn
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--FILE--
8<?php
9
10$values =[
11    3.0,
12    3.5,
13    10e120,
14    10e300,
15    fdiv(0, 0),
16    (string) 3.0,
17    (string) 3.5,
18    (string) 10e120,
19    (string) 10e300,
20    (string) fdiv(0, 0),
21];
22
23foreach($values as $value) {
24    var_dump((int) $value);
25}
26
27?>
28--EXPECT--
29int(3)
30int(3)
31int(0)
32int(0)
33int(0)
34int(3)
35int(3)
36int(9223372036854775807)
37int(9223372036854775807)
38int(0)
39