So I have something like the following:
$a = 3; $b = 4; $c = 5; $d = 6;
and I run a comparison like
if($a>$b || $c>$d
It's not possible, but you could use a function instead. Of course, you'd have to define them yourself. This would be fairly simple using PHP 5.3's closures:
$or = function($x, $y) { return $x || $y; }; if ($or($a > $b, $c > $d)) { echo 'yes'; };