3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 11 => [ 4 => 'apr11timetable.php', 8 => 'aug11timetable.php', 6 => 'jun11timetable.php', 11 => 'nov11timetable.php', 10 => 'oct11timetable.php' ], 12 => [ 4 => 'apr12timetable.php', 8 => 'aug12timetable.php', 2 => 'feb12timetable.php', 6 => 'jun12timetable.php', 10 => 'oct12timetable.php' ] ]; krsort($array); array_walk($array, fn(&$v) => krsort($v)); var_export($array);
Output for git.master, git.master_jit
array ( 12 => array ( 10 => 'oct12timetable.php', 8 => 'aug12timetable.php', 6 => 'jun12timetable.php', 4 => 'apr12timetable.php', 2 => 'feb12timetable.php', ), 11 => array ( 11 => 'nov11timetable.php', 10 => 'oct11timetable.php', 8 => 'aug11timetable.php', 6 => 'jun11timetable.php', 4 => 'apr11timetable.php', ), )

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:
45.11 ms | 406 KiB | 5 Q