Philadelphia’s Roy Halladay allowed two runs in six innings, earning the win in his first game since May 5.

PHILADELPHIA — The Diamondbacks head home from Philadelphia hoping to regroup and make a playoff push. They’d like to get some rest, too.

Roy Halladay pitched six strong innings in his return from the disabled list and John Mayberry Jr. homered to lead the Phillies to a 9-5 victory over Arizona on Sunday.

A.J. Pollock had three hits, including a three-run homer, for Arizona — which has lost four of five.

The Diamondbacks return home today to begin a nine-game homestand after a 4-6 road trip kept them seven games behind the Reds for the second NL wild-card spot.

“It was a bad trip,” manager Kirk Gibson said. “We have a big game tomorrow. We have to try to get some rest tonight and play a good game tomorrow.”

The Phillies blew the game open in the sixth with three more runs off Patrick Corbin (13-4), who gave up a career-high eight earned runs on seven hits with four strikeouts and three walks in 5ª innings. The All-Star left-hander, who had won his previous three starts, hadn’t allowed more than five earned runs in any game this season entering Sunday.

“It just wasn’t my day,” Corbin said. “I left a lot of pitches up. I didn’t have my best stuff. I feel bad about not going deeper into the game.”

“It was a tough one,” Corbin said of the trip. “We didn’t play very well.”

Cody Asche had two hits with a double and two RBIs and Roger Bernadina had two RBIs for the Phillies, who have won six of their last eight games.

The game started just 11 hours and 25 minutes after the final out at 2:12 a.m. of Saturday’s 7-hour 6-minute marathon that set a record for length of time of a game for both clubs.

Arizona won that game 12-7 in 18 innings.

Sunday’s game was more conventional, taking 2 hours 49 minutes.

“It’s all part of baseball,” Arizona’s Matt Davidson said. “Things just didn’t work out.”

Halladay (3-4), who was working back from midseason right shoulder surgery and making his first start since May 5, originally was going to pitch his third minor-league rehab start on Sunday but was pressed into action when Sunday’s original starter, Tyler Cloyd, was one of 11 Philadelphia pitchers used on Saturday.

“I felt good and feel like each time out it’s getting better,” Halladay said. “I’m getting stronger and looking forward to continuing to build.”

Interim manager Ryne Sandberg got the go-ahead to use Cloyd and then Halladay, who was sleeping, was summoned in his Reading, Pa. hotel room, where he was resting in preparation for a Double-A start for the Fightin Phils against the New Hampshire Fisher Cats.

“I didn’t know what was going on,” Halladay said.

He went back to bed and made the 70-mile commute to Philadelphia on Sunday morning.