<?php
$arr = array_fill(0, 10, NULL);
for ($i = 0; $i < 10; $i += 1) {
$arr[$i] = rand(0, 10);
}
//for ($i = 0; $i < 10; $i += 1) {
//echo sprintf("Array element %d. Value contained is %d", $i, $arr[$i]);
//}
echo $arr[$i];
?>
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
- Notice: Undefined offset: 10 in /in/IkUGr on line 11
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
- Notice: Undefined offset: 10 in /in/IkUGr on line 11
preferences:
151.27 ms | 402 KiB | 190 Q