src/Core/Benchmark.php
public function getMax(array $markers)
    {
        $max = [
            'time'   => 0,
            'memory' => 0,
        ];

        foreach ($markers as $marker) {
            $total = $this->getTotal($marker);

            if ($total['time'] > $max['time']) {
                $max['time'] = $total['time'];
            }

            if ($total['memory'] > $max['memory']) {
                $max['memory'] = $total['memory'];
            }
        }

        return $max;
    }
public function getMax(array $markers)
    {
        $max = [
            'time'   => 0,
            'memory' => 0,
        ];

        foreach ($markers as $marker) {
            $total = $this->getTotal($marker);

            if ($total['time'] > $max['time']) {
                $max['time'] = $total['time'];
            }

            if ($total['memory'] > $max['memory']) {
                $max['memory'] = $total['memory'];
            }
        }

        return $max;
    }
@param array $markers

@return array