3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(strtotime("now"), 'Russia/Moscow'); echo('date = '.$date."\n"); $date_format = "d.m.Y"; //$dat = $dat->format($date_format); $dat = strtotime('now'); $che = strtotime('31.05.2013 23:59:59'); if($dat >= $che) { echo($dat.' >= '.$che.' меняем баннеры'); }else{ echo($dat.' < '.$che); }

preferences:
38.93 ms | 402 KiB | 5 Q