3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "ابجد"; $split = mb_str_split($input); $reversed = array_reverse($split); print_r($reversed);

preferences:
35.54 ms | 406 KiB | 5 Q