3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'); $str = ltrim(strrev(chunk_split(implode(array_reverse($arr)), 3, ';')), ';'); echo $str;

preferences:
48.15 ms | 2629 KiB | 5 Q