 if (($a == $b)
  && ($b == $c)
  || (MyClass::myFunction() == $d)
 ) {
  $a = $d;
 }