function er() {
date_default_timezone_set('Europe/Moscow');
$currentTime = date("H:i");
$list = schedule();
$id = 0;
foreach ($list as $key => $val) {
if(strtotime($currentTime) > strtotime($key)) {
$id = $key;
continue;
}
return( $list[$id] );
}
print_r( current( $list[$id] ) );
}