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"; check_if_we_should_destroy_the_world() && destroy_the_world(); 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
&& & BOooM, it's g0ne! and