3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "this is a long test"; $arr = []; $len = strlen($text); for($i = 0; $i++; $i <$len) { $arr[] = $text[$i]; } var_dump($arr);

preferences:
46.4 ms | 402 KiB | 5 Q