A pedestrian has jumped for their life after a car mounted a footpath and nearly collided with them in Preston overnight.