WASHINGTON — President Biden stumbled twice Friday while walking up the steps of a stage in Philadelphia — before telling his audience that Al Qaeda terrorists seem “pure” next to those from “evil” Hamas.

The 80-year-old president initially staggered as he began to climb a small set of stairs to the stage, then lurched forward as he threatened to lose his balance completely — recalling a bad spill he took earlier this year during the Air Force Academy commencement exercises.

When Biden regained his footing, he theatrically gripped the railing with both hands and mugged for his audience before making his way to the lectern and giving an unexpected appraisal of the global terror network that carried out the Sept. 11, 2001 attacks, killing 2,977 people at the World Trade Center, the Pentagon and Shanksville, Pa.

“These guys make — they make Al Qaeda look pure. They’re pure evil,” Biden said of the Palestinian jihadist organization that rules the Gaza Strip. “As I said from the beginning, the United States, make no mistake about it, stands with Israel.”

Biden made the comment one day after slamming former President Donald Trump for calling Hezbollah terrorists “smart” following diversionary attacks on northern Israel, with the commander-in-chief tweeting Thursday that “the right time to praise the terrorists… is never.”

Biden spoke on Friday morning with family members of the missing 14 Americans, a group that includes dual citizens and at least two of whom were serving in Israel’s military.

“This morning I spoke with the family members of all those Americans who are still unaccounted for on a Zoom call for about an hour and 10-15 minutes,” Biden said in Philadelphia.

“They’re going through agony not knowing what the status of their sons, daughters, husbands, wives, children are. You know, it’s gut wrenching. I assured them my personal commitment to do everything possible — everything possible — to return every missing Americans to families.”