3v4l.org

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

preferences:
39.98 ms | 402 KiB | 5 Q