3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function destroy_the_world() { echo "BOooM, it's g0ne!\n"; /* rm -rf etc */ } function check_if_we_should_destroy_the_world() { return false; /* meh, it's not time yet */ } echo "&&\n"; if(check_if_we_should_destroy_the_world() && destroy_the_world()) {} echo "and\n"; if(check_if_we_should_destroy_the_world() and destroy_the_world()) {}
Output for 4.3.0 - 7.1.0
&& and