3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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"; }
based on pJ2Ua
Output for 7.0.0 - 7.2.0
$ $ $ $ % % * * . . . < > \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.3.21 - 5.6.28
$ $ $ $ % % * * . . . < > \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