1--TEST--
2Creating a range that exceeds the maximum array size
3--FILE--
4<?php
5try {
6    var_dump(range(0, 100_000_000_000, 0.1));
7} catch (\ValueError $e) {
8    echo $e->getMessage(), \PHP_EOL;
9}
10try {
11    var_dump(range(PHP_INT_MIN, PHP_INT_MAX, 1));
12} catch (\ValueError $e) {
13    echo $e->getMessage(), \PHP_EOL;
14}
15?>
16--EXPECTF--
17The supplied range exceeds the maximum array size: start=0.0 end=100000000000.0 step=0.1
18The supplied range exceeds the maximum array size: start=-%d end=%d step=1
19