3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ' \$ \_ \copyright \dag \ddag \dots \P \pounds \S \{ \} \# '; $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:
35.57 ms | 402 KiB | 5 Q