<?php
$divisible = 0;
$indivisible = 0;
for ($i=0;$i<10000;$i++)
{
if ((mt_rand(1, PHP_INT_MAX) - 1) % (2 ** 32) == 0) {
$divisible += 1;
} else {
$indivisible += 1;
}
}
echo "divisible: $divisible, indivisible: $indivisible";
- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12
- divisible: 0, indivisible: 10000
- Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
- divisible: 10000, indivisible: 0
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
- Parse error: syntax error, unexpected '*' in /in/8BJDM on line 8
Process exited with code 255.
preferences:
56.62 ms | 408 KiB | 5 Q