3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ '2023-02-04 14:00:00', '2023-01-08 12:00:00', '2023-01-03 12:00:00', '2023-01-03 12:00:00', '2021-01-03 12:00:00', '2023-01-05 14:00:00', '2024-01-03 12:00:00', '2023-01-03 12:00:00', ]; $coll = Collator::create('de'); $coll->asort($arr, Collator::SORT_REGULAR); echo json_encode($arr, JSON_PRETTY_PRINT);
Output for git.master_jit, git.master, rfc.property-hooks
{ "4": "2021-01-03 12:00:00", "0": "2023-02-04 14:00:00", "1": "2023-01-08 12:00:00", "2": "2023-01-03 12:00:00", "3": "2023-01-03 12:00:00", "5": "2023-01-05 14:00:00", "7": "2023-01-03 12:00:00", "6": "2024-01-03 12:00:00" }

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