Arsenal had to take the lead four times to beat Newcastle 7-3 in a thrilling clash at the Emirates Stadium.