3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_COLLATE, 'si'); $m = array('Žunko', 'Červ', 'Igor', 'Uroš'); 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(4) "Igor" [3]=> string(5) "Uroš" } array(4) { [0]=> string(4) "Igor" [1]=> string(5) "Uroš" [2]=> string(5) "Červ" [3]=> string(6) "Žunko" } array(4) { [0]=> string(5) "Červ" [1]=> string(4) "Igor" [2]=> string(5) "Uroš" [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:
40.14 ms | 402 KiB | 8 Q