3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function buy() { return true; } function pay() { echo "Yes Please"; } function nothanks() { echo "No Thanks"; } if (buy() === false) { pay(); } else { nothanks(); }
based on N5iZa
Output for 4.3.0 - 7.2.0
No Thanks