Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Create an array containing a range of elements
<?php range(string|int|float $start, string|int|float $end, int|float $step = 1): array
<?php         putenv('DUMP_STRING_LENGTH=1');



        $var = [

            range(1, 3),

            ['foo', 2 => 'bar'],

        ];
<?php     public function testItComparesLargeData()

    {

        $howMany = 700;

        $data = array_fill_keys(range(0, $howMany), ['a', 'b', 'c', 'd']);



        $expected = sprintf("array:%d [\n", $howMany + 1);

        for ($i = 0; $i <= $howMany; ++$i) {