3v4l.org

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

preferences:
38.62 ms | 402 KiB | 5 Q