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"; } } do("8:00", "5:00", "10:00");
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected ',' in /in/WK6tm on line 16
Process exited with code 255.

preferences:
183.49 ms | 1395 KiB | 66 Q