Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find lowest value
min(mixed $valuemixed ...$values): mixed
        $collectionCount $this->count();



        foreach (
range(1min($count$collectionCount)) as $item) {

            
array_push($resultsarray_pop($this->items));

        }
        $collectionCount $this->count();



        foreach (
range(1min($count$collectionCount)) as $item) {

            
array_push($resultsarray_shift($this->items));

        }
                '';



            
$runTimeWidth mb_strlen($runTime);

            
$width min(terminal()->width(), 150);

            
$dots max($width $descriptionWidth $runTimeWidth 100);



            
$this->output->write(str_repeat('<fg=gray>.</>'$dots), false$verbosity);
        for ($i 0$i 100$i++) {

            
$lengths[] = strlen($e->encrypt('foo'));

        }

        
$this->assertSame(min($lengths), max($lengths));

    }



    public function 
testWithCustomCipher()
        $this->assertInstanceOf($collection$random);

        
$this->assertCount(2$random);



        
$random $data->random(fn ($items) => min(10count($items)));

        
$this->assertInstanceOf($collection$random);

        
$this->assertCount(6$random);

    }
        [$sum$max$min] = $data->reduceSpread(function ($sum$max$min$value) {

            
$sum += $value;

            
$max max($max$value);

            
$min min($min$value);



            return [
$sum$max$min];

        }, 
0PHP_INT_MINPHP_INT_MAX);