3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $curtime = '1750'; var_dump($curtime); $trading_hour['AT_open'] = '1715'; $trading_hour['AT_close'] = '0100'; if ($curtime <= '0100' || ($curtime >= '0830' && $curtime <= '2359')) { if ($curtime >= $trading_hour['AT_open'] || $curtime <= $trading_hour['AT_close']) { echo 'AT'; } else { echo 'N'; } }
Output for 5.2.6
string(4) "1750" AT