Phosphorus is in group V of the periodic table, therefore it has 5 valence electrons. According to the octet rule, for the ion to be stable, it must have 8 valence electrons, we see that for this rule to be fulfilled, the phosphorus needs 3 electrons, so the answer will be:
Answer: Second option. 3