3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('+2 days'); $period = new DatePeriod($start, new DateInterval('P2D'), 9); foreach ($period as $date) { $dow = (int)$date->format('w'); if ($dow != 0 && $dow != 6) { $days[$date->format('U')] = $date->format('l, jS M'); } } print_r($days); $days = array(); $period = new DatePeriod($start, new DateInterval('P1D'), 9); foreach ($period as $date) { $dow = (int)$date->format('w'); if ($dow != 0 && $dow != 6) { $days[$date->format('U')] = $date->format('l, jS M'); } } print_r($days);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1548198046] => Wednesday, 23rd Jan [1548370846] => Friday, 25th Jan [1548716446] => Tuesday, 29th Jan [1548889246] => Thursday, 31st Jan [1549234846] => Monday, 4th Feb [1549407646] => Wednesday, 6th Feb [1549580446] => Friday, 8th Feb ) Array ( [1548198046] => Wednesday, 23rd Jan [1548284446] => Thursday, 24th Jan [1548370846] => Friday, 25th Jan [1548630046] => Monday, 28th Jan [1548716446] => Tuesday, 29th Jan [1548802846] => Wednesday, 30th Jan [1548889246] => Thursday, 31st Jan [1548975646] => Friday, 1st Feb )

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:
35.29 ms | 402 KiB | 8 Q