3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 's a c dd a'; $bar = str_split(str_replace(' ', '', $foo)); var_dump($bar);

preferences:
61.71 ms | 402 KiB | 5 Q