This time, the Knicks owned the fourth quarter and owned the Wizards’ John Wall. Now they need to duplicate last night’s fourth- quarter effort tomorrow at the Garden against the raging Heat.

In gearing up for the matinee showdown versus Miami, the Knicks won their third straight last night, 96-88, gaining “payback’’ on the Wizards. Carmelo Anthony led the way with 30 points and Raymond Felton outplayed a shaky Wall, who had five turnovers and was held to 16 points and six assists at sold-out Verizon Center.

Felton scored 23 points with four assists and six rebounds and hit a game-sealing floater in the lane with 32.4 seconds left for the clincher, giving the Knicks a 94-88 lead. The Wizards shot 3-of-17 from the field in the fourth quarter en route to just 11 points — 25 less than in their previous meeting three weeks ago.

“We didn’t want to let his one get away,’’ Anthony said. “We know what happened in the fourth quarter last time. We stuck to our schemes, got stops, got in transition. I didn’t have to do it myself down the stretch. Raymond controlled the pace of the game.”

Bring on the Heat, owners of the Eastern Conference’s best record and 13 straight victories, but who have been routed twice this season by the Knicks.

“They’re a great team, they’re going to make adjustments,’’ Anthony said. “But we will be prepared for Miami.’’

“It’s a good time to see what we got,’’ Tyson Chandler said.

The Knicks (35-20) made their adjustments against Washington. Since Wall came back from a prolonged knee injury, the Wizards have a winning record (13-11). Wall’s Wizards pounded the Knicks three weeks ago when Wall dominated and Washington scored 36 points in the fourth.

Anthony called it a “payback game’’ before tip-off and it became just that. The Knicks trailed 77-73 entering the fourth after blowing an 11-point third-quarter lead. But they went on an 8-0 run to seize the momentum and won the quarter, 23-11.

“Our defense really came alive,’’ coach Mike Woodson said.