3v4l.org

run code in 300+ PHP versions simultaneously
<?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";

preferences:
44.61 ms | 402 KiB | 5 Q