3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mission_type = 0; $start_dttm = ($mission_type == 0) ? strtotime("last Monday") : strtotime("last Friday"); // 리그 시작 일자 $end_dttm = ($mission_type == 0) ? strtotime("next Tuesday") : strtotime("next Thursday"); // 리그 종료 일자 // echo strtotime("last Monday"); // echo time(); // echo date('ymd', strtotime("this Tuesday")); // echo '<br>'; // echo date('ymd', strtotime("next Tuesday")); // echo '<br>'; // echo date('ymd', $start_dttm); // echo strtotime("this Tuesday"); // echo strtotime("next Tuesday"); $nextTuesday = strtotime('next wednesday'); $weekNo = date('W'); $weekNoNextTuesday = date('W', $nextTuesday); echo $nextTuesday; echo $weekNo; echo $weekNoNextTuesday; if ($weekNoNextTuesday != $weekNo) { //past tuesday echo 0; } else { echo 1; }
Output for git.master, git.master_jit, rfc.property-hooks
149920560027271

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.26 ms | 401 KiB | 8 Q