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' => 98, 'edition' => 3); $data[] = array('volume' => 98, 'edition' => 1); $data[] = array('volume' => 86, 'edition' => 6); $data[] = array('volume' => 67, 'edition' => 7); foreach ($data as $key => $row) { echo $key; $volume[$key] = $row['volume']; $edition[$key] = $row['edition']; } print_r($volume); // 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); print_r($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.60.0140.00716.88
8.3.50.0170.00716.50
8.3.40.0110.00718.85
8.3.30.0090.00618.84
8.3.20.0080.00018.76
8.3.10.0040.00720.49
8.3.00.0050.00319.38
8.2.180.0100.00618.54
8.2.170.0110.00422.96
8.2.160.0030.01018.94
8.2.150.0000.00824.18
8.2.140.0030.01024.66
8.2.130.0050.00326.16
8.2.120.0040.00420.57
8.2.110.0090.00020.93
8.2.100.0040.00717.91
8.2.90.0030.00619.40
8.2.80.0040.00419.31
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0060.00319.88
8.2.30.0050.00518.12
8.2.20.0000.00819.38
8.2.10.0050.00317.70
8.2.00.0100.00017.77
8.1.280.0070.01125.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00322.04
8.1.230.0070.00320.90
8.1.220.0030.00618.77
8.1.210.0080.00019.10
8.1.200.0090.00017.24
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0000.00818.90
8.1.160.0040.00418.92
8.1.150.0040.00418.63
8.1.140.0020.00517.55
8.1.130.0050.00317.85
8.1.120.0070.00017.40
8.1.110.0000.00717.40
8.1.100.0040.00417.48
8.1.90.0080.00017.47
8.1.80.0040.00417.51
8.1.70.0030.00317.38
8.1.60.0030.00517.52
8.1.50.0000.00817.40
8.1.40.0040.00417.54
8.1.30.0040.00417.71
8.1.20.0040.00417.62
8.1.10.0000.00717.55
8.1.00.0060.00317.51
8.0.300.0080.00019.80
8.0.290.0040.00416.63
8.0.280.0040.00418.48
8.0.270.0030.00317.22
8.0.260.0030.00316.73
8.0.250.0040.00416.97
8.0.240.0000.00716.97
8.0.230.0000.00716.86
8.0.220.0070.00016.78
8.0.210.0070.00016.79
8.0.200.0060.00316.85
8.0.190.0040.00416.86
8.0.180.0040.00416.91
8.0.170.0050.00316.77
8.0.160.0040.00416.89
8.0.150.0060.00316.81
8.0.140.0050.00516.94
8.0.130.0030.00313.36
8.0.120.0030.00616.83
8.0.110.0080.00316.80
8.0.100.0040.00416.94
8.0.90.0040.00416.79
8.0.80.0060.01216.98
8.0.70.0070.00016.79
8.0.60.0070.00016.93
8.0.50.0030.00617.00
8.0.30.0080.00817.15
8.0.20.0100.00817.03
8.0.10.0040.00417.11
8.0.00.0100.01416.70
7.4.330.0020.00213.04
7.4.320.0060.00016.64
7.4.300.0030.00316.54
7.4.290.0070.00016.52
7.4.280.0080.00016.42
7.4.270.0070.00016.64
7.4.260.0030.00313.31
7.4.250.0000.00916.51
7.4.240.0080.00016.45
7.4.230.0000.00816.44
7.4.220.0130.00616.43
7.4.210.0070.01316.66
7.4.200.0040.00416.52
7.4.190.0070.00016.40
7.4.160.0100.00716.66
7.4.150.0180.00616.32
7.4.140.0150.00616.38
7.4.130.0120.00616.61
7.4.120.0000.01616.55
7.4.110.0110.00716.63
7.4.100.0160.00816.43
7.4.90.0060.01316.57
7.4.80.0160.01019.39
7.4.70.0160.00016.32
7.4.60.0090.00616.51
7.4.50.0030.00316.71
7.4.40.0040.01116.59
7.4.30.0070.01016.74
7.4.00.0060.00714.91
7.3.330.0030.00313.20
7.3.320.0030.00313.04
7.3.310.0050.00216.30
7.3.300.0000.00716.30
7.3.290.0080.01116.34
7.3.280.0080.01216.42
7.3.270.0040.01516.58
7.3.260.0120.00616.45
7.3.250.0120.00916.53
7.3.240.0040.01816.39
7.3.230.0030.01416.37
7.3.210.0100.00716.46
7.3.200.0060.01516.44
7.3.190.0050.01716.35
7.3.180.0040.01116.64
7.3.170.0160.00716.36
7.3.160.0080.00816.38
7.3.120.0090.00914.93
7.3.110.0090.00915.02
7.3.100.0130.00314.54
7.3.90.0150.00014.83
7.3.80.0100.00315.02
7.3.70.0150.00014.70
7.3.60.0090.00614.87
7.3.50.0100.00314.74
7.3.40.0000.01014.73
7.3.30.0100.00714.54
7.3.20.0090.00916.51
7.3.10.0070.01016.76
7.3.00.0000.01016.60
7.2.330.0070.01116.47
7.2.320.0080.00816.75
7.2.310.0060.01216.67
7.2.300.0080.00816.41
7.2.290.0060.01216.57
7.2.250.0120.00615.30
7.2.240.0070.01415.20
7.2.230.0090.00615.21
7.2.220.0130.00315.21
7.2.210.0060.00614.90
7.2.200.0030.00715.02
7.2.190.0000.01615.06
7.2.180.0030.00914.79
7.2.170.0100.00614.97
7.2.00.0100.00319.33
7.1.330.0080.00315.65
7.1.320.0030.00915.91
7.1.310.0080.00815.98
7.1.300.0120.00315.89
7.1.290.0030.01015.66
7.1.280.0090.00615.61
7.1.270.0060.01015.97
7.1.260.0000.01415.85
7.1.100.0030.00918.10
7.1.70.0000.00717.08
7.1.60.0000.02519.17
7.1.50.0030.01216.85
7.1.00.0030.06022.32
7.0.200.0380.00314.56
7.0.140.0030.07322.18
7.0.120.0070.07322.05
7.0.60.0100.08019.83
7.0.50.0100.07717.87
7.0.40.0070.04317.76
7.0.30.0100.07017.71
7.0.20.0000.08317.84
7.0.10.0130.08017.91
7.0.00.0070.06317.79
5.6.280.0200.06020.91
5.6.210.0130.07720.72
5.6.200.0130.07018.12
5.6.190.0070.09018.19
5.6.180.0070.08018.15
5.6.170.0030.06318.16
5.6.160.0100.07718.18
5.6.150.0130.07018.23
5.6.140.0100.08018.18
5.6.130.0030.06018.19
5.6.120.0100.08018.15
5.6.110.0070.04018.27
5.6.100.0100.04718.14
5.6.90.0130.07718.21
5.6.80.0030.05017.67
5.6.70.0100.06717.50
5.6.60.0100.06017.55
5.6.50.0100.06317.54
5.6.40.0070.06317.51
5.6.30.0100.06317.55
5.6.20.0000.04717.50
5.6.10.0070.07717.55
5.6.00.0070.03717.45
5.5.350.0230.08320.34
5.5.340.0030.05318.13
5.5.330.0070.05317.95
5.5.320.0200.06717.97
5.5.310.0070.08318.00
5.5.300.0070.04017.94
5.5.290.0130.03318.08
5.5.280.0000.04717.98
5.5.270.0200.06718.00
5.5.260.0070.08318.07
5.5.250.0130.07317.79
5.5.240.0100.03317.37
5.5.230.0000.07717.32
5.5.220.0070.08017.35
5.5.210.0100.06317.45
5.5.200.0170.06717.43
5.5.190.0070.04317.27
5.5.180.0070.03717.36
5.5.160.0130.03317.30
5.5.150.0070.03717.41
5.5.140.0030.04017.26
5.5.130.0030.04317.43
5.5.120.0030.04017.43
5.5.110.0030.04717.31
5.5.100.0070.04717.33
5.5.90.0100.07017.23
5.5.80.0130.04017.30
5.5.70.0030.04717.20
5.5.60.0100.04017.32
5.5.50.0170.04717.33
5.5.40.0070.05717.25
5.5.30.0170.06317.23
5.5.20.0130.07017.19
5.5.10.0170.06317.20
5.5.00.0070.05017.27
5.4.450.0030.08319.42
5.4.440.0070.08019.43
5.4.430.0100.07319.27
5.4.420.0130.06719.59
5.4.410.0130.06319.21
5.4.400.0100.07019.04
5.4.390.0070.04719.12
5.4.380.0030.05718.98
5.4.370.0130.07019.09
5.4.360.0200.06719.02
5.4.350.0130.07318.98
5.4.340.0130.05019.12
5.4.320.0030.04019.05
5.4.310.0200.05718.96
5.4.300.0030.04019.12
5.4.290.0030.05019.05
5.4.280.0000.04319.03
5.4.270.0000.04319.09
5.4.260.0070.03718.88
5.4.250.0030.04718.98
5.4.240.0130.05019.08
5.4.230.0130.07319.09
5.4.220.0070.05719.04
5.4.210.0070.06718.95
5.4.200.0070.07019.09
5.4.190.0100.07019.11
5.4.180.0070.07719.01
5.4.170.0070.08019.04
5.4.160.0030.07719.01
5.4.150.0170.07018.99
5.4.140.0130.06316.58
5.4.130.0130.06316.42
5.4.120.0030.08016.54
5.4.110.0100.07016.43
5.4.100.0100.07316.30
5.4.90.0070.06016.41
5.4.80.0030.07016.34
5.4.70.0130.07016.39
5.4.60.0070.05716.41
5.4.50.0030.07316.45
5.4.40.0000.04316.25
5.4.30.0200.06316.45
5.4.20.0130.08016.29
5.4.10.0070.07716.33
5.4.00.0030.04315.85
5.3.290.0070.05014.71
5.3.280.0100.03714.64
5.3.270.0100.06314.56
5.3.260.0100.07014.55
5.3.250.0070.06014.59
5.3.240.0130.04314.70
5.3.230.0130.07714.63
5.3.220.0000.05014.52
5.3.210.0030.06714.52
5.3.200.0070.04314.41
5.3.190.0070.05314.77
5.3.180.0070.08014.59
5.3.170.0100.07014.66
5.3.160.0030.05314.61
5.3.150.0000.06014.58
5.3.140.0030.04014.60
5.3.130.0100.04714.59
5.3.120.0130.07314.59
5.3.110.0070.07714.50
5.3.100.0030.04014.15
5.3.90.0070.03714.04
5.3.80.0030.04714.22
5.3.70.0100.04714.22
5.3.60.0100.06014.09
5.3.50.0000.05013.95
5.3.40.0070.06013.96
5.3.30.0030.04013.95
5.3.20.0070.05713.91
5.3.10.0070.03313.86
5.3.00.0030.05013.48
5.2.170.0100.02311.36
5.2.160.0100.02311.22
5.2.150.0030.03011.16
5.2.140.0070.05011.14
5.2.130.0030.06311.10
5.2.120.0030.06311.14
5.2.110.0070.05311.13
5.2.100.0070.04311.12
5.2.90.0000.07311.31
5.2.80.0070.03711.10
5.2.70.0000.05711.15
5.2.60.0030.06011.07
5.2.50.0070.02711.03
5.2.40.0030.05011.00
5.2.30.0000.04310.87
5.2.20.0000.04710.95
5.2.10.0100.06010.90
5.2.00.0070.05010.71
5.1.60.0070.04710.09
5.1.50.0030.0309.99
5.1.40.0070.0509.95
5.1.30.0030.04310.34
5.1.20.0000.05710.41
5.1.10.0070.04310.06
5.1.00.0000.05310.10
5.0.50.0100.0408.58
5.0.40.0000.0438.36
5.0.30.0070.0508.06
5.0.20.0070.0438.27
5.0.10.0070.0338.23
5.0.00.0100.0338.24
4.4.90.0070.0207.99
4.4.80.0030.0377.99
4.4.70.0070.0207.99
4.4.60.0000.0337.99
4.4.50.0030.0337.99
4.4.40.0070.0507.99
4.4.30.0000.0177.99
4.4.20.0070.0337.99
4.4.10.0130.0277.99
4.4.00.0030.0577.99
4.3.110.0000.0337.99
4.3.100.0000.0377.99
4.3.90.0030.0277.99
4.3.80.0000.0477.99
4.3.70.0030.0177.99
4.3.60.0000.0407.99
4.3.50.0070.0237.99
4.3.40.0070.0477.99
4.3.30.0000.0407.99
4.3.20.0000.0237.99
4.3.10.0000.0307.99
4.3.00.0000.0377.99

preferences:
49.92 ms | 401 KiB | 5 Q