“Jackass” star Steve-O was sentenced to 30 days in jail for ananti-SeaWorld stunt, but he ended up spending less than nine hours there.

Stuntman and "Jackass" star Steve-O was released from jail Thursday because of overcrowding after serving only nine hours of his 30-day sentence in connection with an anti-SeaWorld stunt in Hollywood over the summer, sheriff's department officials said.

Just before turning himself in to deputies, Steve-O — in typical “Jackass”-style fashion — posted a video on Instagram showing himself performing a backflip in front of the main sign of the Twin Towers Correctional Facility with the caption, “Here I am at jail. See ya when I see ya, folks! #yeahdude #SeaWorldSucks.”

A few hours later, Glover was at home resting in bed with his beloved pet.

"After taking a hilarious mug shot, I wound up spending less than eight hours in jail," Glover said on Instagram. "Thanks to all of the good people at Twin Towers Correctional Facility for making my stay a great one. #yeahdude #SeaWorldSucks."

Glover was sentenced in October to 30 days in jail after pleading no contest to using fireworks and trespassing. The Los Angeles County Sheriff's Department says anyone sentenced to less than 120 days is immediately released from custody because of the facility's current release criteria and overcrowding.

Glover, 41, also was ordered to serve three years' probation and stay away from the Hollywood Entertainment District, where, on Aug. 9, he scaled a large crane.

As Glover climbed the construction crane, he shot off fireworks, posting videos and photos of himself on his Facebook page. He carried with him an inflatable orca and wore a "Blackfish" T-shirt, making the stunt another of his public demonstrations against SeaWorld, which has been criticized for keeping killer whales in captivity and using them in shows.

The stunt became a spectacle, drawing more than 80 firefighters and a helicopter and triggering numerous 911 calls.