3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function x() { echo "HELLO "; return true; } function y() { echo "GOOD BYE "; return true; } } $a = new foo; if ($a->x() || $a->y()) { echo " :)"; }
Output for 4.3.0 - 7.1.0
HELLO :)