Red phosphorous does not reacts with caustic alkalies (NaOH or KOH). Whereas white phosphorus reacts with caustic alkalies to produce phosphine.
P4whitephosphorus+3NaOH+3H2O→3NaH2PO2sodiumhypophosphite+PH3Phosphine
Phosphine is also obtained when calcium phosphide is heated with water.
Ca3P2+6H2O→2PH3+3Ca(OH)2
Phosphine is also obtained whn phosphorus trioxide is boiled with water.