3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doo($start, $end, $noow){ //Check if we are within the set time $start = Date("Hi", strtotime($start)); $end = Date("Hi", strtotime($end)); $now = Date("Hi", strtotime($now)); if($start < $now && $end > $now){ //We need to validate before sending. echo "Good"; } } doo("8:00", "5:00", "10:00");

preferences:
37.95 ms | 402 KiB | 5 Q