3v4l.org

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

preferences:
75.5 ms | 1130 KiB | 5 Q