3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today_day = 28; $day = date("d-m-Y", mktime(0,0,0,2, $today_day,date("Y"))); $firstday = $day; $data_exploded=explode("-", $firstday); $mes = $data_exploded[1]; $ano = $data_exploded[2]; echo "firstday=$firstday\n"; echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo $day ."\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
firstday=28-02-2014 m=02 | Y=2014 28-02-2014 m=02 | Y=2014 01-03-2014 02-03-2014

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:
53.15 ms | 401 KiB | 8 Q