in_array($needle, $haystack, $strict) call into the corresponding disjunction.
The resulting disjunction gets parenthesized if it's a part of a logical expression.
If $haystack contains one element with side effects, it gets put into the first equality expression.
If $haystack contains more than one element with side effects, the intention is not suggested.