PHP suffers from a contempt of the familiar. Lots of programmers of a certain age started off writing PHP poorly before they knew how to properly do their craft (in PHP or otherwise). When you mention PHP, the immediate association for some people is invariably going to be "that really bad PHP 3.5 site I made that one time." Leaving aside any positive or negative points to be made about the language itself, you're dealing with that.
On the other hand, if you work in a generally well regarded but less used language like OCaml IMO you're much more likely to trigger a "huh, I've been meaning to play around with that," or maybe a "gee, if you could pick up an ML while interning you must be pretty adaptable." The relative obscurity might even work in your favor if the person interviewing you is familiar with The Blub Paradox[0] and suspects OCaml might be higher up the language power continuum than the languages they know and you get cred for being a language wonk.
Except in the many thousands of companies that are looking for PHP programmers, where not having it on a resume is damaging.
(I'm in a "microservices architecture" (their word, not mine; I find it cringey, but eh) org where we're expected to deliver features as REST APIs, programming language be damned.)