"Saved By the Bell" had a 30-year class reunion.

Several cast members — Mark-Paul Gosselaar (Zack Morris), Tiffani Thiessen (Kelly Kapowski), Mario Lopez (A.C. Slater), and  Elizabeth Berkley (Jessie Spano) — got together for a quadruple dinner date ahead of the show's 30th anniversary this August.

"This is what 30+ years of friendship looks like," Gosselaar captioned a photo on Instagram that showed the four actors with their spouses.

Lopez also shared an Instagram video, where he joked about who would pay the dinner check. In a comment, Gosselaar replied, "Thanks for taking care of the bill!"

"Saved By the Bell" ran on NBC from 1989 to 1993 and launched several spinoffs and TV movies. The cast also included Dustin Diamond (Samuel "Screech" Powers) and Lark Voorhies (Lisa Turtle), who weren't present for the dinner reunion.

The show will celebrate its 30th anniversary on August 9, the day the pilot first aired in 1989.