3v4l.org

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