What is Ecstasy Made Out of?

Ecstasy is made of of all kinds of stuff like amphetamines,Ketamine,caffeine,methamphetamine.it has been known that there is other drugs like cocaine and heroin has also been used to make this drug.