3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dia = date("l"); $hora_actual = explode(":", date("H:i")); var_dump($hora); $hora = intval($hora_actual[0]); $minuto = intval($hora_actual[1]); if ( ($dia == "Thursday") && ($hora >= 3 && $hora <= 4) && ($minuto >= 30 && $minuto <= 59) ) { print("\nTRUE");} else { print("\nFALSE"); } ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: hora in /in/JLaJa on line 4 NULL FALSE
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: hora in /in/JLaJa on line 4 NULL FALSE