3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = ['20240228', '20240229', '20240301']; $groups = []; foreach ($dates as $date) { $date = new DateTime($date); $groups[$date->format('F')][] = $date->format('j'); } echo implode( ' & ', array_map( fn($j, $F) => implode(', ', $j) . " $F", $groups, array_keys($groups) ) );
Output for git.master, git.master_jit, rfc.property-hooks
28, 29 February & 1 March

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