Passengers crowd together to board a commuter train during a strike by French SNCF railway workers at the Gare du Nord station in Paris
Passengers crowd together to board a commuter train during a strike by French SNCF railway workers at the Gare du Nord station in Paris REUTERS/Philippe Wojazer

It was one of Australia's finest display of people power ever. Commuters aboard a Perth-bound train, majority surely strangers than friends, all went out of their way, literally, by going out of the train just to collectively tilt it so as to release a man's trapped leg.

The unidentified male passenger was boarding about 8:50 am when he slipped and his leg wedged in the gap between the platform and the train on Wednesday morning, closed-circuit footage released by the Western Australia State Public Transport Authority showed. He couldn't move his leg and eventually got stuck there.

The man who was to board the train after the stricken passenger immediately alerted a security personnel rounding up the platform. The latter signaled to the train driver not to run.

Concerned passengers rounded up the man and the security personnel trying to help release the man's leg. But it was seriously stuck.

David Hynes, Transperth spokesman, said one of the staff suggested an idea.

"Then our staff who were there at the time got the passengers, and there were lots of them, off the train, and organised them to sort of rock, tilt the train backwards away from the platform so they were able to get him out and rescue him."

When the man finally freed his leg, applause ensued. And a collective sigh of relief.

"It's really heartwarming I think, to find an incident like this where everyone pitched in," Hynes said.

The man and his leg sustained no injuries.

Watch the full video below.

YouTube/ PTA WA