3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('abergabe', 'àstfriesland', 'épfel', 'fnterführung', 'epfel', 'çsterreich', 'Atest', 'Etest'); var_dump(setlocale(LC_COLLATE, 'fr_FR.UTF-8')); usort($array, 'strcoll'); var_dump($array);
Output for 4.3.0 - 7.1.0
bool(false) array(8) { [0]=> string(5) "Atest" [1]=> string(5) "Etest" [2]=> string(8) "abergabe" [3]=> string(5) "epfel" [4]=> string(13) "fnterführung" [5]=> string(13) "àstfriesland" [6]=> string(11) "çsterreich" [7]=> string(6) "épfel" }