3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = date('Y'); $month = date('m'); $day = date('d'); $w = date('w', mktime(12, 00, 00, $month, $day, $year)); $start_day = 5;//($mission_type == 0) ? 2 : 5; // 대회 시작 요일 $start_dttm = mktime(0, 0, 0, $month, ($day - $w + ($start_day + 7)), $year); // 다음 대회 시작 일시 echo $start_dttm;

preferences:
38.93 ms | 402 KiB | 5 Q