3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $click_num = 20; $oddNumber = ($click_num & 1) == 1 ? true : false; $evenNumber = ($click_num & 1) == 0 ? true : false; $tenTimes = ($click_num % 10) == 0 ? true : false; $multiple30 = ($click_num % 30) == 0 ? true : false; $multiple150 = ($click_num % 150) == 0 ? true : false; $multiple1500 = ($click_num % 1500) == 0 ? true : false; var_dump($oddNumber); var_dump($evenNumber); var_dump($tenTimes); var_dump($multiple30); var_dump($multiple150); var_dump($multiple1500);
based on dA8pX
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(true) bool(false) bool(false) bool(false)