3v4l.org

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