3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array("G\xediron", // &iacute; (Latin-1) "G\xc3\xb3nzales", // &oacute; (UTF-8) "G\xc3\xa9 ara", // &eacute; (UTF-8) "G\xe1rcia"); // &aacute; (Latin-1) asort($arr, SORT_REGULAR); var_dump($arr);
based on uHgRG
Output for 4.3.0 - 7.2.0
array(4) { [2]=> string(7) "Gé ara" [1]=> string(9) "Gónzales" [3]=> string(6) "G�rcia" [0]=> string(6) "G�iron" }