3v4l.org

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