Leinster ensured a winning send-off for departing out-half Jimmy Gopperth as they came from behind late on to beat Edinburgh 36-23 in the final round of the GUINNESS PRO12…

It took two converted tries in the final nine minutes from Jordi Murphy and Luke McGrath to see Leinster pick up their 11th win of a campaign where they finished fifth overall.

Matt O'Connor's men had lost their grip on a 17-10 interval lead at BT Murrayfield, as two Sam Hidalgo-Clyne penalties and a seven-pointer from Tim Visser moved Edinburgh 23-22 ahead with a quarter-of-an-hour remaining.

However, McGrath put Murphy over for a crucial 71st minute score and the replacement scrum half added a clinching fifth try, with the Wasps-bounded Jimmy Gopperth on for his final Leinster appearance and Lansdowne's Cian Kelleher winning his first cap off the bench.

The visitors had to cope with some early disruption up front as Mike McCarthy (head) and his replacement Tom Denton (arm) were both withdrawn injured. Scrum half Hidalgo-Clyne punished a seventh minute offside to make it 3-0 to Edinburgh.

Ian Madigan, continuing his impressive form with the boot, replied with a drop goal and Leinster were 10-3 to the good by the end of the first quarter. Centre Noel Reid marked his first PRO12 appearance since February with a try, a terrific individual finish after Sean O'Brien's deft pass had put him into space.

Madigan's conversion was followed by a Hidalgo-Clyne penalty miss and Leinster had Dave Kearney to thank for a try-saving tackle on Dougie Fife. But that good work was undone when a lineout steal led to flanker Hamish Watson touching down for the European Challenge Cup runners-up.

Although Hidalgo-Clyne's conversion brought Edinburgh level, Leinster hit back to lead by seven points at the break. Madigan and Dave Kearney combined in midfield to very good effect, the latter bursting clear from a reverse pass and he laid off for replacement Jack Conan to grab his third try of this season's PRO12.

The Scots opened the second period with a Hidalgo-Clyne penalty, punishing a Leinster scrum infringement, but it was the Leinster backs who again clicked into gear. The Kearney brothers did well with ball in hand before Madigan's long skip pass sent an unmarked Kirchner over for an unconverted score.

Edinburgh remained hot on Leinster's heels, though, as Visser scrambled over in the corner and Hidalgo-Clyne's reliable boot supplied the conversion and a subsequent penalty to nudge the hosts in front – 23-22.

A win for Edinburgh would have seen them through to the European Champions Cup play-off away to Gloucester, but Leinster did their provincial rivals Connacht a favour in that regard by producing a strong finish.

O'Connor's side showed they had too much firepower for the home team in the closing stages of this entertaining round 22 tussle, with fast-breaking man-of-the-match Madigan to the fore.

The visitors' bench had the desired impact, McGrath delivering quick ball and props Michael Bent and Tadhg Furlong both getting their hands on it before flanker Murphy barged over impressively for the bonus point score.

Madigan converted for a 29-23 scoreline and Leinster wrapped up their season with one final try, replacement Gopperth slinging a penalty towards the corner and McGrath then managing to ground the ball close to the posts following the well-won lineout and a Devin Toner carry.

EDINBURGH SCORERS: H. Watson (1 try), T. Visser (1 try), S. Hidalgo-Clyne (2 conversions and 3 penalties)

LEINSTER SCORERS: N. Reid (1 try), J. Conan (1 try), Z. Kirchner (1 try), J. Murphy (1 try), L. McGrath (1 try), I. Madigan (4 conversions and 1 drop goal)

EDINBURGH: Jack Cuthbert; Dougie Fife, Sam Beard, Andries Strauss, Tim Visser; Tom Heathcote, Sam Hidlago-Clyne; Alasdair Dickinson, Ross Ford CAPTAIN, John Andress, Anton Bresler, Ben Toolis, Fraser McKenzie, Hamish Watson, Cornell du Preez.

REPLACEMENTS: Neil Cochrane, Rory Sutherland, Simon Berghan, Ollie Atkins, James Hilterbrand, Nathan Fowles, Jade Te Rure, Tom Brown.

LEINSTER:

15. Rob Kearney
14. Zane Kirchner (Cian Kelleher, 75)
13. Colm O'Shea
12. Noel Reid (Jimmy Gopperth, 74)
11. Dave Kearney
10. Ian Madigan
9. Isaac Boss (Luke McGrath, 65)
1. Jack McGrath (Michael Bent, 61)
2. Richardt Strauss (Aaron Dundon, 78)
3. Mike Ross (Tadhg Furlong, 61)
4. Devin Toner
5. Mike McCarthy (Tom Denton, 3; Jack Conan, 8)
6. Jordi Murphy
7. Sean O'Brien
8. Jamie Heaslip CAPTAIN

REFEREE: Nigel Owens (WRU); ASSISTANT REFEREES: Andrew McMenemy, Graeme Wells (both SRU); CITING COMMISSIONER: John Kirk (SRU); TMO: Iain Ramage (SRU).