Classic Doctor Who
The Deadly Assassin: Part 3
S14 E11:
The Doctor faces the assassin inside the matrix dreamscape while the Master tries to take out the Doctor in the real world.