Aberdeen wrapped up second place in the Scottish Premiership with victory and Rangers played out a 5-5 draw away at Hibernian.
Scottish Premiership scores
Final Scottish Premiership table
Hat-trick hero Jamie Maclaren's stoppage-time equaliser denied Rangers a famous comeback triumph in a breathless 5-5 draw with Hibernian at Easter Road.
A 5-5 draw could have been backed at 250/1 pre-match with Sky Bet, and late drama ensured it happened with seconds remaining.
Gers looked like they were set to be blown away as Florian Kamberi, Scott Allan and Maclaren put Hibernian 3-0 up after a 22-minute blitz.
That left the hosts needing just three more goals to steal third place from the Ibrox men on a final day packed with drama.
But the Light Blues mounted a stunning fightback with strikes from James Tavernier, Jordan Rossiter, Bruno Alves and Jason Holt and Josh Windass.
However, another Maclaren goal sent Gers' nerves jangling and with Jimmy Nicholl's men down to 10 after seeing Holt sent-off late on, Hibs' on-loan Darmstadt frontman prodded home at the death to the relief of the Hibs faithful.
Aberdeen clinched second place in the Ladbrokes Premiership with a surprise 1-0 win over champions Celtic at Parkhead.
In front of a packed house, most of whom were celebrating seven successive title wins with the trophy lift to follow the game, a goalless first half ensued, before Andrew Considine scored for the visitors two minutes after the restart.
The Pittodrie side held out for the rest of the game with admirable resolve to register their first league win at Celtic Park in 26 attempts.
Dons defender Shay Logan was shown a straight red card by referee Craig Thomson after the final whistle following a melee and after which he celebrated boisterously in front of the home supporters.
It was Aberdeen manager Derek McInnes' first win over Brendan Rodgers' side in 10 games and was not the end to the league season the Northern Irishman wanted, with a William Hill Scottish Cup final against Motherwell at Hampden Park to come next Saturday as they look to clinch an unprecedented successive domestic treble.
Lee Erwin's early strike was enough to give Kilmarnock a winning end to a memorable campaign against a Hearts team featuring eight teenagers.
Erwin struck the only goal in the 10th minute as Killie claimed their first victory since the Ladbrokes Premiership split.
Steve Clarke's side had already secured fifth spot but treated the home fans in the 6,273 crowd at Rugby Park to another impressive performance which might have yielded more goals.
