3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $formattedTime = intval(date("Hi", 1429243145)); $curfew = intval(date("Hi", strtotime('20:00'))); //'H' will get the hour of the time from 0-23, intval will convert that to an integer if($formattedTime > $curfew) { echo "You are past the curfew time"; } else { echo "Success"; } echo "\n$formattedTime:$curfew";
based on PC6eu
Output for 4.3.0 - 7.2.0
Success 559:2000