3v4l.org

run code in 300+ PHP versions simultaneously
<?php function randomGen($min, $max, $quantity) { $numbers = range($min, $max); shuffle($numbers); return array_slice($numbers, 0, $quantity); } $y = randomGen(0,12,12); print_r($y) ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.10.0030.01615.07
7.4.00.0090.00615.04
7.3.130.0110.00714.77
7.3.120.0100.00714.88
7.3.110.0060.01314.79
7.3.100.0100.00714.99
7.3.90.0070.00714.68
7.3.80.0100.00614.91
7.3.70.0070.00714.81
7.3.60.0060.00314.71
7.3.50.0060.00614.94
7.3.40.0040.01414.70
7.3.30.0070.00714.91
7.3.20.0060.01016.82
7.3.10.0030.00816.35
7.3.00.0070.00616.47
7.2.260.0060.01214.80
7.2.250.0070.01114.89
7.2.240.0040.01114.92
7.2.230.0120.00014.89
7.2.220.0030.00714.82
7.2.210.0000.01614.95
7.2.200.0000.01114.96
7.2.190.0090.00615.12
7.2.180.0060.01214.99
7.2.170.0070.01015.03
7.2.160.0070.00714.95
7.2.150.0050.00616.75
7.2.140.0090.00616.75
7.2.130.0050.00716.55
7.2.120.0040.00816.91
7.2.110.0080.00616.67
7.2.100.0050.00916.75
7.2.90.0040.01216.61
7.2.80.0050.00916.81
7.2.70.0080.00716.98
7.2.60.0060.00816.73
7.2.50.0050.00816.65
7.2.40.0060.00916.94
7.2.30.0040.00916.76
7.2.20.0070.00816.79
7.2.10.0070.00716.96
7.2.00.0060.00917.58
7.1.330.0070.01015.88
7.1.320.0030.01015.35
7.1.310.0080.00615.72
7.1.300.0030.01015.76
7.1.290.0000.01415.89
7.1.280.0060.00915.70
7.1.270.0030.01315.46
7.1.260.0060.00615.61
7.1.250.0040.00715.62
7.1.240.0040.00915.84
7.1.230.0100.00315.70
7.1.220.0070.00415.80
7.1.210.0090.00615.84
7.1.200.0070.00715.80
7.1.190.0070.00715.63
7.1.180.0060.00615.56
7.1.170.0000.01515.64
7.1.160.0100.00015.41
7.1.150.0030.00915.74
7.1.140.0070.00715.83
7.1.130.0000.01715.87
7.1.120.0000.01215.75
7.1.110.0000.01215.87
7.1.100.0040.01415.81
7.1.90.0040.01115.90
7.1.80.0060.01215.52
7.1.70.0060.00716.42
7.1.60.0060.00616.49
7.1.50.0020.01416.41
7.1.40.0030.00615.88
7.1.30.0090.00615.59
7.1.20.0000.01515.65
7.1.10.0040.01115.70
7.1.00.0090.03519.04
7.0.330.0040.00815.36
7.0.320.0060.00315.04
7.0.310.0030.00614.97
7.0.300.0100.00315.33
7.0.290.0080.00415.28
7.0.280.0070.00715.39
7.0.270.0070.00715.12
7.0.260.0040.01115.28
7.0.250.0040.00815.13
7.0.240.0060.00615.43
7.0.230.0000.01415.48
7.0.220.0060.00915.14
7.0.210.0080.00515.23
7.0.200.0080.00016.08
7.0.190.0080.00815.26
7.0.180.0030.00715.47
7.0.170.0030.00915.27
7.0.160.0070.00715.25
7.0.150.0090.00615.27
7.0.140.0030.04218.77
7.0.130.0040.01115.55
7.0.120.0060.00915.29
7.0.110.0000.01115.20
7.0.100.0070.02817.67
7.0.90.0110.03817.55
7.0.80.0070.04517.45
7.0.70.0120.03817.67
7.0.60.0140.04617.65
7.0.50.0140.03917.90
7.0.40.0090.04116.65
7.0.30.0110.03816.64
7.0.20.0100.02816.71
7.0.10.0070.04716.79
7.0.00.0070.04616.83
5.6.400.0030.01113.91
5.6.390.0030.01014.40
5.6.380.0000.01214.06
5.6.370.0040.00713.89
5.6.360.0110.00414.05
5.6.350.0080.00414.14
5.6.340.0070.00713.87
5.6.330.0030.01013.96
5.6.320.0110.00414.14
5.6.310.0090.00014.10
5.6.300.0090.00614.11
5.6.290.0030.00814.22
5.6.280.0140.04217.68
5.6.270.0060.00314.34
5.6.260.0000.01714.16
5.6.250.0040.04517.50
5.6.240.0090.04317.47
5.6.230.0110.04417.61
5.6.220.0100.02817.40
5.6.210.0050.04117.43
5.6.200.0050.05017.56
5.6.190.0070.04517.70
5.6.180.0130.03817.58
5.6.170.0110.03717.46
5.6.160.0080.04017.65
5.6.150.0100.04417.67
5.6.140.0060.04017.57
5.6.130.0070.03417.54
5.6.120.0100.04317.69
5.6.110.0140.03817.52
5.6.100.0050.02817.53
5.6.90.0090.04317.41
5.6.80.0090.04417.22
5.6.70.0090.04217.36
5.6.60.0070.03917.21
5.6.50.0120.02717.17
5.6.40.0080.03817.33
5.6.30.0100.03817.21
5.6.20.0100.04017.29
5.6.10.0050.04217.20
5.6.00.0100.03817.16
5.5.380.0080.04017.25
5.5.370.0060.03817.13
5.5.360.0140.03717.34
5.5.350.0070.03017.34
5.5.340.0050.04217.58
5.5.330.0060.02517.40
5.5.320.0090.04617.42
5.5.310.0110.03817.46
5.5.300.0060.04917.38
5.5.290.0080.04317.56
5.5.280.0130.04017.51
5.5.270.0040.04717.36
5.5.260.0110.04517.51
5.5.250.0080.04217.25
5.5.240.0050.04217.09
5.5.230.0150.03717.23
5.5.220.0080.04317.13
5.5.210.0100.03917.16
5.5.200.0080.04417.17
5.5.190.0030.04317.03
5.5.180.0080.04717.05
5.5.170.0000.01714.21
5.5.160.0060.02317.10
5.5.150.0050.03117.04
5.5.140.0030.02917.06
5.5.130.0130.03817.14
5.5.120.0030.04416.96
5.5.110.0150.02917.01
5.5.100.0050.04716.94
5.5.90.0110.01817.12
5.5.80.0050.02517.04
5.5.70.0120.02717.02
5.5.60.0070.04217.12
5.5.50.0050.02917.12
5.5.40.0030.04617.15
5.5.30.0030.04017.10
5.5.20.0060.04417.15
5.5.10.0080.03917.10
5.5.00.0050.04516.92
5.4.450.0090.04815.73
5.4.440.0050.04015.72
5.4.430.0070.04415.80
5.4.420.0080.04215.63
5.4.410.0070.03715.71
5.4.400.0070.04515.57
5.4.390.0100.03815.57
5.4.380.0020.04515.56
5.4.370.0080.03715.63
5.4.360.0080.03715.57
5.4.350.0080.03715.57
5.4.340.0100.03515.56
5.4.330.0000.00712.09
5.4.320.0030.02515.56
5.4.310.0050.03415.65
5.4.300.0070.04015.47
5.4.290.0030.03015.64
5.4.280.0030.02415.63
5.4.270.0070.03815.50
5.4.260.0060.02915.61
5.4.250.0050.02715.47
5.4.240.0030.03715.52
5.4.230.0030.02415.59
5.4.220.0050.04315.47
5.4.210.0070.04015.65
5.4.200.0050.04515.52
5.4.190.0020.04315.48
5.4.180.0020.04515.50
5.4.170.0070.04415.58
5.4.160.0100.02515.62
5.4.150.0080.03915.58
5.4.140.0050.03814.25
5.4.130.0020.04314.25
5.4.120.0080.04014.29
5.4.110.0070.03514.30
5.4.100.0020.04414.24
5.4.90.0050.04214.28
5.4.80.0060.03614.23
5.4.70.0070.03914.25
5.4.60.0050.04014.30
5.4.50.0050.03914.27
5.4.40.0060.03114.22
5.4.30.0080.03014.21
5.4.20.0080.04014.21
5.4.10.0020.04214.21
5.4.00.0100.03113.99
5.3.290.0030.04513.94
5.3.280.0040.04113.94
5.3.270.0020.03413.94
5.3.260.0050.04313.94
5.3.250.0030.04413.94
5.3.240.0030.03513.94
5.3.230.0070.03813.94
5.3.220.0080.03513.94
5.3.210.0080.03813.94
5.3.200.0100.04213.94
5.3.190.0030.04413.94
5.3.180.0050.03713.94
5.3.170.0060.03013.94
5.3.160.0030.04013.94
5.3.150.0030.04513.94
5.3.140.0100.03313.94
5.3.130.0080.02713.94
5.3.120.0090.03813.94
5.3.110.0050.04013.94
5.3.100.0070.03713.94
5.3.90.0000.04713.94
5.3.80.0070.03313.94
5.3.70.0100.03513.94
5.3.60.0070.02513.94
5.3.50.0030.03613.94
5.3.40.0050.03813.94
5.3.30.0030.04113.94
5.3.20.0060.04013.94
5.3.10.0080.03313.94
5.3.00.0050.04013.94
5.2.170.0100.06015.78
5.2.160.0030.06315.78
5.2.150.0000.06715.78
5.2.140.0070.06015.78
5.2.130.0000.04715.78
5.2.120.0100.05315.78
5.2.110.0100.06015.78
5.2.100.0070.05315.78
5.2.90.0070.06015.78
5.2.80.0000.03715.78
5.2.70.0070.06015.78
5.2.60.0000.06715.78
5.2.50.0070.06015.78
5.2.40.0070.05315.78
5.2.30.0070.04715.78
5.2.20.0100.04315.78
5.2.10.0030.06315.78
5.2.00.0000.05715.78
5.1.60.0070.04315.78
5.1.50.0070.03315.78
5.1.40.0070.04715.78
5.1.30.0070.05315.78
5.1.20.0030.06015.78
5.1.10.0070.05315.78
5.1.00.0000.06015.78
5.0.50.0070.04315.78
5.0.40.0030.04715.78
5.0.30.0030.06715.78
5.0.20.0030.04315.78
5.0.10.0030.02715.78
5.0.00.0070.04715.78
4.4.90.0030.03315.78
4.4.80.0030.03315.78
4.4.70.0070.03315.78
4.4.60.0000.03715.78
4.4.50.0030.03315.78
4.4.40.0000.05315.78
4.4.30.0030.03315.78
4.4.20.0030.03715.78
4.4.10.0000.03715.78
4.4.00.0030.05715.78
4.3.110.0000.04015.78
4.3.100.0000.03715.78
4.3.90.0000.03715.78
4.3.80.0000.05315.78
4.3.70.0030.03315.78
4.3.60.0070.02715.78
4.3.50.0000.03715.78
4.3.40.0100.04315.78
4.3.30.0070.03015.78
4.3.20.0000.02315.78
4.3.10.0000.02715.78
4.3.00.0000.03715.78

preferences:
37.88 ms | 401 KiB | 5 Q