Many P fares have an underlying economy fare code with an automatic upgrade: V-UP is a common underlying fare basis. The only way to know is to check the full fare rules BEFORE purchase.
After purchase -UP fares that map into P are impossible to discern on the web site.
In IRROPS, P fares that have an -UP basis will auto-rebook into economy. You have to talk your way back into the front cabin.