3v4l.org

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

preferences:
27.46 ms | 477 KiB | 4 Q