3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { print("A"); return true; } function b() { print("B"); return false; } var_dump((boolean)(intval(a()) | intval(b()))); var_dump((boolean)(intval(a()) & intval(b())));