getTimers(6); foreach ($rows as $name => $info) { if ($name === 'total_execution') { continue; } $data[] = [ 'name' => ucwords(str_replace('_', ' ', $name)), 'component' => 'Timer', 'start' => $info['start'], 'duration' => $info['end'] - $info['start'], ]; } return $data; } }