If you are speculating about a hypothetical and counterfactual situation then strictly it should be "were". However, in everyday colloquial English the subjunctive "were" is struggling to survive and "was" is commonly used instead.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.