Canada’s Milos Raonic rallied in the third set to defeat out-of-sorts fifth seed Andy Murray on Wednesday and reach the quarter-finals of the Indian Wells ATP Masters.

Raonic, seeded 10th, downed Murray 4-6, 7-5, 6-3 to line up a quarter-final clash with giant-killer Alexandr Dolgopolov.

The 28th-seeded Ukrainian avoided any letdown in the wake of his third-round upset of world number one Rafael Nadal, powering past 13th-seeded Italian Fabio Fognini 6-2, 6-4.

Raonic, ranked 11th in the world, wasn’t surprised to find himself facing world number 31 Dolgopolov from a quarter of the draw that included both Nadal and Murray.

The 23-year-old Canadian with the booming serve said Wawrinka’s Grand Slam breakthrough in Melbourne, where he beat both Djokovic and Nadal, had shown players like himself and Dolgopolov that the game’s biggest names — Nadal, Djokovic, Federer and Murray — were indeed beatable.

“I think everybody sort of in that top-10 range, also a little bit outside trying to break through, took a deep breath and said, ‘Why can’t that be me?'” Raonic said.

That kind of confidence stood him in good stead when he surrendered an early break to Murray in the third set.

Murray, who claimed his second Grand Slam title at Wimbledon last year, has yet to reach a final since having back surgery in September.

But he was at a loss to explain a sudden drop in his level after he had taken the lead in the third set. He was immediately broken to love, and Raonic broke him again for a 4-2 lead that he wouldn’t surrender.

“I think there was mistakes that he made that he wouldn’t have liked to make,” Raonic said. “I think his mistakes were critical that he made in that first break I got.

“But then I felt like I sort of got going a bit more after that. I sort of picked it up for the rest of the set.”