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); // Obtain a list of columns 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); echo '<pre>'; print_r($volume); ?>

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.60.0040.01118.18
8.3.50.0110.00822.05
8.3.40.0190.00318.84
8.3.30.0140.00319.27
8.3.20.0100.00720.04
8.3.10.0000.00821.94
8.3.00.0080.00022.41
8.2.180.0150.00016.63
8.2.170.0090.00922.96
8.2.160.0100.00320.94
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0120.00326.16
8.2.120.0090.00019.48
8.2.110.0060.00320.45
8.2.100.0110.00017.84
8.2.90.0040.00419.08
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0000.00818.05
8.2.50.0000.00918.07
8.2.40.0040.00418.34
8.2.30.0050.00318.02
8.2.20.0000.00717.79
8.2.10.0000.00817.77
8.2.00.0030.00617.76
8.1.280.0110.00325.92
8.1.270.0000.00823.88
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00723.86
8.1.230.0000.01123.98
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0080.00018.59
8.1.160.0060.00322.06
8.1.150.0050.00318.65
8.1.140.0030.00517.45
8.1.130.0030.00317.80
8.1.120.0000.00717.39
8.1.110.0030.00317.35
8.1.100.0000.00717.44
8.1.90.0000.00917.36
8.1.80.0060.00317.43
8.1.70.0000.00717.38
8.1.60.0050.00317.51
8.1.50.0040.00417.41
8.1.40.0040.00417.55
8.1.30.0040.00417.49
8.1.20.0040.00417.68
8.1.10.0040.00417.57
8.1.00.0030.00517.55
8.0.300.0040.00418.77
8.0.290.0050.00317.04
8.0.280.0080.00018.50
8.0.270.0050.00317.21
8.0.260.0030.00316.82
8.0.250.0030.00316.98
8.0.240.0050.00317.00
8.0.230.0000.00716.96
8.0.220.0030.00316.91
8.0.210.0080.00016.90
8.0.200.0000.00816.97
8.0.190.0030.00516.99
8.0.180.0050.00316.95
8.0.170.0040.00416.95
8.0.160.0000.00816.95
8.0.150.0000.00816.74
8.0.140.0000.00716.90
8.0.130.0030.00313.34
8.0.120.0040.00416.82
8.0.110.0040.00416.91
8.0.100.0040.00416.73
8.0.90.0040.00416.94
8.0.80.0070.00716.86
8.0.70.0000.00816.89
8.0.60.0040.00416.78
8.0.50.0040.00416.74
8.0.30.0080.01117.03
8.0.20.0110.01217.40
8.0.10.0000.00716.84
8.0.00.0110.00516.77
7.4.330.0060.00015.15
7.4.320.0000.00616.54
7.4.300.0030.00316.61
7.4.290.0000.00816.60
7.4.280.0030.00316.65
7.4.270.0030.00616.53
7.4.260.0040.00416.55
7.4.250.0000.00816.45
7.4.240.0000.00816.53
7.4.230.0030.00316.51
7.4.220.0140.00716.50
7.4.210.0080.00616.59
7.4.200.0030.00316.64
7.4.190.0020.00516.41
7.4.160.0090.00616.41
7.4.150.0140.00917.40
7.4.140.0100.00917.86
7.4.130.0120.00816.49
7.4.120.0060.01116.52
7.4.110.0100.00716.53
7.4.100.0060.01116.45
7.4.90.0100.00716.36
7.4.80.0070.01619.39
7.4.70.0120.00616.38
7.4.60.0070.01016.52
7.4.50.0030.00516.59
7.4.40.0030.01322.77
7.4.30.0080.00816.55
7.4.10.0060.01114.97
7.4.00.0050.01114.92
7.3.330.0000.00513.17
7.3.320.0000.00513.15
7.3.310.0000.00816.38
7.3.300.0070.00016.28
7.3.290.0150.00016.31
7.3.280.0080.01116.34
7.3.270.0120.01217.40
7.3.260.0110.01416.35
7.3.250.0100.00716.58
7.3.240.0030.01316.60
7.3.230.0130.00716.39
7.3.210.0030.01416.25
7.3.200.0100.01319.39
7.3.190.0100.00716.33
7.3.180.0140.00316.56
7.3.170.0070.01016.43
7.3.160.0040.01216.31
7.3.130.0080.00614.98
7.3.120.0040.01314.90
7.3.110.0100.00814.90
7.3.100.0050.00914.73
7.3.90.0070.00614.82
7.3.80.0070.00714.95
7.3.70.0040.00714.86
7.3.60.0050.00714.73
7.3.50.0040.01014.89
7.3.40.0030.00914.88
7.3.30.0040.00714.92
7.3.20.0060.00816.71
7.3.10.0050.00816.69
7.3.00.0050.00916.63
7.2.330.0080.00816.59
7.2.320.0060.01216.79
7.2.310.0000.01716.68
7.2.300.0110.00616.49
7.2.290.0070.01016.63
7.2.260.0060.00915.03
7.2.250.0100.00814.89
7.2.240.0060.01015.13
7.2.230.0040.01214.97
7.2.220.0060.00715.14
7.2.210.0030.01015.11
7.2.200.0050.00715.05
7.2.190.0100.00615.08
7.2.180.0090.00515.03
7.2.170.0070.00815.17
7.2.160.0080.00814.98
7.2.150.0070.00716.72
7.2.140.0080.00716.95
7.2.130.0050.00716.96
7.2.120.0040.01116.83
7.2.110.0060.00916.92
7.2.100.0090.00516.92
7.2.90.0060.00717.00
7.2.80.0050.00916.97
7.2.70.0020.01116.83
7.2.60.0050.00917.00
7.2.50.0040.00916.88
7.2.40.0050.00717.04
7.2.30.0060.00716.98
7.2.20.0050.00617.00
7.2.10.0070.00717.16
7.2.00.0070.00617.52
7.1.330.0080.00815.81
7.1.320.0060.00815.73
7.1.310.0070.00715.87
7.1.300.0070.00815.87
7.1.290.0050.00715.90
7.1.280.0040.00715.83
7.1.270.0030.00915.88
7.1.260.0060.00615.70
7.1.250.0060.00515.77
7.1.240.0040.00715.83
7.1.230.0070.00615.95
7.1.220.0060.00715.89
7.1.210.0030.01215.80
7.1.200.0050.00815.85
7.1.190.0050.00615.69
7.1.180.0040.01115.92
7.1.170.0050.00915.72
7.1.160.0050.00515.68
7.1.150.0090.00415.72
7.1.140.0020.00715.84
7.1.130.0110.00315.88
7.1.120.0050.01115.92
7.1.110.0040.01015.67
7.1.100.0300.01016.01
7.1.90.0020.01215.83
7.1.80.0040.00715.78
7.1.70.0060.00716.24
7.1.60.0070.01117.09
7.1.50.0090.00816.24
7.1.40.0110.00115.91
7.1.30.0040.00415.71
7.1.20.0050.00815.74
7.1.10.0100.00315.95
7.1.00.0050.02918.09
7.0.330.0060.00815.09
7.0.320.0090.00315.38
7.0.310.0070.00715.37
7.0.300.0060.00615.33
7.0.290.0040.00815.47
7.0.280.0050.00915.37
7.0.270.0040.00715.50
7.0.260.0020.01015.42
7.0.250.0040.00815.46
7.0.240.0060.00815.62
7.0.230.0040.00715.35
7.0.220.0030.01115.32
7.0.210.0040.01015.39
7.0.200.0070.00715.92
7.0.190.0050.00715.58
7.0.180.0040.00715.42
7.0.170.0060.00815.51
7.0.160.0030.00715.48
7.0.150.0080.00515.38
7.0.140.0080.02817.51
7.0.130.0050.00915.38
7.0.120.0050.00815.44
7.0.110.0020.00915.24
7.0.100.0030.01115.49
7.0.90.0040.03217.00
7.0.80.0100.03216.78
7.0.70.0080.03116.95
7.0.60.0090.03416.97
7.0.50.0230.02817.00
7.0.40.0100.03115.70
7.0.30.0030.02115.60
7.0.20.0010.03615.58
7.0.10.0030.02515.77
7.0.00.0060.03115.70
5.6.400.0080.00714.30
5.6.390.0080.00514.30
5.6.380.0060.00414.26
5.6.370.0070.00914.40
5.6.360.0060.00614.32
5.6.350.0080.00514.45
5.6.340.0050.00814.50
5.6.330.0030.01014.37
5.6.320.0070.00714.34
5.6.310.0070.00414.31
5.6.300.0060.00814.53
5.6.290.0080.00514.35
5.6.280.0030.02916.86
5.6.270.0070.00614.34
5.6.260.0070.00514.38
5.6.250.0060.00414.39
5.6.240.0060.01014.34
5.6.230.0070.03116.56
5.6.220.0090.02616.36
5.6.210.0010.03516.56
5.6.200.0070.03216.63
5.6.190.0120.02516.62
5.6.180.0120.02916.54
5.6.170.0060.02416.54
5.6.160.0110.02916.61
5.6.150.0080.03316.67
5.6.140.0090.03016.67
5.6.130.0120.02516.54
5.6.120.0050.02716.60
5.6.110.0070.02716.66
5.6.100.0040.03316.54
5.6.90.0070.02416.56
5.6.80.0070.01916.39
5.6.70.0050.02716.23
5.6.60.0070.03216.25
5.6.50.0090.02416.43
5.6.40.0070.03616.42
5.6.30.0090.02816.36
5.6.20.0080.02716.35
5.6.10.0030.03516.29
5.6.00.0070.03116.41
5.5.380.0080.00714.29
5.5.370.0060.03316.31
5.5.360.0100.02716.37
5.5.350.0100.02916.36
5.5.340.0040.03516.33
5.5.330.0040.03716.36
5.5.320.0080.03116.47
5.5.310.0070.01816.54
5.5.300.0090.02916.63
5.5.290.0040.03616.50
5.5.280.0060.03416.52
5.5.270.0070.03116.65
5.5.260.0070.03416.54
5.5.250.0070.02616.46
5.5.240.0040.02216.16
5.5.230.0060.03116.23
5.5.220.0050.01816.20
5.5.210.0120.02716.21
5.5.200.0090.01616.29
5.5.190.0050.03316.26
5.5.180.0100.02616.13
5.5.170.0060.00614.22
5.5.160.0110.02716.25
5.5.150.0050.03416.26
5.5.140.0060.03016.33
5.5.130.0080.01816.14
5.5.120.0080.02916.02
5.5.110.0090.02516.29
5.5.100.0050.03316.19
5.5.90.0060.02016.19
5.5.80.0100.02016.32
5.5.70.0080.03116.14
5.5.60.0090.02816.28
5.5.50.0070.02316.20
5.5.40.0060.02816.20
5.5.30.0050.02316.14
5.5.20.0050.02416.20
5.5.10.0100.01916.28
5.5.00.0080.02116.06
5.4.450.0080.02814.18
5.4.440.0030.03214.23
5.4.430.0060.02914.39
5.4.420.0110.02714.28
5.4.410.0090.01714.32
5.4.400.0050.02914.17
5.4.390.0050.02414.20
5.4.380.0090.02714.17
5.4.370.0060.01514.15
5.4.360.0050.02914.12
5.4.350.0050.02914.20
5.4.340.0050.03014.10
5.4.330.0000.01011.69
5.4.320.0010.03314.07
5.4.310.0080.02614.08
5.4.300.0050.02814.21
5.4.290.0080.02314.18
5.4.280.0100.01314.17
5.4.270.0060.02614.08
5.4.260.0020.03414.26
5.4.250.0030.02914.13
5.4.240.0060.02914.14
5.4.230.0060.02714.08
5.4.220.0070.01814.09
5.4.210.0060.01814.04
5.4.200.0050.01514.14
5.4.190.0030.03014.16
5.4.180.0060.02214.19
5.4.170.0060.01614.09
5.4.160.0060.01314.21
5.4.150.0040.01714.14
5.4.140.0040.02213.35
5.4.130.0030.01613.17
5.4.120.0020.01713.25
5.4.110.0040.01813.23
5.4.100.0070.01913.35
5.4.90.0050.01713.14
5.4.80.0070.01413.28
5.4.70.0030.02913.22
5.4.60.0020.03013.31
5.4.50.0040.01613.25
5.4.40.0040.02813.32
5.4.30.0060.02213.30
5.4.20.0020.02813.32
5.4.10.0070.01613.28
5.4.00.0020.01813.10
5.3.290.0060.03012.58
5.3.280.0040.03312.51
5.3.270.0020.02012.53
5.3.260.0060.01712.53
5.3.250.0040.01812.49
5.3.240.0050.02312.41
5.3.230.0050.01412.48
5.3.220.0020.01712.36
5.3.210.0030.02312.49
5.3.200.0030.01512.46
5.3.190.0030.01712.50
5.3.180.0020.02812.53
5.3.170.0030.02612.54
5.3.160.0100.02212.58
5.3.150.0070.01712.52
5.3.140.0050.02912.50
5.3.130.0020.02112.50
5.3.120.0030.02812.51
5.3.110.0060.01612.45
5.3.100.0060.02212.37
5.3.90.0100.01312.31
5.3.80.0040.01712.24
5.3.70.0060.02712.30
5.3.60.0090.01412.28
5.3.50.0020.01712.26
5.3.40.0030.01912.20
5.3.30.0060.01412.23
5.3.20.0030.01512.12
5.3.10.0020.01712.15
5.3.00.0040.02312.14
5.2.170.0070.03013.80
5.2.160.0070.02713.80
5.2.150.0030.03013.80
5.2.140.0000.02713.80
5.2.130.0030.02713.80
5.2.120.0000.03313.80
5.2.110.0000.02713.80
5.2.100.0000.03013.80
5.2.90.0000.06713.80
5.2.80.0070.02013.80
5.2.70.0030.05013.80
5.2.60.0030.04013.80
5.2.50.0070.03313.80
5.2.40.0030.03713.80
5.2.30.0000.04013.80
5.2.20.0000.03713.80
5.2.10.0070.02313.80
5.2.00.0000.03013.80
5.1.60.0000.02713.80
5.1.50.0000.02713.80
5.1.40.0030.02313.80
5.1.30.0030.03313.80
5.1.20.0070.03013.80
5.1.10.0000.03013.80
5.1.00.0000.02313.80
5.0.50.0000.02013.80
5.0.40.0000.02013.80
5.0.30.0000.04313.80
5.0.20.0000.02013.80
5.0.10.0030.01713.80
5.0.00.0000.02713.80
4.4.90.0030.03013.80
4.4.80.0000.03313.80
4.4.70.0000.01713.80
4.4.60.0000.01713.80
4.4.50.0030.01313.80
4.4.40.0000.02713.80
4.4.30.0000.01713.80
4.4.20.0030.01313.80
4.4.10.0000.01713.80
4.4.00.0000.03013.80
4.3.110.0030.01313.80
4.3.100.0030.01313.80
4.3.90.0030.01013.80
4.3.80.0000.02313.80
4.3.70.0000.01313.80
4.3.60.0000.01713.80
4.3.50.0000.01713.80
4.3.40.0000.02313.80
4.3.30.0000.01713.80
4.3.20.0000.02013.80
4.3.10.0000.02013.80
4.3.00.0030.01313.80

preferences:
45.08 ms | 401 KiB | 5 Q