Best one is polypropylene (#5), since it's resistant to alkali and can withstand boiling water, plus it goes into dishwasher without problems. Next best one is HDPE (#2), though it can only be used at 190 F. After that, you have LDPE (#4) (150F) and PVC (#3) (140F). Try to stay away from PETE (#1), or Polystyrene (PS, #6), which are not heat or alkali resistant.
Mind you, this refers to the mixing of, and/or storage of lye solution. I'm not sure as to PS #6"s compatability as a soap mold.