Credit: AP

Philadelphia Phillies starting pitcher Ethan Martin stands on the mound after Arizona Diamondbacks' Martin Prado hit a two run home run in the first inning of a baseball game, Saturday, Aug. 24, 2013, in Philadelphia.

PHILADELPHIA — Adam Eaton hit a go-ahead double in the 18th inning and the Arizona Diamondbacks outlasted the Philadelphia Phillies 12-7 in a record-setting, marathon game for both clubs Saturday night.

The teams combined to use 20 pitchers in a contest that ended at 2:12 a.m. and took 7 hours, 6 minutes — setting a mark for length of game for both teams.