3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sunday = new DateTimeImmutable('Sunday'); for ($dow = 0; $dow <= 6; $dow++) { $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:
72.8 ms | 405 KiB | 5 Q