"I played only once in first four matches on Centre Court".
The world number 40 was unable to mount a response this time and evidence fortune was in the Serbian's favour came on his second of two set points when a Khachanov slip enabled him to take a 2-0 lead in the match.
The eight-time champion was two sets up and had a match point in the third, but nearly three hours later he trudged off on the end of a seismic 2-6 6-7 (5/7) 7-5 6-4 13-11 upset.
A double fault gave Anderson a break point, Federer then firing into the net, and his hopes of a record-extending ninth Wimbledon title were ended as he was unable to return a huge serve down the middle.
Anderson, the eighth seed, knocked off the eight-time champion 2-6, 5-7, 7-5, 6-4, 13-11.More news: Klopp defends Karius after latest Liverpool blunder
Since he exited Wimbledon at the first-round stage a year ago, Anderson has enjoyed a solid return, making four finals, including his deep run at the US Open where he finished runner-up to Rafael Nadal. "I don't think it's fair but it is what it is".
Roger Federer's Wimbledon title defence is over following a dramatic five-set quarterfinal loss to an inspired Kevin Anderson on Wednesday (Thursday NZ Time).
Anderson had Federer down 0-30 twice on serve in the early stages of the decider but the top seed's survival instincts kicked in and with the advantage of serving first it seemed inevitable that his opponent would crack eventually.
And he had held serve 81 games in a row at the grass-court major, a streak that grew to 85 before Anderson broke him a surprising total of four times.
On winning the match Anderson said: "I'm not quite sure what to say, I had to try my best to keep fighting".
Despite his anger, Djokovic still reeled off 10 of the last 12 games of the quarter-final.More news: Starbucks To Eliminate Plastic Straws From All Of Its Stores By 2020
He's been flashing some anger this fortnight and did so again in the second set, bouncing his racket off the turf after failing to capitalize on three break points at 1-all.
Nadal has made the quarter-finals for the first time since finishing runner-up to Djokovic in 2011.
The victor of this one will face either John Isner or Milos Raonic in the semifinals on Friday.
Djokovic rallied to hold and only lost two more games from that point onward as he advanced to his first Grand Slam semifinal since the 2016 US Open. The South African saved three break points before taking the set 7-5.
After beating Monfils in a tight four-set battle, Anderson said he was exhausted after playing for three hours and 29 minutes.More news: Gareth Southgate says England face toughest World Cup test against Croatia
- Liverpool close to securing Xherdan Shaqiri transfer
- Court seeks extension to resolve remaining cases against Nawaz Sharif
- Kylie Jenner says daughter Stormi has the 'cutest' personality
- Theresa May presses on with Brexit plan after high-profile resignations
- First PGA Tour stop in Detroit is full-go for June 2019
- Turkey's new finance chief, Erdogan's son-in-law, vows to bring inflation down
- Bluster aside, US and China vulnerable to pain from tariffs
- Croatia vs. England, Semifinals
- England nowhere near their potential, says manager Gareth Southgate
- Harry and Meghan due in Dublin for two-day visit