Alex Iwobi's 99th-minute goal earned Everton a massive victory in their fight against relegation as they held on to beat Newcastle despite being reduced to 10 men.
An average game, which was delayed by a protestor tying himself to a goalpost by his neck, came to life late on when Anthony Gordon tested Martin Dubravka with a curling shot.
But the mood soon turned sour when Allan was sent off with seven minutes remaining for taking out Newcastle substitute Allan Saint-Maximin after referee Craig Pawson consulted the pitchside monitor and overturned his initial decision to book the Everton midfielder.