3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = strtotime(date('2018-02-09')); $ym = strtotime(date('Y-m')); $day_count = date('t'); for ( $day = 1; $day <= $day_count; $day++) { $date = strtotime(date($ym.'-'.$day)); if ($today == $date) { echo "today \r\n"; echo $date. "\r\n"; echo $today. "\r\n"; } elseif ($today > $date) { echo "PAST \r\n"; echo $date. "\r\n"; echo $today. "\r\n"; } else { echo "FUTURE \r\n"; echo $date. "\r\n"; echo $today. "\r\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
FUTURE 240779571463 1518130800 FUTURE 240782249863 1518130800 FUTURE 240784755463 1518130800 FUTURE 240787430263 1518130800 FUTURE 240790022263 1518130800 FUTURE 240792700663 1518130800 FUTURE 240795292663 1518130800 FUTURE 240797971063 1518130800 FUTURE 240800649463 1518130800 FUTURE 240803241463 1518130800 FUTURE 240805923463 1518130800 FUTURE 240808515463 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800 PAST 1518130800

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:
151.93 ms | 407 KiB | 5 Q