3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isCheckInTooSoon($lowerLimit) { //$currentHours = $this->get('TimeService')->getCurrentHour(); $currentHours = date('Hi'); return $currentHours < $lowerLimit; } function isCheckInAfterCheckOutLimit($upperLimit) { //$currentHours = $this->get('TimeService')->getCurrentHour(); $currentHours = date('Hi'); return $currentHours > $upperLimit; } print_r('is it too soon?'); var_dump(isCheckInTooSoon('0815')); print_r('is it too late?'); var_dump(isCheckInAfterCheckOutLimit('2000'));
based on IKQau
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
is it too soon?bool(false) is it too late?bool(false)