<?php
var_dump(
// true
18446744073709552000 > PHP_INT_MAX,
// true, as expected..
(18446744073709552000-PHP_INT_MAX) > -1,
// false!? wtf?
((int)(18446744073709552000-PHP_INT_MAX)) > -1,
// 9223372036854775808
number_format((18446744073709552000-PHP_INT_MAX),0,'.',''),
// false:
9223372036854775808 > PHP_INT_MAX,
// false!? wtf?
((int)((float)9223372036854775808)) > -1,
// ok: float(9.2233720368548E+18)
((float)9223372036854775808),
// VERY WRONG: int(-9223372036854775808)
((int)((float)9223372036854775808))
);
preferences:
57.89 ms | 402 KiB | 5 Q