The shock UK election result has inspired Bernie Sanders supporters to begin re-circulating their favourite rallying cry on social media - the hashtag “#BernieWouldHaveWon".

The phrase became popular after the US presidential election as it suggested that the veteran Vermont Senator would have defeated Donald Trump if he had been the Democratic nominee instead of Hillary Clinton.

Mr Sanders supporters feel the independent politician was written off, stereotyped and maligned by the establishment – traits he shares with Labour Party leader Jeremy Corbyn.

But after Mr Corbyn's party won considerably more seats than predicted in the recent general election, the claim about Mr Sanders has re-emerged.

“Corbyn is way to the left of Bernie, smeared more by the media (& Bernie has way more legislative accomplishments),” Lee Fang, a reporter with the Intercept website, tweeted. “Bernie would have won.”

Both Mr Sanders and Mr Corbyn call themselves socialists and both generated impressive grassroots support during their campaigns. Both are more left wing than the average politician in their home countries.

Mr Corbyn wants to nationalise all British railways; Mr Sanders advocated for a single-payer healthcare system. Both men want to make university tuition free.

And both, it turns out, had massive support from younger voters.

The latest polling shows British voters ages 18-34 voted Labour by a margin of 63-27 per cent. More young voters in the US voted for Mr Sanders than Mr Trump and Ms Clinton – combined.

General Election 2017: Big beasts who lost their seats Show all 7 1 /7 General Election 2017: Big beasts who lost their seats General Election 2017: Big beasts who lost their seats Nick Clegg Picture By Darren O'Brien/Guzelian Picture Shows Former MP, Nick Clegg delivers a speech despite losing the Sheffield Hallam Seat. Labour candidate, Jared O'Mara (Front), defeats Nick Clegg to take the Sheffield Hallam seat. picture taken 08/06/2017 Darren O'Brien General Election 2017: Big beasts who lost their seats Gavin Barwell LONDON, ENGLAND - OCTOBER 07: Gavin Barwell MP arrives at Number 10 Downing Street on October 7, 2013 in London, England. British Prime Minister David Cameron announced a Government reshuffle today. (Photo by Oli Scarff/Getty Images) Getty General Election 2017: Big beasts who lost their seats Angus Robertson General Election 2017: Big beasts who lost their seats Nicola Blackwood PA General Election 2017: Big beasts who lost their seats Alex Salmond PA General Election 2017: Big beasts who lost their seats Rob Wilson Mandatory Credit: Photo by Geoffrey Swaine/REX (1096138i) Rob Wilson, Conservative MP for Reading Funeral of Murdered Student Asha Muneer at Rivermead Leisure Centre, Reading, Britain - 28 Jan 2010 Rex Features General Election 2017: Big beasts who lost their seats Ben Gummer Minister for the Cabinet Office Ben Gummer arriving at 10 Downing Street, London for the weekly cabinet meeting. PA

But Sanders supporters say their candidate’s far-left views drove the Democratic establishment to undercut his campaign.

Leaked emails from the Democratic National Committee (DNC) showed there may have been some bias against Mr Sanders, in favour of Hillary Clinton.

Mr Sanders' fans see the UK election as an example of what could have been, had the Democratic establishment accept their candidate.

“Wow it's almost like people would vote for a socialist candidate if he wasn't blocked by a liberal oligarch!” one frustrated US voter tweeted.

More broadly, the UK election results show that support exists for more radical, lefitist views. After a year dominated by words like “populism” and ”nationalism,” many Sanders supporters – and even Mr Sanders himself – see this as an encouraging sign.

"All over the world people are rising up against austerity and massive levels of income and wealth inequality," Mr Sanders told The Washington Post. "People in the UK, the US and elsewhere want governments that represent all the people, not just the one per cent.