3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_COLLATE, 'si'); $m = array('Žunkovič', 'Červ', 'Milanka', 'Bojanja'); var_dump($m); sort($m, SORT_LOCALE_STRING); var_dump($m); $coll = collator_create('sl_SL'); $coll->sort($m); var_dump($m);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> string(10) "Žunkovič" [1]=> string(5) "Červ" [2]=> string(7) "Milanka" [3]=> string(7) "Bojanja" } array(4) { [0]=> string(7) "Bojanja" [1]=> string(7) "Milanka" [2]=> string(5) "Červ" [3]=> string(10) "Žunkovič" } array(4) { [0]=> string(7) "Bojanja" [1]=> string(5) "Červ" [2]=> string(7) "Milanka" [3]=> string(10) "Žunkovič" }

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