3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sunday = new DateTimeImmutable('Sunday'); foreach(new DatePeriod($sunday, new DateInterval('P1D'), 6) as $date) { $dow = $date->format('w'); $weekday = $sunday->add(new DateInterval('P' . $dow . 'D')); printf('%s = %s (%s)' . PHP_EOL, $dow, $weekday->format('l'), $weekday->format('D')); }
Output for git.master, git.master_jit, rfc.property-hooks
0 = Sunday (Sun) 1 = Monday (Mon) 2 = Tuesday (Tue) 3 = Wednesday (Wed) 4 = Thursday (Thu) 5 = Friday (Fri) 6 = Saturday (Sat)

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:
26.88 ms | 405 KiB | 5 Q