3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h = date('G'); //set variable $h to the hour of the day $d = date('w'); //set variable $d to the day of the week $m = date('i'); //set variable $m to minute of the hour $dd = date('wHi'); var_dump($h); var_dump($d); var_dump($m); var_dump($dd); if (($dd > 40830) && ($dd < 61730)) { echo "we are open"; }
based on FpvkZ
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(2) "10" string(1) "3" string(2) "35" string(5) "31035"