3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $numbers = range(1, 59); shuffle($numbers); var_dump(array_slice($numbers, 0, 3));
Output for 7.1.0
array(3) { [0]=> int(31) [1]=> int(13) [2]=> int(35) }
Output for 7.0.14
array(3) { [0]=> int(14) [1]=> int(24) [2]=> int(27) }
Output for 7.0.11
array(3) { [0]=> int(45) [1]=> int(4) [2]=> int(40) }
Output for 7.0.10
array(3) { [0]=> int(47) [1]=> int(1) [2]=> int(37) }
Output for 7.0.9
array(3) { [0]=> int(18) [1]=> int(33) [2]=> int(7) }
Output for 7.0.8
array(3) { [0]=> int(5) [1]=> int(28) [2]=> int(53) }
Output for 7.0.7
array(3) { [0]=> int(38) [1]=> int(37) [2]=> int(35) }
Output for 7.0.6
array(3) { [0]=> int(6) [1]=> int(49) [2]=> int(12) }
Output for 7.0.5
array(3) { [0]=> int(3) [1]=> int(42) [2]=> int(7) }
Output for 7.0.4
array(3) { [0]=> int(3) [1]=> int(10) [2]=> int(12) }
Output for 7.0.3
array(3) { [0]=> int(52) [1]=> int(47) [2]=> int(25) }
Output for 7.0.2
array(3) { [0]=> int(58) [1]=> int(32) [2]=> int(11) }
Output for 7.0.1
array(3) { [0]=> int(30) [1]=> int(26) [2]=> int(5) }
Output for 7.0.0
array(3) { [0]=> int(12) [1]=> int(31) [2]=> int(30) }
Output for 5.6.26
array(3) { [0]=> int(14) [1]=> int(47) [2]=> int(30) }
Output for 5.6.25
array(3) { [0]=> int(12) [1]=> int(13) [2]=> int(40) }
Output for 5.6.24
array(3) { [0]=> int(7) [1]=> int(15) [2]=> int(32) }
Output for 5.6.23
array(3) { [0]=> int(48) [1]=> int(55) [2]=> int(54) }
Output for 5.6.22
array(3) { [0]=> int(18) [1]=> int(56) [2]=> int(39) }
Output for 5.6.21
array(3) { [0]=> int(51) [1]=> int(9) [2]=> int(35) }
Output for 5.6.20
array(3) { [0]=> int(23) [1]=> int(32) [2]=> int(54) }
Output for 5.6.19
array(3) { [0]=> int(13) [1]=> int(6) [2]=> int(42) }
Output for 5.6.18
array(3) { [0]=> int(2) [1]=> int(57) [2]=> int(36) }
Output for 5.6.17
array(3) { [0]=> int(3) [1]=> int(16) [2]=> int(36) }
Output for 5.6.16
array(3) { [0]=> int(8) [1]=> int(21) [2]=> int(10) }
Output for 5.6.15
array(3) { [0]=> int(54) [1]=> int(13) [2]=> int(53) }
Output for 5.6.14
array(3) { [0]=> int(20) [1]=> int(46) [2]=> int(42) }
Output for 5.6.13
array(3) { [0]=> int(23) [1]=> int(37) [2]=> int(27) }
Output for 5.6.12
array(3) { [0]=> int(40) [1]=> int(14) [2]=> int(36) }
Output for 5.6.11
array(3) { [0]=> int(30) [1]=> int(11) [2]=> int(55) }
Output for 5.6.10
array(3) { [0]=> int(31) [1]=> int(24) [2]=> int(4) }
Output for 5.6.9
array(3) { [0]=> int(7) [1]=> int(56) [2]=> int(36) }
Output for 5.6.8
array(3) { [0]=> int(16) [1]=> int(40) [2]=> int(44) }
Output for 5.6.7
array(3) { [0]=> int(55) [1]=> int(56) [2]=> int(33) }
Output for 5.6.6
array(3) { [0]=> int(8) [1]=> int(27) [2]=> int(34) }
Output for 5.6.5
array(3) { [0]=> int(17) [1]=> int(51) [2]=> int(8) }
Output for 5.6.4
array(3) { [0]=> int(29) [1]=> int(21) [2]=> int(30) }
Output for 5.6.3
array(3) { [0]=> int(52) [1]=> int(10) [2]=> int(24) }
Output for 5.6.2
array(3) { [0]=> int(45) [1]=> int(31) [2]=> int(9) }
Output for 5.6.1
array(3) { [0]=> int(10) [1]=> int(36) [2]=> int(57) }
Output for 5.6.0
array(3) { [0]=> int(5) [1]=> int(13) [2]=> int(48) }
Output for 5.5.38
array(3) { [0]=> int(45) [1]=> int(52) [2]=> int(33) }
Output for 5.5.37
array(3) { [0]=> int(53) [1]=> int(40) [2]=> int(8) }
Output for 5.5.36
array(3) { [0]=> int(32) [1]=> int(28) [2]=> int(53) }
Output for 5.5.35
array(3) { [0]=> int(38) [1]=> int(13) [2]=> int(27) }
Output for 5.5.34
array(3) { [0]=> int(50) [1]=> int(6) [2]=> int(28) }
Output for 5.5.33
array(3) { [0]=> int(17) [1]=> int(9) [2]=> int(1) }
Output for 5.5.32
array(3) { [0]=> int(8) [1]=> int(18) [2]=> int(38) }
Output for 5.5.31
array(3) { [0]=> int(34) [1]=> int(30) [2]=> int(26) }
Output for 5.5.30
array(3) { [0]=> int(26) [1]=> int(30) [2]=> int(49) }
Output for 5.5.29
array(3) { [0]=> int(52) [1]=> int(55) [2]=> int(50) }
Output for 5.5.28
array(3) { [0]=> int(6) [1]=> int(47) [2]=> int(5) }
Output for 5.5.27
array(3) { [0]=> int(14) [1]=> int(2) [2]=> int(40) }
Output for 5.5.26
array(3) { [0]=> int(11) [1]=> int(56) [2]=> int(59) }
Output for 5.5.25
array(3) { [0]=> int(24) [1]=> int(32) [2]=> int(31) }
Output for 5.5.24
array(3) { [0]=> int(16) [1]=> int(48) [2]=> int(20) }
Output for 5.5.23
array(3) { [0]=> int(19) [1]=> int(49) [2]=> int(43) }
Output for 5.5.22
array(3) { [0]=> int(11) [1]=> int(40) [2]=> int(28) }
Output for 5.5.21
array(3) { [0]=> int(9) [1]=> int(7) [2]=> int(42) }
Output for 5.5.20
array(3) { [0]=> int(15) [1]=> int(34) [2]=> int(41) }
Output for 5.5.19
array(3) { [0]=> int(11) [1]=> int(16) [2]=> int(22) }
Output for 5.5.18
array(3) { [0]=> int(57) [1]=> int(56) [2]=> int(27) }
Output for 5.5.16
array(3) { [0]=> int(15) [1]=> int(56) [2]=> int(33) }
Output for 5.5.15
array(3) { [0]=> int(43) [1]=> int(42) [2]=> int(52) }
Output for 5.5.14
array(3) { [0]=> int(35) [1]=> int(37) [2]=> int(48) }
Output for 5.5.13
array(3) { [0]=> int(29) [1]=> int(59) [2]=> int(15) }
Output for 5.5.12
array(3) { [0]=> int(10) [1]=> int(34) [2]=> int(43) }
Output for 5.5.11
array(3) { [0]=> int(34) [1]=> int(53) [2]=> int(11) }
Output for 5.5.10
array(3) { [0]=> int(21) [1]=> int(7) [2]=> int(18) }
Output for 5.5.9
array(3) { [0]=> int(5) [1]=> int(27) [2]=> int(24) }
Output for 5.5.8
array(3) { [0]=> int(38) [1]=> int(51) [2]=> int(28) }
Output for 5.5.7
array(3) { [0]=> int(56) [1]=> int(6) [2]=> int(23) }
Output for 5.5.6
array(3) { [0]=> int(16) [1]=> int(55) [2]=> int(47) }
Output for 5.5.5
array(3) { [0]=> int(21) [1]=> int(15) [2]=> int(3) }
Output for 5.5.4
array(3) { [0]=> int(46) [1]=> int(32) [2]=> int(42) }
Output for 5.5.3
array(3) { [0]=> int(42) [1]=> int(55) [2]=> int(15) }
Output for 5.5.2
array(3) { [0]=> int(58) [1]=> int(10) [2]=> int(25) }
Output for 5.5.1
array(3) { [0]=> int(54) [1]=> int(57) [2]=> int(12) }
Output for 5.5.0
array(3) { [0]=> int(35) [1]=> int(42) [2]=> int(19) }
Output for 5.4.45
array(3) { [0]=> int(51) [1]=> int(43) [2]=> int(53) }
Output for 5.4.44
array(3) { [0]=> int(54) [1]=> int(34) [2]=> int(38) }
Output for 5.4.43
array(3) { [0]=> int(53) [1]=> int(32) [2]=> int(56) }
Output for 5.4.42
array(3) { [0]=> int(4) [1]=> int(27) [2]=> int(58) }
Output for 5.4.41
array(3) { [0]=> int(9) [1]=> int(44) [2]=> int(26) }
Output for 5.4.40
array(3) { [0]=> int(7) [1]=> int(6) [2]=> int(18) }
Output for 5.4.39
array(3) { [0]=> int(17) [1]=> int(43) [2]=> int(46) }
Output for 5.4.38
array(3) { [0]=> int(8) [1]=> int(56) [2]=> int(31) }
Output for 5.4.37
array(3) { [0]=> int(15) [1]=> int(36) [2]=> int(18) }
Output for 5.4.36
array(3) { [0]=> int(49) [1]=> int(32) [2]=> int(6) }
Output for 5.4.35
array(3) { [0]=> int(3) [1]=> int(58) [2]=> int(7) }
Output for 5.4.34
array(3) { [0]=> int(55) [1]=> int(45) [2]=> int(57) }
Output for 5.4.32
array(3) { [0]=> int(37) [1]=> int(52) [2]=> int(50) }
Output for 5.4.31
array(3) { [0]=> int(5) [1]=> int(43) [2]=> int(29) }
Output for 5.4.30
array(3) { [0]=> int(13) [1]=> int(3) [2]=> int(51) }
Output for 5.4.29
array(3) { [0]=> int(16) [1]=> int(7) [2]=> int(18) }
Output for 5.4.28
array(3) { [0]=> int(6) [1]=> int(51) [2]=> int(33) }
Output for 5.4.27
array(3) { [0]=> int(47) [1]=> int(54) [2]=> int(12) }
Output for 5.4.26
array(3) { [0]=> int(40) [1]=> int(52) [2]=> int(50) }
Output for 5.4.25
array(3) { [0]=> int(50) [1]=> int(13) [2]=> int(3) }
Output for 5.4.24
array(3) { [0]=> int(39) [1]=> int(33) [2]=> int(53) }
Output for 5.4.23
array(3) { [0]=> int(11) [1]=> int(32) [2]=> int(23) }
Output for 5.4.22
array(3) { [0]=> int(49) [1]=> int(8) [2]=> int(51) }
Output for 5.4.21
array(3) { [0]=> int(33) [1]=> int(45) [2]=> int(56) }
Output for 5.4.20
array(3) { [0]=> int(36) [1]=> int(20) [2]=> int(26) }
Output for 5.4.19
array(3) { [0]=> int(3) [1]=> int(41) [2]=> int(14) }
Output for 5.4.18
array(3) { [0]=> int(38) [1]=> int(5) [2]=> int(44) }
Output for 5.4.17
array(3) { [0]=> int(56) [1]=> int(8) [2]=> int(25) }
Output for 5.4.16
array(3) { [0]=> int(16) [1]=> int(9) [2]=> int(5) }
Output for 5.4.15
array(3) { [0]=> int(39) [1]=> int(54) [2]=> int(18) }
Output for 5.4.14
array(3) { [0]=> int(18) [1]=> int(8) [2]=> int(49) }
Output for 5.4.13
array(3) { [0]=> int(42) [1]=> int(19) [2]=> int(12) }
Output for 5.4.12
array(3) { [0]=> int(5) [1]=> int(29) [2]=> int(31) }
Output for 5.4.11
array(3) { [0]=> int(9) [1]=> int(32) [2]=> int(39) }
Output for 5.4.10
array(3) { [0]=> int(35) [1]=> int(2) [2]=> int(34) }
Output for 5.4.9
array(3) { [0]=> int(59) [1]=> int(18) [2]=> int(46) }
Output for 5.4.8
array(3) { [0]=> int(7) [1]=> int(18) [2]=> int(36) }
Output for 5.4.7
array(3) { [0]=> int(6) [1]=> int(58) [2]=> int(13) }
Output for 5.4.6
array(3) { [0]=> int(42) [1]=> int(34) [2]=> int(24) }
Output for 5.4.5
array(3) { [0]=> int(28) [1]=> int(6) [2]=> int(4) }
Output for 5.4.4
array(3) { [0]=> int(52) [1]=> int(3) [2]=> int(40) }
Output for 5.4.3
array(3) { [0]=> int(14) [1]=> int(36) [2]=> int(51) }
Output for 5.4.2
array(3) { [0]=> int(16) [1]=> int(25) [2]=> int(22) }
Output for 5.4.1
array(3) { [0]=> int(2) [1]=> int(54) [2]=> int(55) }
Output for 5.4.0
array(3) { [0]=> int(38) [1]=> int(27) [2]=> int(18) }
Output for 5.3.29
array(3) { [0]=> int(18) [1]=> int(52) [2]=> int(40) }
Output for 5.3.28
array(3) { [0]=> int(32) [1]=> int(22) [2]=> int(52) }
Output for 5.3.27
array(3) { [0]=> int(21) [1]=> int(45) [2]=> int(8) }
Output for 5.3.26
array(3) { [0]=> int(17) [1]=> int(9) [2]=> int(56) }
Output for 5.3.25
array(3) { [0]=> int(34) [1]=> int(45) [2]=> int(41) }
Output for 5.3.24
array(3) { [0]=> int(55) [1]=> int(54) [2]=> int(6) }
Output for 5.3.23
array(3) { [0]=> int(51) [1]=> int(37) [2]=> int(31) }
Output for 5.3.22
array(3) { [0]=> int(48) [1]=> int(9) [2]=> int(56) }
Output for 5.3.21
array(3) { [0]=> int(31) [1]=> int(19) [2]=> int(53) }
Output for 5.3.20
array(3) { [0]=> int(19) [1]=> int(33) [2]=> int(49) }
Output for 5.3.19
array(3) { [0]=> int(10) [1]=> int(42) [2]=> int(7) }
Output for 5.3.18
array(3) { [0]=> int(18) [1]=> int(53) [2]=> int(30) }
Output for 5.3.17
array(3) { [0]=> int(34) [1]=> int(45) [2]=> int(15) }
Output for 5.3.16
array(3) { [0]=> int(28) [1]=> int(56) [2]=> int(55) }
Output for 5.3.15
array(3) { [0]=> int(54) [1]=> int(29) [2]=> int(2) }
Output for 5.3.14
array(3) { [0]=> int(7) [1]=> int(20) [2]=> int(39) }
Output for 5.3.13
array(3) { [0]=> int(43) [1]=> int(39) [2]=> int(1) }
Output for 5.3.12
array(3) { [0]=> int(28) [1]=> int(58) [2]=> int(39) }
Output for 5.3.11
array(3) { [0]=> int(32) [1]=> int(24) [2]=> int(20) }
Output for 5.3.10
array(3) { [0]=> int(58) [1]=> int(13) [2]=> int(6) }
Output for 5.3.9
array(3) { [0]=> int(5) [1]=> int(24) [2]=> int(53) }
Output for 5.3.8
array(3) { [0]=> int(35) [1]=> int(1) [2]=> int(22) }
Output for 5.3.7
array(3) { [0]=> int(11) [1]=> int(17) [2]=> int(58) }
Output for 5.3.6
array(3) { [0]=> int(41) [1]=> int(47) [2]=> int(52) }
Output for 5.3.5
array(3) { [0]=> int(26) [1]=> int(36) [2]=> int(42) }
Output for 5.3.4
array(3) { [0]=> int(37) [1]=> int(49) [2]=> int(14) }
Output for 5.3.3
array(3) { [0]=> int(20) [1]=> int(37) [2]=> int(51) }
Output for 5.3.2
array(3) { [0]=> int(48) [1]=> int(39) [2]=> int(26) }
Output for 5.3.1
array(3) { [0]=> int(6) [1]=> int(7) [2]=> int(8) }
Output for 5.3.0
array(3) { [0]=> int(58) [1]=> int(33) [2]=> int(42) }
Output for 5.2.17
array(3) { [0]=> int(19) [1]=> int(31) [2]=> int(43) }
Output for 5.2.16
array(3) { [0]=> int(28) [1]=> int(16) [2]=> int(23) }
Output for 5.2.15
array(3) { [0]=> int(59) [1]=> int(8) [2]=> int(46) }
Output for 5.2.14
array(3) { [0]=> int(9) [1]=> int(32) [2]=> int(38) }
Output for 5.2.13
array(3) { [0]=> int(21) [1]=> int(11) [2]=> int(13) }
Output for 5.2.12
array(3) { [0]=> int(31) [1]=> int(22) [2]=> int(29) }
Output for 5.2.11
array(3) { [0]=> int(34) [1]=> int(39) [2]=> int(40) }
Output for 5.2.10
array(3) { [0]=> int(58) [1]=> int(21) [2]=> int(14) }
Output for 5.2.9
array(3) { [0]=> int(40) [1]=> int(8) [2]=> int(23) }
Output for 5.2.8
array(3) { [0]=> int(11) [1]=> int(59) [2]=> int(14) }
Output for 5.2.7
array(3) { [0]=> int(28) [1]=> int(21) [2]=> int(37) }
Output for 5.2.6
array(3) { [0]=> int(28) [1]=> int(2) [2]=> int(25) }
Output for 5.2.5
array(3) { [0]=> int(13) [1]=> int(29) [2]=> int(46) }
Output for 5.2.4
array(3) { [0]=> int(51) [1]=> int(54) [2]=> int(47) }
Output for 5.2.3
array(3) { [0]=> int(44) [1]=> int(30) [2]=> int(5) }
Output for 5.2.2
array(3) { [0]=> int(17) [1]=> int(56) [2]=> int(51) }
Output for 5.2.1
array(3) { [0]=> int(18) [1]=> int(16) [2]=> int(28) }
Output for 5.2.0
array(3) { [0]=> int(13) [1]=> int(38) [2]=> int(9) }
Output for 5.1.6
array(3) { [0]=> int(8) [1]=> int(49) [2]=> int(43) }
Output for 5.1.5
array(3) { [0]=> int(34) [1]=> int(29) [2]=> int(49) }
Output for 5.1.4
array(3) { [0]=> int(40) [1]=> int(11) [2]=> int(23) }
Output for 5.1.3
array(3) { [0]=> int(31) [1]=> int(54) [2]=> int(40) }
Output for 5.1.2
array(3) { [0]=> int(3) [1]=> int(39) [2]=> int(29) }
Output for 5.1.1
array(3) { [0]=> int(31) [1]=> int(5) [2]=> int(37) }
Output for 5.1.0
array(3) { [0]=> int(42) [1]=> int(50) [2]=> int(16) }
Output for 5.0.5
array(3) { [0]=> int(3) [1]=> int(7) [2]=> int(35) }
Output for 5.0.4
array(3) { [0]=> int(6) [1]=> int(51) [2]=> int(10) }
Output for 5.0.3
array(3) { [0]=> int(21) [1]=> int(20) [2]=> int(22) }
Output for 5.0.2
array(3) { [0]=> int(48) [1]=> int(7) [2]=> int(17) }
Output for 5.0.1
array(3) { [0]=> int(33) [1]=> int(25) [2]=> int(36) }
Output for 5.0.0
array(3) { [0]=> int(24) [1]=> int(7) [2]=> int(51) }
Output for 4.4.9
array(3) { [0]=> int(44) [1]=> int(51) [2]=> int(23) }
Output for 4.4.8
array(3) { [0]=> int(19) [1]=> int(47) [2]=> int(34) }
Output for 4.4.7
array(3) { [0]=> int(39) [1]=> int(16) [2]=> int(23) }
Output for 4.4.6
array(3) { [0]=> int(19) [1]=> int(13) [2]=> int(10) }
Output for 4.4.5
array(3) { [0]=> int(23) [1]=> int(12) [2]=> int(50) }
Output for 4.4.4
array(3) { [0]=> int(39) [1]=> int(6) [2]=> int(11) }
Output for 4.4.3
array(3) { [0]=> int(59) [1]=> int(45) [2]=> int(6) }
Output for 4.4.2
array(3) { [0]=> int(17) [1]=> int(15) [2]=> int(11) }
Output for 4.4.1
array(3) { [0]=> int(3) [1]=> int(2) [2]=> int(8) }
Output for 4.4.0
array(3) { [0]=> int(19) [1]=> int(17) [2]=> int(3) }
Output for 4.3.11
array(3) { [0]=> int(8) [1]=> int(3) [2]=> int(47) }
Output for 4.3.10
array(3) { [0]=> int(50) [1]=> int(10) [2]=> int(27) }
Output for 4.3.9
array(3) { [0]=> int(25) [1]=> int(23) [2]=> int(45) }
Output for 4.3.8
array(3) { [0]=> int(42) [1]=> int(6) [2]=> int(28) }
Output for 4.3.7
array(3) { [0]=> int(7) [1]=> int(58) [2]=> int(42) }
Output for 4.3.6
array(3) { [0]=> int(28) [1]=> int(4) [2]=> int(35) }
Output for 4.3.5
array(3) { [0]=> int(22) [1]=> int(29) [2]=> int(11) }
Output for 4.3.3 - 4.3.4
array(3) { [0]=> int(35) [1]=> int(3) [2]=> int(26) }
Output for 4.3.2
array(3) { [0]=> int(22) [1]=> int(47) [2]=> int(43) }
Output for 4.3.1
array(3) { [0]=> int(25) [1]=> int(41) [2]=> int(12) }
Output for 4.3.0
array(3) { [0]=> int(45) [1]=> int(6) [2]=> int(14) }