3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 1456034400; $firstDay = strtotime('first Sunday of '.date('M',$time).' '.date('Y', $time)); $lastDay = mktime(0,0,0,date('m',$time)+1,1,date('Y', $time)); $weekdays = array(); for ($i = $firstDay; $i < $lastDay; $i += 7*24*3600){ $weekdays[] = date('d',$i); } var_dump($weekdays);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(2) "07" [1]=> string(2) "14" [2]=> string(2) "21" [3]=> string(2) "28" }

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