3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function doo($start, $end, $now){ //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");
Output for 7.1.10

Process exited with code 137.
Output for 4.3.0 - 7.1.7