3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_COLLATE, 'si'); $m = array('Žunko', 'Č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(6) "Žunko" [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(6) "Žunko" } array(4) { [0]=> string(7) "Bojanja" [1]=> string(5) "Červ" [2]=> string(7) "Milanka" [3]=> string(6) "Žunko" }

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