The performance aspect is absolutely irrelevant.
As PHP Bench shows, even with 1000 operations, the difference between them is about 188 microseconds, which is 188 millionths of a second. PHP code usually has much larger bottlenecks: a single database call often takes tens of milliseconds, which is tens of thousands of times larger.
Use what you like and depending on what is best for your readability of the code - for many checks, most likely switch .
source share