Mayor de Blasio took a shot at billionaire former mayor Mike Bloomberg on Friday night, predicting he would be “laughed” out of the 2020 race for the White House.

De Blasio also threw his ex-boss, Hilary Clinton, under the bus for failing to connect with Democrats in her failed 2016 presidential bid during an appearance on HBO’s “Real Time with Bill Maher”

But Hizzoner saved his biggest criticism for Bloomberg, claiming both the billionaire ex-mayor and ex-Starbucks CEO Howard Schultz have no shot at swaying enough voters to be elected president in 2020.

“Listen to this: two billionaires [telling] everyday Americans why we can’t afford for them decent healthcare,” said de Blasio. “That’s bankrupt! They are going to be laughed out the race.”

Both de Blasio and Bloomberg have interest in seeking the Democratic nomination for president while Schultz is considering running as an independent.

“Bloomberg has to come to grips with the fact he can’t talk down to the American people and tell them … that despite the fact that their working extraordinarily hard, they don’t get to have healthcare for their families – meanwhile, he gets all the healthcare he needs,” de Blasio added.

“C’mon, it’s a contradiction he doesn’t have an answer for.”

De Blasio — who has beefed up efforts the past few months trying to portray himself as a national progressive leader — was also critical of Clinton for failing to reach the working class.

“The only reason Donald Trump had a chance in 2016 was that too many working Americans didn’t know Hillary Clinton was on their side,” de Blasio said. “She tried to articulate a vision — I don’t want to take that away from her — but people couldn’t tell if she was part of the elite that caused their problems or if she was part of process of change.

De Blasio served as Clinton’s campaign manager during her successful 2000 US Senate bid and worked as regional housing administrator in Bill Clinton’s administration.