3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $magic = 1; function getFalse() { global $magic; $magic = 2; return false; } $a = false && getFalse(); var_dump($a); $b = true && getFalse(); var_dump($b);
Output for 4.3.0 - 7.1.0
bool(false) bool(false)