Everton scored three times in the final 11 minutes to beat Newcastle in a hectic encounter and move out of the Premier League's relegation zone.
The Toffees were sent tumbling into the bottom three by their 10 points deduction for breaking the top flight's financial rules, but moved back into safety thanks to late goals from Dwight McNeil, Abdoulaye Doucoure and summer signing Beto.
The hosts punished a pair of mistakes from Kieran Trippier, the first coming as McNeil pounced on a poor touch, drove forward forward and thumped a deflected effort into the net, before Doucoure coolly slotted home seven minutes later.