3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello World'; $strArray=explode(" ", $str); $strArray=array_reverse($strArray); $str=implode($strArray, " "); echo $str;

preferences:
24.65 ms | 406 KiB | 5 Q