As you would expect, Upwork doesn't have the resources for people that really know PHP to be doing these verifications. While we all agree that the question was poorly-worded, anyone with decent communication skills (a much-needed skill for people doing the kinds of client-facing software engineering jobs that are on Upwork) can easily recognize this and work with the non-technical person conducting the interview to arrive at the "right" answer even though it "DOES NOT COMPUTE" to the overly-pedantic "language lawyer" in some.
I remember someone angrily posting on HN about failing an HR phone screening because they tried arguing with the interviewer that Linux was not Unix, but was Unix-like (a sign that the interviewee clearly knew the one-word _expected_ answer that was on the interviewer's answer key). Just answer the very simple question and move on, instead of trying to show off or whatever. Part of functioning in the workplace means communicating effectively and professionally (by not being condescending, for example) with other people that may have different skill sets. The best engineers are very cognizant of this.