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"; }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
$ $ $ $ % % * * . . . < > \textasciicircum \textasciitilde \textasteriskcentered \textbackslash \textbar \textbardbl \textbigcircle \textbraceleft† \textbraceright† \textbullet \textcopyright† \textdaggerdbl† \textdagger† \textdollar† \textellipsis† \textemdash \textendash \textexclamdown \textgreater \textless \textordfeminine \textordmasculine \textparagraph† \textperiodcentered \textpertenthousand \textperthousand \textquestiondown \textquotedblleft \textquotedblright \textquoteleft \textquoteright \textregistered \textsection† \textsterling† \texttrademark \textunderscore† \textvisiblespace a o O r○ S TM { | } † ˜ ¡ § © ª ® ¶ ¶ · · º ¿ ˜ – — ‖ ‘ ’ “ ” † † ‡ ‡ • ‰ ™ ∖ ∙ ○ ○c
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
$ $ $ $ % % * * . . . < > \textasciicircum \textasciitilde \textasteriskcentered \textbackslash \textbar \textbardbl \textbigcircle \textbraceleft† \textbraceright† \textbullet \textcopyright† \textdaggerdbl† \textdagger† \textdollar† \textellipsis† \textemdash \textendash \textexclamdown \textgreater \textless \textordfeminine \textordmasculine \textparagraph† \textperiodcentered \textpertenthousand \textperthousand \textquestiondown \textquotedblleft \textquotedblright \textquoteleft \textquoteright \textregistered \textsection† \textsterling† \texttrademark \textunderscore† \textvisiblespace a O o r○ S TM { | } † ˜ ¡ § © ª ® ¶ ¶ · · º ¿ ˜ – — ‖ ‘ ’ “ ” † † ‡ ‡ • ‰ ™ ∖ ∙ ○ ○c

preferences:
250.14 ms | 403 KiB | 334 Q