Bryce Harper hit a two-run double off Dodgers closer Kenley Jansen with one out in the bottom of the ninth after pinch-hitter Matt Beaty hit a three-run homer off Philadelphia closer Hector Neris in the top half, rallying the Phillies to a 9-8 win over Los Angeles on Tuesday night.

Pinch-hitter Andrew Knapp hit a double with one out in the bottom of the ninth and Cesar Hernandez singled. Scott Kingery followed with a bloop single to center that scored Knapp to get the Phillies within a run. Harper then ripped a ball to the gap that bounced off A.J. Pollock's glove and went to the wall.

Cody Bellinger hit his major league-leading 34th homer and Max Muncy, A.J. Pollock and Joc Pederson also went deep for the Dodgers.

Harper hit a three-run homer and drove in five RBIs, Brad Miller and Kingery also connected for the Phillies.

Ranger Suarez (1-0) got two outs for the win.

Jansen (3-3) has four blown saves in 24 tries.

YANKEES 8, RAYS 3

Aaron Judge hit a go-ahead, two-run homer in the eighth inning, Didi Gregorius followed with a grand slam as New York beat Tampa Bay after another surly clash between CC Sabathia and the Rays.

Judge smashed a 3-2 pitch from left-hander Colin Poche (2-3) into the right-center field seats to make it 4-3. It was Judge's 10th homer.

Gregorius took a curtain call after hitting a long grand slam. Edwin Encarnación hit his 28th homer, DJ LeMahieu also went deep, and New York stretched its AL East lead over Tampa Bay to six games.

Yandy Díaz hit a solo homer and an RBI double, and Austin Meadows hit his 14th homer for Tampa Bay.

Benches cleared during the sixth inning amid a shouting match between Sabathia and hitter Avisaíl García. After Sabathia struck out García looking to strand two runners, the 38-year-old barked and pointed at García. Sabathia was restrained by Gregorius and never got close to García while both benches and bullpens emptied. No punches were thrown.

David Hale (3-0) pitched two scoreless innings for New York.

BLUE JAYS 10, RED SOX 4

Teoscar Hernández hit a three-run homer off new Boston starter Andrew Cashner, and Lourdes Gurriel Jr. had three hits to lead Toronto.

Gurriel had a single, double and triple, and Justin Smoak also homered for Toronto, which lost three of its previous four games.

Cashner (9-4) was acquired from the Orioles on Saturday. He failed to get an out in the sixth, allowing six runs — five earned — on eight hits and two walks, striking out two. He also gave up two homers, hit a batter and threw a wild pitch on a third strike.

Xander Bogaerts had a single, double and home run, and Mookie Betts also had three hits for Boston, which fell 10 games behind the first-place New York Yankees in the AL East.

Justin Shafer (1-1) got the win. Toronto broke it open with four runs in the ninth.

NATIONALS 8, ORIOLES 1

Matt Adams and Juan Soto homered and rookie Austin Voth extended a streak of strong performances by Washington's rotation in a win over neighboring Baltimore.

Washington has won 13 of 16.

Voth (1-0) allowed one run and four hits over six innings. He walked one and hit two batters, all in an eventful but scoreless first inning.

Adams's home run off Asher Wojciechowski (0-3) made him the 102nd player in the 28-year history of Camden Yards to hit a ball onto Eutaw Street, beyond the right field wall and in front of the B&O Warehouse.

Hanser Alberto homered for the lone run for Baltimore.

MARLINS 12, PADRES 7

Brian Anderson hit a three-run homer in the first inning and Miami dealt San Diego its fourth straight loss.

The Padres (45-49) fell four games under .500 for the first time this season.

Harold Ramirez had two doubles, two RBIs and two runs scored. Garrett Cooper hit his 11th homer and a two-run single, and Starlin Castro had a bases-loaded triple to make it 11-3 in the sixth.

Jordan Yamamoto (4-0) struggled early and needed 99 pitches to get through five innings, but he gave up only two earned runs. Padres rookie Logan Allen (2-2) had his second rough start in a row, allowing seven runs in 2 1/3 innings.

Franmil Reyes hit his 26th homer pinch-hitting in the ninth. San Diego teammate Manuel Margot hit his sixth homer.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports