MIAMI (AP) All the Miami Heat had to do to secure their first home winning streak in more than a month was hold onto a 23-point second-half lead against a team with the NBA's worst record.
And even that proved too difficult.
Michael Carter-Williams scored 20 points, Luc Mbah a Moute added 19 and the Philadelphia 76ers went on an enormous run to turn the game around and stun the Heat 91-87 on Tuesday night - winning consecutive games for the first time this season.
''It ain't going to get no worse than this,'' Heat guard Dwyane Wade said.
Miami was up 69-46 midway through the third quarter.
Philadelphia - yes, Philadelphia, the team that started the season with 17 straight losses, one of those coming by 53 points - outscored the Heat 45-18 the rest of the way.
''A very unlikely win,'' 76ers coach Brett Brown said, ''with incredibly unusual circumstances.''
The 76ers only had eight players available because of illness, injuries and roster moves. Carter-Williams played every minute of the second half, Mbah a Moute played 20 of those 24 minutes, and despite basically everyone logging heavy minutes Philadelphia forced Miami into 28 percent shooting after halftime and outrebounded the Heat 25-18.
''I think we just keep fighting,'' Carter-Williams said. ''We're losing - there's not much we can do but keep plugging, trying to come back, especially when there's time left in the game.''
K.J. McDaniels scored 13, while Jerami Grant and Robert Covington each had 11 for Philadelphia.
Wade scored 17 of his 23 points in the first half for Miami, which was outscored 49-30 after halftime and plays host to LeBron James and Cleveland on Thursday in a Christmas Day showdown.
And this was anything but the way the Heat wanted to go into that one.
''Obviously, that'll be a common theme that we were looking ahead, but all of a sudden do you start looking ahead halfway through the third quarter, `Oh, let's start thinking about the Christmas game,''' Heat coach Erik Spoelstra said. ''That's not it. You have to credit their defense.''
Shawne Williams scored 17 and Mario Chalmers added 11 for the Heat, who missed four 3-pointers that would have given them the lead in the final minute.
Miami also turned the ball over 22 times, helping Philadelphia score 21 points.
Miami led by 13 after the opening quarter, by 15 at intermission and pushed the lead to 69-46 - a 23-point cushion - midway through the third quarter.
Someone forgot to tell the 76ers that the game was over.
Carter-Williams made a 3-pointer with one-tenth of a second left in the third to get Philadelphia within 78-73, and the 76ers' run never really stopped.
''Us looking ahead? Man, we're 13-15 coming into this game,'' Wade said. ''There's nobody looking ahead.''
76ers: Before the game, the 76ers announced the signing of F Malcolm Thomas, who played five games in Philadelphia before being waived last month. Ronny Turiaf was waived to accommodate the Thomas signing. ... Philadelphia blocked 10 of Mami's 21 missed shots in the first half, making the 76ers the third team this season to have that many blocks in a half (joining Oklahoma City and Milwaukee).
Heat: Centers Chris Bosh (strained calf) and Justin Hamilton (concussion) were sidelined, Bosh for the sixth straight game. He's done some shooting but the Heat aren't certain if he'll be ready for Thursday. ... Miami hasn't won two straight since Nov. 22-23, and hasn't won two straight at home since Oct. 29-Nov. 2. ... Wade started the night 65th on the all-time NBA scoring list. He moved to 62nd on Tuesday, passing Lou Hudson, Calvin Murphy and World B. Free.
OUT OF LAST
The 76ers still have the worst winning percentage in the NBA, but they're no longer the team farthest from first in the Eastern Conference. Philadelphia (4-23) is 17 games back of Toronto in the East - a half-game closer to the top than the New York Knicks (5-25, 17 1/2games back).
Miami's 10 second-half field goals were the fewest by a Heat team in a regular-season game since making eight against the Knicks on April 2, 2013.
76ers: At Portland on Friday.
Heat: Host Cleveland on Thursday.