blob: acc7f4ef988dfc66b166c08294d1fe36dc7b0814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
intdiv functionality
--SKIPIF--
<?php
if (PHP_INT_SIZE !== 8) {
die("skip this test is for 64-bit platforms only");
}
?>
--FILE--
<?php
// (int)(PHP_INT_MAX / 3) gives a different result
var_dump(intdiv(PHP_INT_MAX, 3));
?>
--EXPECT--
int(3074457345618258602)
|