PHP Code:
$foo false;
$bar true;
if (
$foo && $bar) {

Since the order there is "if $foo AND $bar", does the parser stop processing the if statement when it concludes $foo is false, or will it also evaluate $bar regardless? If $foo is false, then it doesn't matter what $bar is, the whole statement resolves to false, so I wonder if the parser realises this.

I'd also be interested to know if this is the same for Javascript if anyone knows.