3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $click_num = 486; $oddNumber = ($click_num & 1) == 1 ? true : false; $evenNumber = ($click_num & 1) == 0 ? true : false; $tenTimes = ($click_num % 10) == 0 ? true : false; $multiple30 = ($click_num % 50) == 0 ? true : false; $multiple150 = ($click_num % 200) == 0 ? true : false; $multiple1500 = ($click_num % 1500) == 0 ? true : false; var_dump($oddNumber, $evenNumber, $tenTimes, $multiple30, $multiple150, $multiple1500);
based on vUnm2
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
bool(false) bool(true) bool(false) bool(false) bool(false) bool(false)