MILWAUKEE -- Jose Bautista and Colby Rasmus hit home runs as the Toronto Blue Jays beat Milwaukee 9-5 on Wednesday, snapping the Brewers' five-game winning streak.

Dickey (10-12) gave up eight hits and hit two batters, but Toronto hitters broke out of a weeklong slump, collecting 14 hits against six Milwaukee pitchers and driving in seven runs with two outs.

The Blue Jays ended a two-game losing streak.

Bautista gave Toronto some breathing room with his 24th home run of the season, a three-run shot in the sixth inning off Brewers right-hander Brandon Kintzler, who hadn't allowed a home run in his last 13 outings. That put the Blue Jays ahead 7-3.

Milwaukee got two back in the bottom of the inning off a two-run homer by Carlos Gomez, but Rasmus restored the four-run lead in the ninth inning with a two-out, two-run homer to center off left-hander Will Smith.

Nelson (2-4) battled through five-plus innings, allowing four runs, nine hits and two walks with four strikeouts.

Rangers 5, Marlins 4

MIAMI -- Texas rookie right-hander Nick Martinez, pitching in his hometown for the first time in his major league career, defeated Miami.

Miami, which trailed 5-2 entering the ninth, hit two solo homers in the inning -- by Marcell Ozuna and pinch hitter Jarrod Saltalamacchia off of Rangers closer Neftali Feliz. But Feliz got the final two outs to earn his fifth save of the season.

The Marlins had their three-game win streak snapped.

Martinez, 24, shut down the Marlins early, holding them to six hits and two runs in six innings, striking out a career-high seven to improve his record to 3-9.

Phillies 4, Mariners 3

PHILADELPHIA -- In a game that featured three wild pitches, two errors and a passed ball, last-place Philadelphia scored three unearned runs in the bottom of the fourth inning to erase a 3-1 deficit and eventually win just its fourth series since June 19.

Jimmy Rollins went 2-for-5 with two runs scored, one of which was the go-ahead run on Chase Utley's RBI single.

The Phillies' bullpen pitched four scoreless innings to seal the win with nine of the final 12 outs coming via strikeout. Jake Diekman went two innings and struck out four, while Ken Giles punched out two in the eighth and closer Jonathan Papelbon saved his 30th game with two strikeouts.

Philadelphia starter Cole Hamels (7-6), who entered with the majors' third-best ERA since June 1 (1.60), lasted just five innings, while allowing three runs in his shortest start since July 2.

Mets 8, A's 5

OAKLAND, Calif. -- Zack Wheeler ran his string of consecutive starts without a loss to 10 and Lucas Duda capped a five-run third inning with a three-run homer to lift New York to a split of a two-game interleague series.

Designated hitter Eric Campbell also homered for the Mets, a solo shot leading off the third inning, as New York ran its interleague record to 9-8 at the expense of the American League playoff contender.

A pitchers' duel between Wheeler and Jeff Samardzija never materialized, although Wheeler was able to make it two outs into the sixth inning before leaving with an 8-4 lead. Wheeler, who hasn't lost since facing the A's on June 25, pitched with a lead after Campbell belted his third homer of the season in the third inning.

Josh Edgin, Vic Black and Jeurys Familia finished for the Mets, who managed a 2-2 season split with the A's. Familia, who worked the final 1 2/3 innings, posted his fourth save.