3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fn() { echo 'fn'; return true; } $v = false or fn(); var_dump($v); $v = false || fn(); var_dump($v);
Output for 4.3.0 - 7.1.0
fnbool(false) fnbool(true)