3v4l.org

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