PHOENIX -- DeMar DeRozan had already matched his season high with 37 points. With his team up four in the closing seconds, he was needed on the defensive end.
DeRozan forced T.J. Warren to take a difficult one-handed floater from 12 feet out, and with the miss the Toronto Raptors sealed a 115-109 victory over the Phoenix Suns on Wednesday night.
"I'm just understanding tendencies," DeRozan said. "We did a great job, we got the rebound and we made our free throws."
The Raptors have won seven of eight, and at 18-8 tied the second-best start in team history through 26 games.
DeRozan scored 18 points in the third quarter and Toronto led by as many as 15 before the Suns rallied in the fourth.
"It was on the starters and myself to come out (of halftime) with that energy and try to get us going," DeRozan said.
Toronto was 3-1 on its four-game trip. Phoenix has lost five straight and seven of eight -- the last four losses with star guard Devin Booker sidelined by a groin injury.
Serge Ibaka had 21 points and 13 rebounds, and Jonas Valanciunas added 20 points and 11 rebounds for the Raptors.
"JV (Valanciunas) was rolling to the basket, getting what he wanted," Raptors coach Dwane Casey said. "We just felt we needed rebounding."
Valanciunas said his job is simple. "It doesn't matter which spot on the court I'm in. They pay me to fight for the rebounds," he said.
Troy Daniels led the Suns with a season-high 32 points on 11-of-16 shooting, including 7 of 10 on 3-pointers. His 3 with 11:12 to go in the fourth quarter and short jumper moments later cut the Raptors' lead to 92-87, and the Suns took advantage of a long scoring drought for the Raptors to pull within three with 9:22 left.
"My teammates were finding me. I had a couple go in early which is very important and then the rest were just falling," Daniels said. "Even the ones I miss I think they are going in. I think as a shooter you have to think like that."
The Suns got as close as 111-109 with 22 seconds to play when Daniels knocked down a 17-footer. But DeRozan and Kyle Lowry each hit a pair of free throws in the final seconds.
Greg Monroe added 17 points and 11 rebounds for Phoenix, and Warren had 17 points.
The Suns went ahead 46-43 midway through the second quarter on the third 3-pointer of the night for Daniels, who scored 14 first-half points. The Raptors finished the half on a 15-6 run to take a 58-52 lead.
"Tried to keep him on the floor as much as we can," Suns coach Jay Triano said of Daniels. "He's got an NBA skill of being able to really shoot the basketball and it's good to see him have a great night."
Toronto went up 79-68 on Ibaka's 3 with 5:24 left in the third. Lowry's first field goal of the game came at 3:56, when his 3 made it 82-68. Lowry missed his first five shots before that.
SUNS' WINS HARD TO FIND
The Suns (9-21) matched their longest losing streak of the season at five games.
Guard Tyler Ulis was asked if efforts to come back like Wednesday's will lead to wins.
"We are tired of saying that. We are tired of hearing that," Ulis said. "We want to get some wins. We are going out there fighting and playing our hearts out. We just want to come up with a couple."
Suns center Alex Len leaped and grabbed a first-quarter shot from DeRozan that was on its descent. The ball was nowhere near going through the hoop, but Len was whistled for defensive goaltending and DeRozan was fouled on the shot, scoring a three-point play.
Phoenix signed G Isaiah Canaan after receiving an injury hardship exemption from the NBA, with six players inactive Wednesday. Canaan, in his fifth NBA season, did not play. … C Tyson Chandler was not with the team, the second time in a week he missed a game for personal reasons. … Triano, the first Canadian-born head coach in NBA history, was the Raptors coach from 2008-11 and was an assistant with Toronto from 2002-08.
Suns play at Minnesota on Saturday night.