The unthinkable happened in Miami.

A defense that had been carrying the Eagles imploded against Ryan Fitzpatrick and the talent-challenged Miami Dolphins, who scored 23 consecutive points after falling behind by two touchdowns en route to a stunning 36-31 win in South Florida.

Fitzpatrick, one of the streakiest quarterbacks in the NFL, got hot and gouged the Philadelphia secondary for a season-high 365 yards and three touchdowns, two of them to DeVante Parker, who tortured Eagles cornerbacks Ronald Darby and Jalen Mills with his size and ability to high point the football.

Parker finished seven receptions for a career-high 159 yards while former Penn State star Mike Gesicki also has one of his best games as a pro, snaring five catches for 79 yards and a TD.

Miami (3-9) also caught the Eagles on a trick play for the third consecutive week. This one a fourth-down circus from the 1-yard line where punter Matt Haack shoveled a no-look pass to kicker Jason Sanders from a completely spread formation in the second quarter.

The embattled Eagles offense looked much better while getting back receivers Alshon Jeffery and Nelson Agholor form injury but Carson Wentz still missed far too many throws and Zach Ertz, fighting through a hamstring injury, had two drops in the game.

Jeffery, returning from missing two games with an ankle injury, had his best game of the season with nine receptions for 137 yards and a score while Miles Sanders, the lead back with Jordan Howard missing another game with a shoulder injury, had 105 all-purpose yards -- a career-high 83 rushing and 22 more through the air, including a 15-yard TD in the first quarter.

Wentz was 28-of-46 for 310 yards with three TDs and an interception.

The Eagles fell to 5-7 with the disappointing loss but still control their own destiny when it comes to winning the moribund NFC East. If Philadelphia wins out with four division games remaining -- a home and home against the New York Giants, at Washington and Week 16 against 6-6 Dallas at Lincoln Financial Field, the Eagles will win what is the NFL's worst division.

Fitzpatrick also stunned the Eagles last season while with Tampa Bay and defensive coordinator Jim Schwartz foreshadowed this possibility earlier in the week.

"Man, that's Fitzpatrick. He's 36 years old.’ He still has good mobility. He has a rifle for an arm. He has one of the best fastballs in the NFL and he can fit the ball into some tight windows," Schwartz insisted.

Enter your number to get our mobile branded app