3v4l.org

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