The student will square off against the master in Oklahoma City on Thursday night in the Knicks’ deliciously compelling season opener.

With Carmelo Anthony lining up at power forward in the Thunder’s small-ball lineup, Porzingis said he will defend his former teammate at the outset. At 7-foot-3, Porzingis has the height advantage, but the 6-8 Anthony has the craftiness.

“I think I will, I think I will,’’ Porzingis said after Tuesday’s practice in which the coaching staff started to focus on the team’s first opponent. “It’s going to be interesting. He’s been in the league for 13, 14 years. I think everybody knows what he’s doing, but nobody can stop him. It’s going to be a challenge for me. I’m going to do my best.’’

Porzingis said he and a handful of Knicks may dine with Anthony after they get to town Wednesday night. Kyle O’Quinn was said to be arranging the get-together.

Asked if he expected Anthony to be extra jacked against his old friends, Porzingis said: “It’s hard to say. He has so much experience. He’s not only going to think about this game. He’s just going to go out there and be Melo like he always is. It’ll be fun.’’

The Knicks had planned to watch film of Anthony’s role in Billy Donovan’s offense after Tuesday’s practice.

“I watched him every day for two years,’’ Porzingis said. “I know what he does. How he can score. But if there was an answer to what he’s doing and how to defend that, that would be nice, but there’s no film I can watch and say, ‘Now I know how to guard this.’ So I’m going to try to use my length as much as I can.’’