3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[] = array('volume' => 67, 'edition' => 2); $data[] = array('volume' => 86, 'edition' => 1); $data[] = array('volume' => 85, 'edition' => 6); $data[] = array('volume' => 98, 'edition' => 2); $data[] = array('volume' => 86, 'edition' => 6); $data[] = array('volume' => 67, 'edition' => 7); foreach ($data as $key => $row) { $volume[$key] = $row['volume']; $edition[$key] = $row['edition']; } // Sort the data with volume descending, edition ascending // Add $data as the last parameter, to sort by the common key array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data); ?>

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)
8.3.40.0140.00318.67
8.3.30.0070.00720.21
8.3.20.0030.00620.39
8.3.10.0040.00421.96
8.3.00.0060.00322.43
8.2.170.0200.00022.96
8.2.160.0090.00622.09
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.75
8.2.110.0060.00322.25
8.2.100.0110.00017.91
8.2.90.0000.00819.26
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0030.00519.85
8.2.30.0030.00319.37
8.2.20.0040.00417.71
8.2.10.0050.00217.61
8.2.00.0000.00817.72
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0080.00417.51
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.47
8.1.190.0040.00417.53
8.1.180.0030.00519.01
8.1.170.0090.00018.71
8.1.160.0040.00418.87
8.1.150.0060.00318.63
8.1.140.0040.00417.45
8.1.130.0000.00817.71
8.1.120.0000.00717.45
8.1.110.0080.00017.43
8.1.100.0070.00017.45
8.1.90.0000.00717.35
8.1.80.0070.00017.50
8.1.70.0000.00717.44
8.1.60.0080.00017.56
8.1.50.0020.00517.45
8.1.40.0000.00717.50
8.1.30.0000.00717.70
8.1.20.0040.00417.70
8.1.10.0030.00617.61
8.1.00.0030.00617.36
8.0.300.0060.00318.77
8.0.290.0050.00216.63
8.0.280.0000.00718.39
8.0.270.0070.00017.33
8.0.260.0000.00716.70
8.0.250.0030.00317.00
8.0.240.0000.00716.98
8.0.230.0070.00016.96
8.0.220.0000.00716.85
8.0.210.0030.00316.81
8.0.200.0040.00417.01
8.0.190.0070.00016.94
8.0.180.0000.00816.79
8.0.170.0050.00316.81
8.0.160.0000.00816.79
8.0.150.0040.00416.91
8.0.140.0040.00416.77
8.0.130.0000.00613.29
8.0.120.0030.00516.90
8.0.110.0030.00316.80
8.0.100.0050.00316.90
8.0.90.0000.00716.76
8.0.80.0120.00316.83
8.0.70.0050.00216.77
8.0.60.0000.00716.83
8.0.50.0040.00416.94
8.0.30.0130.00716.95
8.0.20.0090.01217.40
8.0.10.0000.00717.02
8.0.00.0060.01116.74
7.4.330.0050.00015.00
7.4.320.0000.00616.52
7.4.300.0000.00616.60
7.4.290.0030.00316.60
7.4.280.0000.00716.48
7.4.270.0000.00716.50
7.4.260.0030.00313.19
7.4.250.0030.00316.51
7.4.240.0070.00016.56
7.4.230.0000.00716.66
7.4.220.0120.00616.47
7.4.210.0070.00916.56
7.4.200.0070.00016.58
7.4.190.0000.00716.63
7.4.160.0060.01816.63
7.4.150.0060.01317.40
7.4.140.0070.01217.86
7.4.130.0090.00716.57
7.4.120.0060.01016.43
7.4.110.0100.00916.55
7.4.100.0150.00316.63
7.4.90.0060.01216.55
7.4.80.0120.00619.39
7.4.70.0070.01016.62
7.4.60.0130.01016.34
7.4.50.0030.00516.55
7.4.40.0030.01222.77
7.4.30.0000.01616.44
7.4.10.0040.01414.78
7.4.00.0050.01115.03
7.3.330.0000.00513.25
7.3.320.0060.00013.21
7.3.310.0000.00816.46
7.3.300.0030.00316.30
7.3.290.0070.00716.27
7.3.280.0100.00516.31
7.3.270.0120.00617.40
7.3.260.0030.01316.33
7.3.250.0140.00816.50
7.3.240.0060.01316.45
7.3.230.0140.00616.54
7.3.210.0100.01116.57
7.3.200.0090.00619.39
7.3.190.0070.01016.28
7.3.180.0100.00716.33
7.3.170.0040.01216.27
7.3.160.0090.00616.41
7.3.130.0080.00815.12
7.3.120.0050.01214.76
7.3.110.0120.00314.95
7.3.100.0040.01214.94
7.3.90.0090.00514.82
7.3.80.0050.01314.88
7.3.70.0080.00514.69
7.3.60.0040.00814.66
7.3.50.0050.01014.90
7.3.40.0040.00814.81
7.3.30.0060.00514.91
7.3.20.0060.00816.60
7.3.10.0090.00616.60
7.3.00.0070.00616.73
7.2.330.0030.01416.49
7.2.320.0110.00916.46
7.2.310.0030.01916.69
7.2.300.0120.00416.41
7.2.290.0070.01016.39
7.2.260.0120.00914.74
7.2.250.0090.01014.93
7.2.240.0090.01015.04
7.2.230.0070.00915.08
7.2.220.0080.00715.08
7.2.210.0060.01015.03
7.2.200.0040.01014.98
7.2.190.0100.00815.05
7.2.180.0070.01214.94
7.2.170.0040.01015.07
7.2.160.0080.00615.05
7.2.150.0040.01117.01
7.2.140.0070.00716.80
7.2.130.0030.00916.94
7.2.120.0030.01016.98
7.2.110.0050.00716.84
7.2.100.0080.00516.80
7.2.90.0060.00816.92
7.2.80.0020.01216.96
7.2.70.0050.00716.96
7.2.60.0080.00616.88
7.2.50.0020.01117.09
7.2.40.0020.01217.02
7.2.30.0060.00716.96
7.2.20.0070.00917.04
7.2.10.0060.00616.96
7.2.00.0020.01217.78
7.1.330.0090.00715.88
7.1.320.0020.01115.59
7.1.310.0040.00915.93
7.1.300.0070.00915.76
7.1.290.0070.00715.75
7.1.280.0050.00915.92
7.1.270.0040.00715.76
7.1.260.0030.00915.70
7.1.250.0120.00315.77
7.1.240.0030.00815.86
7.1.230.0040.00915.79
7.1.220.0090.00415.84
7.1.210.0060.00915.81
7.1.200.0050.00615.62
7.1.190.0030.01115.83
7.1.180.0070.00615.72
7.1.170.0050.00615.86
7.1.160.0040.00615.82
7.1.150.0080.00515.79
7.1.140.0060.00615.74
7.1.130.0060.00615.76
7.1.120.0060.00715.85
7.1.110.0040.01215.90
7.1.100.0050.00816.69
7.1.90.0050.00515.90
7.1.80.0050.00715.86
7.1.70.0040.00716.38
7.1.60.0080.00717.02
7.1.50.0030.00816.13
7.1.40.0060.00715.93
7.1.30.0110.00215.71
7.1.20.0070.00815.87
7.1.10.0060.00915.90
7.1.00.0080.02318.02
7.0.330.0050.00815.27
7.0.320.0020.01115.23
7.0.310.0080.00715.36
7.0.300.0080.00415.24
7.0.290.0000.01615.45
7.0.280.0050.00915.23
7.0.270.0040.00415.40
7.0.260.0030.00815.28
7.0.250.0060.00715.28
7.0.240.0040.00715.43
7.0.230.0090.00215.51
7.0.220.0060.00815.43
7.0.210.0080.00315.38
7.0.200.0050.00615.81
7.0.190.0030.00615.53
7.0.180.0070.00415.44
7.0.170.0090.00515.50
7.0.160.0050.01115.39
7.0.150.0070.00715.26
7.0.140.0060.02517.51
7.0.130.0100.00315.48
7.0.120.0050.00515.52
7.0.110.0020.01015.49
7.0.100.0070.02516.96
7.0.90.0050.02716.90
7.0.80.0120.02216.92
7.0.70.0040.02516.84
7.0.60.0110.01816.82
7.0.50.0080.02817.07
7.0.40.0040.02015.70
7.0.30.0050.03215.76
7.0.20.0060.01915.55
7.0.10.0050.03315.74
7.0.00.0060.02415.70
5.6.400.0070.00314.55
5.6.390.0040.00914.68
5.6.380.0050.00914.49
5.6.370.0030.01014.37
5.6.360.0020.01014.59
5.6.350.0090.00314.33
5.6.340.0070.00814.48
5.6.330.0040.00914.69
5.6.320.0030.00714.52
5.6.310.0070.00714.51
5.6.300.0040.01314.22
5.6.290.0040.00514.71
5.6.280.0060.02716.68
5.6.270.0070.00614.32
5.6.260.0080.00614.65
5.6.250.0110.02116.38
5.6.240.0020.02416.38
5.6.230.0090.02616.47
5.6.220.0050.02216.40
5.6.210.0100.02916.45
5.6.200.0060.02416.67
5.6.190.0030.02316.68
5.6.180.0070.03116.56
5.6.170.0080.02916.54
5.6.160.0080.01816.58
5.6.150.0080.02716.61
5.6.140.0090.01916.65
5.6.130.0040.03316.71
5.6.120.0110.01916.64
5.6.110.0060.03216.58
5.6.100.0030.02316.51
5.6.90.0050.03316.57
5.6.80.0050.01516.40
5.6.70.0050.01716.33
5.6.60.0090.02516.35
5.6.50.0050.02716.46
5.6.40.0080.02816.42
5.6.30.0010.03516.36
5.6.20.0050.02316.27
5.6.10.0020.02316.33
5.6.00.0040.02116.41
5.5.380.0110.01616.40
5.5.370.0050.02016.35
5.5.360.0120.03116.45
5.5.350.0060.02416.47
5.5.340.0050.03216.62
5.5.330.0070.02816.55
5.5.320.0030.01916.69
5.5.310.0060.02516.41
5.5.300.0050.02816.62
5.5.290.0040.02316.64
5.5.280.0050.01916.41
5.5.270.0070.02916.52
5.5.260.0070.03116.41
5.5.250.0030.02216.28
5.5.240.0030.03416.31
5.5.230.0060.01616.24
5.5.220.0080.02316.13
5.5.210.0070.01716.18
5.5.200.0030.02516.30
5.5.190.0060.03016.32
5.5.180.0080.02216.21
5.5.170.0070.00714.12
5.5.160.0060.02216.26
5.5.150.0030.02016.15
5.5.140.0080.02916.22
5.5.130.0070.01916.22
5.5.120.0100.01516.33
5.5.110.0040.03516.29
5.5.100.0060.02116.13
5.5.90.0050.03116.26
5.5.80.0070.02116.26
5.5.70.0100.01716.29
5.5.60.0060.03016.15
5.5.50.0090.02916.01
5.5.40.0050.02116.15
5.5.30.0070.01716.19
5.5.20.0040.02916.27
5.5.10.0080.02516.23
5.5.00.0060.02116.28
5.4.450.0070.02814.07
5.4.440.0070.03114.06
5.4.430.0060.02714.17
5.4.420.0040.02014.18
5.4.410.0030.01614.03
5.4.400.0030.01613.99
5.4.390.0070.01314.05
5.4.380.0030.02814.10
5.4.370.0030.02614.05
5.4.360.0020.02614.07
5.4.350.0050.02913.96
5.4.340.0050.02714.01
5.4.330.0030.00511.54
5.4.320.0030.01614.00
5.4.310.0060.01514.01
5.4.300.0040.02314.01
5.4.290.0040.02414.04
5.4.280.0050.02814.02
5.4.270.0030.01714.07
5.4.260.0050.02814.10
5.4.250.0030.02414.04
5.4.240.0030.02714.01
5.4.230.0080.02814.03
5.4.220.0030.02814.03
5.4.210.0070.01414.06
5.4.200.0070.02614.03
5.4.190.0040.02014.05
5.4.180.0090.02513.96
5.4.170.0060.01913.96
5.4.160.0030.03314.00
5.4.150.0040.03014.10
5.4.140.0030.02113.14
5.4.130.0030.01713.12
5.4.120.0040.02213.12
5.4.110.0060.01913.08
5.4.100.0070.01313.15
5.4.90.0070.02113.11
5.4.80.0070.01813.12
5.4.70.0060.01713.13
5.4.60.0080.02613.09
5.4.50.0020.02613.09
5.4.40.0030.02913.18
5.4.30.0040.02213.09
5.4.20.0080.02513.15
5.4.10.0090.01813.13
5.4.00.0040.02212.96
5.3.290.0040.02012.58
5.3.280.0030.03012.54
5.3.270.0040.01512.51
5.3.260.0020.02612.55
5.3.250.0070.02512.55
5.3.240.0030.02212.56
5.3.230.0020.01712.56
5.3.220.0080.01412.54
5.3.210.0040.01912.53
5.3.200.0040.02312.50
5.3.190.0020.01912.54
5.3.180.0050.01712.54
5.3.170.0030.01712.50
5.3.160.0030.02412.56
5.3.150.0040.02112.54
5.3.140.0030.01812.53
5.3.130.0040.02012.50
5.3.120.0030.02512.53
5.3.110.0050.03012.49
5.3.100.0020.01912.33
5.3.90.0030.02512.32
5.3.80.0050.02512.33
5.3.70.0050.02012.34
5.3.60.0040.02812.36
5.3.50.0050.01912.32
5.3.40.0080.01312.26
5.3.30.0040.02312.31
5.3.20.0040.01612.19
5.3.10.0050.01812.24
5.3.00.0020.01612.23
5.2.170.0100.03012.15
5.2.160.0030.03012.15
5.2.150.0000.05312.15
5.2.140.0030.04712.15
5.2.130.0000.06312.15
5.2.120.0000.03712.15
5.2.110.0100.04012.15
5.2.100.0100.02712.15
5.2.90.0100.05312.15
5.2.80.0070.06312.15
5.2.70.0030.05712.15
5.2.60.0100.03712.15
5.2.50.0100.04712.15
5.2.40.0000.03012.15
5.2.30.0000.03712.15
5.2.20.0000.03712.15
5.2.10.0070.05012.15
5.2.00.0030.03312.15
5.1.60.0030.02312.15
5.1.50.0030.03012.15
5.1.40.0000.04012.15
5.1.30.0000.03312.15
5.1.20.0030.04712.15
5.1.10.0070.04012.15
5.1.00.0030.03012.15
5.0.50.0000.03312.15
5.0.40.0070.03312.15
5.0.30.0000.06312.15
5.0.20.0030.01712.15
5.0.10.0000.04312.15
5.0.00.0000.05012.15
4.4.90.0030.03712.15
4.4.80.0030.03312.15
4.4.70.0000.03012.15
4.4.60.0000.02012.15
4.4.50.0030.03012.15
4.4.40.0000.03712.15
4.4.30.0000.01712.15
4.4.20.0030.01712.15
4.4.10.0000.03012.15
4.4.00.0030.05312.15
4.3.110.0070.02312.15
4.3.100.0070.02312.15
4.3.90.0030.02312.15
4.3.80.0000.05312.15
4.3.70.0070.02712.15
4.3.60.0000.02012.15
4.3.50.0030.03312.15
4.3.40.0000.05312.15
4.3.30.0000.03712.15
4.3.20.0000.03712.15
4.3.10.0000.03312.15
4.3.00.0030.02312.15

preferences:
47.75 ms | 400 KiB | 5 Q