Phoenix was bombed out of his skull. Cocaine and alcohol, I would say.
The other “Edgy” actors who played the Joker got trashed on drug binges in prep for the role as well.