3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ' \leftarrow \longleftarrow \uparrow \Leftarrow \Longleftarrow \Uparrow \rightarrow \longrightarrow \downarrow \Rightarrow \Longrightarrow \Downarrow \leftrightarrow \longleftrightarrow \updownarrow \Leftrightarrow \Longleftrightarrow \Updownarrow \mapsto \longmapsto \nearrow \hookleftarrow \hookrightarrow \searrow \leftharpoonup \rightharpoonup \swarrow \leftharpoondown \rightharpoondown \nwarrow \rightleftharpoons \leadsto$^b$ '; $x = array_filter(preg_split('/\s+/', $x)); sort($x); foreach ($x as $xx) { var_export($xx);echo ",\n"; }
based on N6bjN
Output for 5.3.21 - 7.2.0
'\\Downarrow', '\\Leftarrow', '\\Leftrightarrow', '\\Longleftarrow', '\\Longleftrightarrow', '\\Longrightarrow', '\\Rightarrow', '\\Uparrow', '\\Updownarrow', '\\downarrow', '\\hookleftarrow', '\\hookrightarrow', '\\leadsto$^b$', '\\leftarrow', '\\leftharpoondown', '\\leftharpoonup', '\\leftrightarrow', '\\longleftarrow', '\\longleftrightarrow', '\\longmapsto', '\\longrightarrow', '\\mapsto', '\\nearrow', '\\nwarrow', '\\rightarrow', '\\rightharpoondown', '\\rightharpoonup', '\\rightleftharpoons', '\\searrow', '\\swarrow', '\\uparrow', '\\updownarrow',