3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = range(1,10); $items1= array_splice($items, 0,3); shuffle($items); $result = array_merge($items1, $items); Var_dump($result);

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.0040.01514.77
7.4.00.0070.01114.67
7.3.130.0080.00814.70
7.3.120.0100.00714.93
7.3.110.0120.00614.70
7.3.100.0070.00714.70
7.3.90.0080.00414.73
7.3.80.0030.00614.70
7.3.70.0040.01214.70
7.3.60.0000.01514.79
7.3.50.0100.00714.50
7.3.40.0070.00714.75
7.3.30.0030.01414.49
7.3.20.0070.00716.66
7.3.10.0030.00616.34
7.3.00.0110.00416.62
7.2.260.0070.01114.69
7.2.250.0070.01014.54
7.2.240.0060.00914.64
7.2.230.0030.01414.86
7.2.220.0060.01015.10
7.2.210.0110.00414.77
7.2.200.0000.01214.70
7.2.190.0170.00014.87
7.2.180.0030.00614.73
7.2.170.0030.00914.99
7.2.160.0040.01114.95
7.2.150.0040.00716.83
7.2.140.0090.00016.80
7.2.130.0100.00316.94
7.2.120.0110.00416.59
7.2.110.0090.00316.82
7.2.100.0030.01516.69
7.2.90.0070.00716.68
7.2.80.0090.00316.86
7.2.70.0060.00916.90
7.2.60.0040.00716.95
7.2.50.0040.01016.61
7.2.40.0080.00816.91
7.2.30.0060.00916.93
7.2.20.0060.00916.87
7.2.10.0030.01016.72
7.2.00.0060.01116.77
7.1.330.0060.00615.82
7.1.320.0130.00315.89
7.1.310.0030.01016.03
7.1.300.0120.00415.54
7.1.290.0060.00315.70
7.1.280.0060.00315.89
7.1.270.0070.00715.68
7.1.260.0150.00315.40
7.1.250.0070.00715.59
7.1.240.0040.01115.67
7.1.230.0000.01315.87
7.1.220.0000.01815.49
7.1.210.0030.00915.79
7.1.200.0000.01115.34
7.1.190.0090.00315.34
7.1.180.0030.01015.80
7.1.170.0090.00015.48
7.1.160.0090.00615.80
7.1.150.0090.00615.66
7.1.140.0030.00815.51
7.1.130.0040.00415.81
7.1.120.0000.01015.81
7.1.110.0070.00415.77
7.1.100.0000.01415.91
7.1.90.0040.01115.62
7.1.80.0530.01016.98
7.1.70.0620.00816.26
7.1.60.1260.01129.33
7.1.50.0670.01229.37
7.1.40.0610.01429.13
7.1.30.0630.01529.31
7.1.20.1240.01328.85
7.1.10.1240.01215.35
7.1.00.0550.01015.87
7.0.330.0050.00315.30
7.0.320.0000.01115.29
7.0.310.0040.01115.30
7.0.300.0090.00315.23
7.0.290.0100.00315.32
7.0.280.0040.01115.08
7.0.270.0030.01015.25
7.0.260.0040.01115.41
7.0.250.0070.00415.35
7.0.240.0070.00715.35
7.0.230.0040.00415.34
7.0.220.0000.01415.43
7.0.210.0070.00715.32
7.0.200.1130.00915.71
7.0.190.0560.01015.74
7.0.180.0480.01115.48
7.0.170.1130.00815.14
7.0.160.1050.01215.05
7.0.150.1090.00915.02
7.0.140.0510.01115.57
7.0.130.0510.00915.63
7.0.120.1040.00915.32
7.0.110.1060.01215.54
7.0.100.1150.00815.05
7.0.90.0630.00815.59
7.0.80.1160.01215.08
7.0.70.0770.01015.61
7.0.60.1050.01114.96
7.0.50.1090.01115.59
7.0.40.0530.01015.12
7.0.30.0500.01015.22
7.0.20.0520.01115.13
7.0.10.0550.00815.15
7.0.00.0540.00915.17
5.6.400.0100.00314.27
5.6.390.0040.00813.97
5.6.380.0100.00314.16
5.6.370.0000.01414.25
5.6.360.0000.01414.27
5.6.350.0100.00313.98
5.6.340.0090.00613.95
5.6.330.0050.00514.45
5.6.320.0030.00914.11
5.6.310.0060.00914.00
5.6.300.0060.00614.56
5.6.290.0060.00914.24
5.6.280.0120.00313.99
5.6.270.0000.01514.09
5.6.260.0100.00714.25
5.6.250.0090.00614.40
5.6.240.0120.00314.30
5.6.230.0070.00714.22
5.6.220.0060.00614.21
5.6.210.0070.00314.13
5.6.200.0100.00314.01
5.6.190.0040.01114.14
5.6.180.0030.00713.98
5.6.170.0050.00814.03
5.6.160.0090.00613.91
5.6.150.0120.00014.11
5.6.140.0090.00314.11
5.6.130.0120.00314.28
5.6.120.0100.00314.09
5.6.110.0000.01614.13
5.6.100.0090.00614.07
5.6.90.0090.00614.19
5.6.80.0000.01414.22
5.6.70.0030.01014.14
5.6.60.0090.00613.91
5.6.50.0000.01214.00
5.6.40.0030.00913.99
5.6.30.0070.00713.95
5.6.20.0000.01514.26
5.6.10.0030.01014.13
5.6.00.0030.00614.08

preferences:
54.53 ms | 403 KiB | 5 Q