3v4l.org

run code in 300+ PHP versions simultaneously
<?php function AlphabetSoup($str) { $arr = str_split($str, 1); $sorted = sort($arr); $imp = implode($sorted); return $imp; } echo AlphabetSoup('hfgdjsnidij');

preferences:
34.01 ms | 402 KiB | 5 Q