3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ' \textasciicircum < \textless ˜ \textasciitilde a ª \textordfeminine * * \textasteriskcentered o º \textordmasculine ∖ \textbackslash ¶ ¶ \textparagraph† | \textbar · · \textperiodcentered ‖ † \textbardbl % ˜ \textpertenthousand ○ O \textbigcircle % ‰ \textperthousand { \textbraceleft† ¿ \textquestiondown } \textbraceright† “ \textquotedblleft ∙ • \textbullet ” \textquotedblright ○c © \textcopyright† ‘ \textquoteleft † † \textdagger† ’ \textquoteright ‡ ‡ \textdaggerdbl† r○ ® \textregistered $ $ \textdollar† S § \textsection† . . . \textellipsis† $ $ \textsterling† — \textemdash TM ™ \texttrademark – \textendash \textunderscore† ¡ \textexclamdown \textvisiblespace > \textgreater '; $x = array_filter(preg_split('/\s+/', $x)); usort($x, function ($a, $b) { return strcmp(strtolower($a), strtolower($b)); }); foreach ($x as $xx) { echo $xx, "\n"; }

preferences:
47.38 ms | 402 KiB | 5 Q