3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ' \Downarrow \Leftarrow \Leftrightarrow \Longleftarrow \Longleftrightarrow \Longrightarrow \Rightarrow \Uparrow \Updownarrow \downarrow \hookleftarrow \hookrightarrow \leftarrow \leftharpoondown \leftharpoonup \leftrightarrow \longleftarrow \longleftrightarrow \longmapsto \longrightarrow \mapsto \nearrow \nwarrow \rightarrow \rightharpoondown \rightharpoonup \rightleftharpoons \searrow \swarrow \uparrow \updownarrow '; $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 Hql5g
Output for 7.0.0 - 7.2.0
\Downarrow \downarrow \hookleftarrow \hookrightarrow \Leftarrow \leftarrow \leftharpoondown \leftharpoonup \leftrightarrow \Leftrightarrow \Longleftarrow \longleftarrow \longleftrightarrow \Longleftrightarrow \longmapsto \longrightarrow \Longrightarrow \mapsto \nearrow \nwarrow \Rightarrow \rightarrow \rightharpoondown \rightharpoonup \rightleftharpoons \searrow \swarrow \uparrow \Uparrow \Updownarrow \updownarrow
Output for 5.3.21 - 5.6.28
\Downarrow \downarrow \hookleftarrow \hookrightarrow \leftarrow \Leftarrow \leftharpoondown \leftharpoonup \leftrightarrow \Leftrightarrow \longleftarrow \Longleftarrow \Longleftrightarrow \longleftrightarrow \longmapsto \longrightarrow \Longrightarrow \mapsto \nearrow \nwarrow \rightarrow \Rightarrow \rightharpoondown \rightharpoonup \rightleftharpoons \searrow \swarrow \uparrow \Uparrow \updownarrow \Updownarrow