the eighth when Nolan Schanuel doubled with one out, Mike Trout was intentionally walked and Schanuel stole third without a throw.

But Taylor Ward swung through a full-count changeup from reliever Anthony DeSclafani for strike three, and Jo Adell popped out to shallow left-center, Arizona left fielder Lourdes Gurriel Jr. making a lunging catch after a long run.

Angels closer Kenley Jansen threw a scoreless ninth, getting Gurriel to ground into an inning-ending 5-4-3 double play, to keep the score tied.

Angels starter Tyler Anderson reached 10 years of big-league service time Friday night, a significant milestone that only 7% of players who make it to the major leagues achieve, but the veteran left-hander didn’t have much to celebrate.

Anderson needed 84 pitches to grind through five innings in which he gave up four runs and eight hits, struck out three and walked two, and he coughed up an early 4-0 lead when he gave up four runs on five hits in the second.

But Anderson escaped a two-on, no-outs jam in the third when he struck out Grichuk and got Blaze Alexander to ground into a 6-4-3 double play, and he added a scoreless fourth and fifth inning before turning the game over to the bullpen.

The Angels offense positioned Anderson for a win by snapping a 4-4 tie in the fifth inning, a rally that featured two rare events, a two-out walk by O’Hoppe, who had drawn 11 free passes in 287 plate appearances entering Friday, and a stolen base by the burly catcher, who swiped two bags in 267 big-league games before Friday.

That put O’Hoppe in position to score easily on Rengifo’s RBI double to right field for a 5-4 Angels lead.

But Grichuk’s homer off Detmers in the eighth prevented Anderson from notching his first victory since April 18, an 11-start stretch in which Anderson has lost six decisions.

The Angels got off to a great start Friday night when Zach Neto jump-started a four-run, five-hit rally in the first inning with his seventh leadoff home run of the season, a 434-foot bomb to left field that tied Brian Downing’s franchise record of seven leadoff homers in 1987.

Schanuel walked and took third on Trout’s double, a laser to left-center that left the slugger’s bat at 113 mph. Ward’s sacrifice fly made it 2-0.

Adell flied out to center, but Yoán Moncada blasted a first-pitch fastball from Arizona right-hander Ryne Nelson for a towering two-run homer to right and a 4-0 Angels lead.

But that lead vanished five batters into the top of the second, Grichuk crushing a 430-foot two-run homer to left, Alexander and Alek Thomas hitting back-to-back doubles for a run and Jose Herrera adding an RBI single to pull the Diamondbacks even, 4-4.