A pedestrian has life-threatening injuries after being hit by a car in Shirley on Thursday night, Suffolk police said.

He was not at a crosswalk when he crossed the William Floyd Parkway and was struck about 7:15 p.m. by a Toyota Camry traveling south, police said.

The pedestrian, who was not identified, was taken to Brookhaven Memorial Hospital Medical Center in Patchogue, according to police.

advertisement | advertise on newsday

The driver, who was not injured, stayed at the scene and has not been charged, police said.

Seventh Precinct detectives were continuing to investigate Thursday night and other details were not immediately available.