Arsenal narrowly escaped a formidable challenge from Leicester City, securing a dramatic 4-2 victory with two stoppage-time goals at the Emirates Stadium.