Is Styrofoam Bad For Plants?

Is Styrofoam harmful to plants?

.

Can you put Styrofoam in the bottom of a planter?

Is it OK to use Styrofoam peanuts in planters?

Can you use Styrofoam instead of perlite?