3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dia = date("l"); $hora_actual = explode(":", date("H:i")); var_dump($hora_actual); $hora = intval($hora_actual[0]); $minuto = intval($hora_actual[1]); if ( ($dia == "Thursday") && ($hora >= 3 && $hora <= 4) && ($minuto >= 20 && $minuto <= 05) ) { print("\nTRUE");} else { print("\nFALSE"); } ?>
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(2) "02" [1]=> string(2) "57" } FALSE