3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[] = array('volume' => 67, 'edition' => 6); $data[] = array('volume' => 86, 'edition' => 5); $data[] = array('volume' => 85, 'edition' => 4); $data[] = array('volume' => 98, 'edition' => 3); $data[] = array('volume' => 86, 'edition' => 2); $data[] = array('volume' => 67, 'edition' => 1); // 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.0170.00316.50
8.3.50.0160.00518.12
8.3.40.0100.01018.79
8.3.30.0040.01218.88
8.3.20.0040.00418.91
8.3.10.0080.00020.50
8.3.00.0030.00617.63
8.2.180.0090.00916.63
8.2.170.0040.01122.96
8.2.160.0170.00022.09
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.95
8.2.110.0140.00721.04
8.2.100.0060.00617.91
8.2.90.0030.00621.08
8.2.80.0040.00418.05
8.2.70.0000.00817.50
8.2.60.0050.00318.02
8.2.50.0000.00918.07
8.2.40.0000.00718.03
8.2.30.0000.00818.14
8.2.20.0000.00817.62
8.2.10.0040.00417.82
8.2.00.0040.00417.63
8.1.280.0120.00925.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.64
8.1.230.0000.01220.95
8.1.220.0040.00417.79
8.1.210.0040.00418.89
8.1.200.0000.00917.36
8.1.190.0000.00817.52
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0000.00718.90
8.1.150.0040.00418.70
8.1.140.0040.00417.40
8.1.130.0070.00017.84
8.1.120.0040.00417.50
8.1.110.0000.00817.48
8.1.100.0050.00317.50
8.1.90.0070.00017.38
8.1.80.0000.00717.41
8.1.70.0040.00417.46
8.1.60.0040.00417.52
8.1.50.0080.00017.45
8.1.40.0040.00417.44
8.1.30.0040.00417.63
8.1.20.0000.00717.65
8.1.10.0040.00417.57
8.1.00.0040.00417.51
8.0.300.0000.00720.02
8.0.290.0040.00416.63
8.0.280.0030.00318.51
8.0.270.0030.00517.34
8.0.260.0000.00616.88
8.0.250.0040.00416.96
8.0.240.0030.00716.96
8.0.230.0000.00916.89
8.0.220.0000.00716.88
8.0.210.0030.00316.91
8.0.200.0030.00316.85
8.0.190.0070.00016.96
8.0.180.0000.00716.88
8.0.170.0040.00416.83
8.0.160.0040.00416.84
8.0.150.0060.00316.90
8.0.140.0000.00816.90
8.0.130.0000.00513.30
8.0.120.0030.00516.86
8.0.110.0000.00716.77
8.0.100.0030.00516.85
8.0.90.0040.00416.90
8.0.80.0100.01016.87
8.0.70.0080.00016.80
8.0.60.0070.00016.78
8.0.50.0080.00016.89
8.0.30.0150.00517.32
8.0.20.0140.00917.00
8.0.10.0040.00416.91
8.0.00.0100.01116.88
7.4.330.0000.00512.93
7.4.320.0000.00616.45
7.4.300.0060.00016.66
7.4.290.0050.00216.62
7.4.280.0090.00016.60
7.4.270.0030.00316.53
7.4.260.0060.00013.34
7.4.250.0040.00416.52
7.4.240.0050.00216.54
7.4.230.0030.00416.50
7.4.220.0110.00716.42
7.4.210.0060.01116.52
7.4.200.0040.00416.36
7.4.190.0000.00716.68
7.4.160.0090.01316.49
7.4.150.0130.00416.54
7.4.140.0050.01416.53
7.4.130.0160.00216.59
7.4.120.0100.00716.52
7.4.110.0130.01016.38
7.4.100.0140.00316.61
7.4.90.0100.01116.38
7.4.80.0130.00616.59
7.4.70.0070.01716.43
7.4.60.0040.01216.51
7.4.50.0000.00616.23
7.4.40.0030.01016.45
7.4.30.0050.01116.55
7.4.00.0030.01014.90
7.3.330.0060.00013.13
7.3.320.0050.00013.19
7.3.310.0030.00316.26
7.3.300.0070.00016.25
7.3.290.0130.00616.30
7.3.280.0070.00816.30
7.3.270.0120.00616.43
7.3.260.0120.01016.49
7.3.250.0130.00516.31
7.3.240.0100.01316.43
7.3.230.0070.01116.39
7.3.210.0190.00016.61
7.3.200.0100.00619.39
7.3.190.0150.00616.47
7.3.180.0120.00316.48
7.3.170.0110.00616.38
7.3.160.0100.00716.47
7.3.120.0120.00314.82
7.3.10.0150.00516.55
7.3.00.0070.00416.64
7.2.330.0100.00716.67
7.2.320.0130.00316.64
7.2.310.0030.01416.69
7.2.300.0120.00716.42
7.2.290.0130.00616.41
7.2.130.0020.01116.73
7.2.120.0040.00716.76
7.2.110.0050.00516.84
7.2.100.0070.00616.87
7.2.90.0060.00616.76
7.2.80.0050.00716.91
7.2.70.0050.00416.85
7.2.60.0090.00316.95
7.2.50.0030.00717.01
7.2.40.0100.00316.96
7.2.30.0070.00516.99
7.2.20.0050.00916.89
7.2.10.0060.00616.84
7.2.00.0050.00717.80
7.1.250.0090.00315.89
7.1.200.0030.01015.88
7.1.100.0030.01218.32
7.1.70.0000.00717.18
7.1.60.0030.02019.40
7.1.50.0080.00316.68
7.1.00.0000.07722.51
7.0.200.0080.00314.97
7.0.140.0030.07322.00
7.0.120.0130.06721.96
7.0.60.0130.07719.91
7.0.50.0070.04717.88
7.0.40.0030.08720.02
7.0.30.0230.03720.23
7.0.20.0200.05020.24
7.0.10.0330.05020.20
7.0.00.0000.04720.20
5.6.280.0000.07721.13
5.6.210.0130.06720.69
5.6.200.0070.04318.19
5.6.190.0100.07020.33
5.6.180.4070.04020.42
5.6.170.0330.04020.46
5.6.160.0030.04020.57
5.6.150.0100.05018.16
5.6.140.0030.08318.27
5.6.130.0030.07018.15
5.6.120.0070.05321.04
5.6.110.0170.08321.13
5.6.100.0100.07320.97
5.6.90.0130.07721.08
5.6.80.0000.08720.35
5.5.350.0070.06320.40
5.5.340.0030.08717.99
5.5.330.0030.06320.21
5.5.320.0200.03720.43
5.5.310.0270.05320.23
5.5.300.0100.07718.00
5.5.290.0070.08017.96
5.5.280.0170.06720.74
5.5.270.0130.07720.63
5.5.260.0030.05320.95
5.5.250.0130.07020.49
5.5.240.0100.05720.26
5.4.450.0130.08019.20
5.4.440.0100.05319.18
5.4.430.0070.08319.46
5.4.420.0070.08319.56
5.4.410.0070.05019.34
5.4.400.0070.07019.16
5.4.390.0070.05718.96
5.4.380.0130.04019.20
5.4.370.0000.08019.00
5.4.360.0030.04319.12
5.4.350.0100.03719.00
5.4.340.0100.05019.28
5.4.320.0100.06319.24
5.4.310.0000.08018.87
5.4.300.0130.04319.14
5.4.290.0030.04318.84
5.4.280.0070.04019.11
5.4.270.0030.07719.14
5.4.260.0100.07018.97
5.4.250.0100.06319.20
5.4.240.0100.05718.99
5.4.230.0030.05719.14
5.4.220.0000.07719.14
5.4.210.0170.04019.20
5.4.200.0130.06718.97
5.4.190.0130.06719.14
5.4.180.0070.07719.19
5.4.170.0100.07018.84
5.4.160.0100.07319.14
5.4.150.0030.05019.09
5.4.140.0070.06316.46
5.4.130.0170.06316.38
5.4.120.0170.06716.40
5.4.110.0100.03716.30
5.4.100.0000.06316.66
5.4.90.0170.06016.53
5.4.80.0100.03016.26
5.4.70.0030.06316.45
5.4.60.0030.07016.25
5.4.50.0070.05716.65
5.4.40.0000.07716.27
5.4.30.0030.06316.42
5.4.20.0030.07316.45
5.4.10.0000.07016.40
5.4.00.0030.06715.98
5.3.290.0100.04014.69
5.3.280.0000.06314.61
5.3.270.0070.05314.52
5.3.260.0100.05714.52
5.3.250.0100.07014.49
5.3.240.0100.06714.60
5.3.230.0030.05714.74
5.3.220.0030.05014.59
5.3.210.0100.04014.59
5.3.200.0030.07314.52
5.3.190.0070.07014.64
5.3.180.0000.04714.63
5.3.170.0030.07014.63
5.3.160.0070.07014.61
5.3.150.0030.08314.48
5.3.140.0070.07714.44
5.3.130.0070.07714.60
5.3.120.0030.08314.57
5.3.110.0000.08314.57
5.3.100.0000.07313.92
5.3.90.0030.06313.93
5.3.80.0070.05314.04
5.3.70.0030.07714.02
5.3.60.0030.04014.02
5.3.50.0100.07013.96
5.3.40.0170.06013.87
5.3.30.0070.06313.98
5.3.20.0070.06713.76
5.3.10.0100.07313.71
5.3.00.0070.08013.79
5.2.170.0100.05711.16
5.2.160.0070.04011.09
5.2.150.0070.05711.15
5.2.140.0100.05711.09
5.2.130.0000.05311.03
5.2.120.0070.04711.15
5.2.110.0070.04011.09
5.2.100.0100.04311.07
5.2.90.0030.03311.16
5.2.80.0130.02711.14
5.2.70.0030.06011.04
5.2.60.0000.04311.02
5.2.50.0070.04010.98
5.2.40.0130.05710.99
5.2.30.0030.04311.12
5.2.20.0030.03011.11
5.2.10.0070.06010.91
5.2.00.0070.03310.78
5.1.60.0070.05010.14
5.1.50.0030.0309.95
5.1.40.0070.0639.95
5.1.30.0000.06310.32
5.1.20.0070.05010.34
5.1.10.0000.05010.22
5.1.00.0000.03310.13
5.0.50.0170.0178.70
5.0.40.0070.0278.70
5.0.30.0000.0438.70
5.0.20.0030.0238.70
5.0.10.0000.0308.70
5.0.00.0030.0338.70
4.4.90.0000.0338.70
4.4.80.0030.0278.70
4.4.70.0030.0208.70
4.4.60.0030.0378.70
4.4.50.0070.0238.70
4.4.40.0000.0578.70
4.4.30.0030.0308.70
4.4.20.0030.0378.70
4.4.10.0000.0238.70
4.4.00.0100.0438.70
4.3.110.0000.0278.70
4.3.100.0030.0338.70
4.3.90.0070.0238.70
4.3.80.0030.0278.70
4.3.70.0100.0308.70
4.3.60.0000.0208.70
4.3.50.0000.0308.70
4.3.40.0030.0578.70
4.3.30.0070.0238.70
4.3.20.0000.0178.70
4.3.10.0000.0378.70
4.3.00.0000.0208.70

preferences:
35.63 ms | 401 KiB | 5 Q