declare(strict_types=1);
 
function sum(int|float $x, int|float ...$numbers): int|float
{
    return $x + array_sum($numbers);
}