3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2018-05-01 11:30:00'); var_dump(($date->format('H') == '05' || $date->format('H') == '12') && ((int)$date->format('i') < 30)); $date = new DateTime('2018-05-01 12:30:01'); var_dump(($date->format('H') == '05' || $date->format('H') == '12') && ((int)$date->format('i') < 30));
based on C0RSW
Output for 5.6.0 - 5.6.30, hhvm-3.22.0, 7.1.0 - 7.3.0rc3
bool(false) bool(false)