The man is also suspected of 37 cases of assault with a deadly weapon. If he is convicted, he risks several life sentences.
The incident occurred during the night against Saturday, local time. A driver drove straight into people leaving a nightclub in the East Hollywood district. The suspect is believed to have acted intentionally.
When he drove the car onto the sidewalk, he aimed at a whole sea of pedestrians, says prosecutor Nathan Hochman.
The car stopped when it crashed into a row of food carts. The driver was pulled out of the car and assaulted by people on the scene. After he fled, he was found later with a gunshot wound. The shooter has not been found.
Eight people were seriously injured in the collision, according to the prosecutor.
It's a miracle that no one was killed, says police chief Jim McDonnell.