PHILADELPHIA -- A long Saturday night finally ended when the Arizona Diamondbacks scored five runs in the 18th inning for a 12-7 victory over the Philadelphia Phillies.
The game lasted seven hours and six minutes. Twenty pitchers were used -- tying a major-league record. The final box score consisted of 35 hits, 19 runs, 28 walks, 32 strikeouts and 712 pitches.
All in all, it was the longest time of game in franchise history for the Diamondbacks and Phillies.
Afterward, Arizona manager Kirk Gibson was so worn out, he could barely think straight.
"I'm pretty tired, I don't even know what to tell you, to be honest with you," Gibson said with a laugh. "Let's talk tomorrow, OK?"
With Phillies outfielder Casper Wells and infielder John McDonald pitching in the top of the 18th, the Diamondbacks broke the game open at Citizens Bank Park.
Wells, the losing pitcher, lasted two-thirds of an inning, allowing all five runs. McDonald relieved and faced three batters to finish an inning in which 11 Diamondbacks came to the plate.
"This is an unforgiving game," McDonald said.
And it was an interesting night.
"It was quite a night," Wells said. "I'm looking forward to tomorrow."
Adam Eaton doubled home Tony Campana for the go-ahead run to start the Diamondbacks' 18th.
"Their guys did a great job, our guys did a great job," Arizona second baseman Cliff Pennington said. "It's just whoever can figure a way to get a run across the board and it took 18, but we finally figured out how."
Trevor Cahill -- a starting pitcher making his first-ever relief appearance in the major leagues -- picked up the win with four scoreless innings.
Did Cahill ever think he was actually going to enter the game?
"No. Even when I was down there, I was like, 'There's still no way,'" Cahill said. "(The coaches) were like, '(Brad) Ziegler has one more (inning),' and I was like, 'Oh God.'"
Arizona knocked out Philadelphia starter Ethan Martin in the first inning and scored in five of the first six innings en route to a 7-1 lead in the sixth. However, that advantage was erased as the Phillies used a four-run eighth to force extra innings.
Tyler Cloyd -- Sunday's scheduled starter for the Phillies -- pitched five shutout innings from the 12th to the 16th. Because he can no longer go, Roy Halladay will return and start for the Phillies. Halladay originally was scheduled to make a minor-league rehab start for Double A Reading.
"I expect him to give us what he has," Philadelphia manager Ryne Sandberg said. "We believe he's our best option."
To make matters worse for the Phillies, All-Star left fielder Domonic Brown struck out in the first inning and was replaced in the top of the third because of right heel soreness.
After the game, Sandberg said Brown has had soreness in the region of his Achilles' tendon for the past couple of days and that he's day to day.
The Phillies and Diamondbacks have a quick turnaround on Sunday. First pitch is scheduled for 1:35 p.m. after the marathon that ended at 2:12 a.m. ET.
"We don't have to do it this way," Gibson said. "But we did it."
NOTES: Diamondbacks LHP Patrick Corbin (13-3, 2.45 ERA) opposes Halladay (2-4, 8.65) in Sunday's series finale. ... Martin's shortest big-league outing (two-thirds of an inning) came after his longest (6 1/3 innings on Aug. 19). ... Paul Goldschmidt's second-inning RBI gave him 101 this year, the most in a season by a Diamondbacks first baseman. ... Arizona 2B Aaron Hill singled in the third inning. He has hit safely in 16 of his last 17 games. He left later in the game with mild groin tightness. ... Newly acquired Roger Bernadina's home run was his first hit with the Phillies. ... Darin Ruf's home run for the Phillies was his ninth in August.