How the heck did this dog survive?

If you're of a nervous disposition then you might not want to watch this video, as it contains a pup in quite considerable peril.

Filmed in Maharashtra, India, it shows a street dog making its way along a train track as a locomotive thunders just inches above it.

Incredibly, the animal comes to no harm and doesn't even seem too fussed that it was just a heartbeat from a very messy demise.