3v4l.org

run code in 200+ PHP versions simultaneously
<?php $arr = [ 'lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing', 'elit', ]; shuffle($arr); $result = implode(' ', $arr); echo $result;
based on riuYc
Output for 7.4.1
ipsum elit lorem consectetur amet adipiscing sit dolor
Output for 7.4.0
dolor ipsum consectetur adipiscing elit lorem sit amet
Output for 7.3.13
elit consectetur adipiscing dolor sit ipsum lorem amet
Output for 7.3.12
consectetur ipsum adipiscing elit sit amet dolor lorem
Output for 7.2.10, 7.3.8, 7.3.11
ipsum sit dolor adipiscing consectetur lorem amet elit
Output for 7.3.10
dolor lorem elit consectetur sit adipiscing ipsum amet
Output for 7.3.9
dolor sit lorem adipiscing consectetur ipsum amet elit
Output for 7.2.1, 7.3.7
sit consectetur ipsum adipiscing dolor lorem elit amet
Output for 7.3.6
dolor amet ipsum sit lorem elit adipiscing consectetur
Output for 7.3.5
adipiscing elit ipsum sit lorem amet dolor consectetur
Output for 7.3.4
sit ipsum adipiscing elit consectetur amet lorem dolor
Output for 7.3.3
ipsum lorem consectetur sit elit amet adipiscing dolor
Output for 7.3.2
lorem ipsum consectetur dolor amet adipiscing sit elit
Output for 7.3.1
elit dolor sit ipsum consectetur lorem amet adipiscing
Output for 7.3.0
dolor sit consectetur amet lorem elit adipiscing ipsum
Output for 7.2.26
elit adipiscing amet consectetur sit lorem ipsum dolor
Output for 7.2.25
lorem ipsum sit consectetur amet adipiscing elit dolor
Output for 7.2.24
dolor elit consectetur amet sit adipiscing ipsum lorem
Output for 7.2.23
sit adipiscing lorem amet ipsum consectetur elit dolor
Output for 7.2.22
elit dolor sit ipsum lorem amet consectetur adipiscing
Output for 7.2.21
adipiscing amet consectetur elit dolor ipsum lorem sit
Output for 7.2.20
adipiscing ipsum consectetur sit dolor lorem elit amet
Output for 7.2.19
lorem consectetur adipiscing amet elit sit ipsum dolor
Output for 7.2.18
adipiscing lorem dolor amet consectetur ipsum sit elit
Output for 7.2.17
amet adipiscing elit consectetur dolor ipsum lorem sit
Output for 7.2.16
amet lorem elit ipsum sit consectetur adipiscing dolor
Output for 7.2.15
consectetur dolor amet ipsum lorem elit sit adipiscing
Output for 7.2.14
amet consectetur dolor lorem adipiscing elit ipsum sit
Output for 7.2.13
amet elit consectetur sit lorem dolor adipiscing ipsum
Output for 7.2.12
elit amet sit dolor adipiscing ipsum lorem consectetur
Output for 7.2.11
adipiscing elit amet dolor ipsum consectetur lorem sit
Output for 7.2.9
lorem ipsum sit dolor adipiscing consectetur amet elit
Output for 7.2.8
ipsum adipiscing lorem dolor elit sit amet consectetur
Output for 7.2.7
consectetur ipsum adipiscing lorem elit amet dolor sit
Output for 7.2.6
dolor sit adipiscing consectetur lorem ipsum elit amet
Output for 7.2.5
amet ipsum consectetur dolor lorem sit adipiscing elit
Output for 7.2.4
dolor elit adipiscing lorem amet consectetur sit ipsum
Output for 7.2.3
elit amet ipsum dolor sit lorem consectetur adipiscing
Output for 7.2.2
consectetur amet elit ipsum adipiscing dolor lorem sit
Output for 7.2.0
lorem amet elit dolor sit consectetur adipiscing ipsum