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']; } echo '<pre>'; print_r($volume); echo '<br /> edition'; print_r($edition); $result=array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data); print_r($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)
8.3.60.0110.00416.50
8.3.50.0080.00917.32
8.3.40.0110.00718.79
8.3.30.0060.00918.86
8.3.20.0080.00018.65
8.3.10.0050.00320.74
8.3.00.0040.00419.38
8.2.180.0140.00716.63
8.2.170.0140.00022.96
8.2.160.0140.00021.07
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00020.94
8.2.110.0040.00421.04
8.2.100.0080.00417.91
8.2.90.0030.00619.30
8.2.80.0000.00719.34
8.2.70.0000.00917.49
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0000.00819.94
8.2.30.0040.00418.11
8.2.20.0000.00817.79
8.2.10.0040.00417.85
8.2.00.0070.00017.76
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.45
8.1.230.0100.00321.03
8.1.220.0050.00317.88
8.1.210.0000.00919.03
8.1.200.0030.00617.23
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0040.00418.89
8.1.160.0000.00718.78
8.1.150.0000.00718.57
8.1.140.0000.00717.39
8.1.130.0000.00717.80
8.1.120.0000.00717.40
8.1.110.0040.00417.38
8.1.100.0050.00217.49
8.1.90.0040.00417.48
8.1.80.0030.00617.48
8.1.70.0030.00317.49
8.1.60.0030.00517.48
8.1.50.0020.00517.50
8.1.40.0050.00217.55
8.1.30.0040.00417.55
8.1.20.0040.00417.66
8.1.10.0030.00517.60
8.1.00.0050.00317.43
8.0.300.0050.00319.93
8.0.290.0070.00016.63
8.0.280.0000.00718.41
8.0.270.0070.00017.21
8.0.260.0040.00416.89
8.0.250.0040.00416.92
8.0.240.0000.00717.05
8.0.230.0030.00316.85
8.0.220.0000.00716.82
8.0.210.0040.00416.93
8.0.200.0030.00316.84
8.0.190.0020.00516.98
8.0.180.0070.00016.91
8.0.170.0040.00416.85
8.0.160.0040.00417.02
8.0.150.0030.00516.84
8.0.140.0040.00416.93
8.0.130.0060.00013.42
8.0.120.0080.00016.80
8.0.110.0070.00016.91
8.0.100.0040.00416.97
8.0.90.0000.00716.81
8.0.80.0110.00416.83
8.0.70.0000.00716.80
8.0.60.0080.00016.93
8.0.50.0000.00816.76
8.0.30.0120.00917.05
8.0.20.0080.01417.17
8.0.10.0040.00416.93
8.0.00.0090.00916.87
7.4.330.0020.00212.99
7.4.320.0030.00316.63
7.4.300.0000.00816.44
7.4.290.0030.00316.59
7.4.280.0080.00016.66
7.4.270.0040.00416.54
7.4.260.0030.00313.28
7.4.250.0030.00716.46
7.4.240.0040.00416.64
7.4.230.0030.00316.37
7.4.220.0160.00616.49
7.4.210.0060.00916.60
7.4.200.0040.00416.50
7.4.190.0030.00316.74
7.4.160.0090.00616.52
7.4.150.0150.00316.55
7.4.140.0130.01016.55
7.4.130.0110.00516.57
7.4.120.0070.01516.59
7.4.110.0110.00516.55
7.4.100.0100.00716.46
7.4.90.0160.00716.62
7.4.80.0100.00716.64
7.4.70.0090.01516.53
7.4.60.0040.01216.62
7.4.50.0000.01316.58
7.4.40.0070.01016.19
7.4.30.0070.01116.44
7.4.00.0100.00714.84
7.3.330.0000.00613.20
7.3.320.0060.00013.23
7.3.310.0070.00016.41
7.3.300.0040.00416.33
7.3.290.0060.01216.30
7.3.280.0150.00416.32
7.3.270.0210.00416.38
7.3.260.0140.00716.58
7.3.250.0080.01016.38
7.3.240.0130.00316.42
7.3.230.0130.00316.36
7.3.210.0220.00416.66
7.3.200.0140.00319.39
7.3.190.0070.01416.42
7.3.180.0090.00616.34
7.3.170.0110.01216.52
7.3.160.0140.00716.45
7.3.120.0070.00614.89
7.3.110.0130.00314.86
7.3.100.0060.00914.76
7.3.90.0000.01415.00
7.3.80.0060.00614.84
7.3.70.0140.00315.00
7.3.60.0060.00914.85
7.3.50.0000.01214.84
7.3.40.0090.00314.79
7.3.30.0070.01014.85
7.3.20.0070.00716.71
7.3.10.0070.00516.56
7.3.00.0100.00516.65
7.2.330.0130.00616.64
7.2.320.0090.01516.65
7.2.310.0120.00616.73
7.2.300.0060.01016.50
7.2.290.0080.00916.61
7.2.250.0100.01015.07
7.2.240.0080.01115.22
7.2.230.0100.00615.30
7.2.220.0100.01014.98
7.2.210.0030.00915.27
7.2.200.0070.01014.77
7.2.190.0100.00615.10
7.2.180.0000.01315.30
7.2.170.0000.00915.16
7.2.130.0100.00317.02
7.2.120.0060.00316.94
7.2.110.0090.00616.87
7.2.100.0030.00617.15
7.2.90.0080.00516.93
7.2.80.0000.01216.94
7.2.70.0030.00916.84
7.2.60.0030.00716.88
7.2.50.0070.01116.85
7.2.40.0040.01116.88
7.2.30.0070.01016.97
7.2.20.0000.01017.03
7.2.10.0030.01317.03
7.2.00.0000.01318.13
7.1.330.0100.00315.82
7.1.320.0000.01215.88
7.1.310.0070.00315.75
7.1.300.0000.01715.80
7.1.290.0070.00715.88
7.1.280.0060.00615.79
7.1.270.0040.01115.85
7.1.260.0070.00716.00
7.1.250.0030.01315.60
7.1.200.0040.00715.93
7.1.100.0060.00618.32
7.1.70.0030.00717.20
7.1.60.0060.01919.40
7.1.50.0030.01716.70
7.1.00.0000.05022.36
7.0.200.0550.00314.67
7.0.140.0070.07322.00
7.0.120.0070.04021.97
7.0.60.0130.08019.82
7.0.50.0030.04017.89
7.0.40.0070.06020.04
7.0.30.0330.05720.06
7.0.20.0230.07720.26
7.0.10.0070.09020.10
7.0.00.0070.06020.33
5.6.280.0100.06720.92
5.6.210.0100.07720.62
5.6.200.0070.08018.14
5.6.190.0100.07720.60
5.6.180.0300.07320.81
5.6.170.0270.07720.55
5.6.160.0070.08320.56
5.6.150.0100.03318.15
5.6.140.0030.08018.18
5.6.130.0100.07318.18
5.6.120.0100.06320.99
5.6.110.0000.06321.04
5.6.100.0100.06020.96
5.6.90.0030.09020.96
5.6.80.0070.05720.41
5.6.70.2500.03320.39
5.5.350.0130.07020.43
5.5.340.0030.03718.03
5.5.330.0100.03320.21
5.5.320.0370.06320.27
5.5.310.0230.04320.36
5.5.300.0130.07318.09
5.5.290.0070.06017.95
5.5.280.0170.04020.65
5.5.270.0000.04320.79
5.5.260.0100.06020.86
5.5.250.0030.04020.58
5.5.240.0170.09320.28
5.4.450.0070.05719.33
5.4.440.0030.04719.57
5.4.430.0100.07719.46
5.4.420.0100.07319.46
5.4.410.0030.08019.29
5.4.400.0070.04319.01
5.4.390.0100.05319.19
5.4.380.0100.07019.10
5.4.370.0170.06318.87
5.4.360.0000.06719.14
5.4.350.0000.04318.87
5.4.340.0070.07718.99
5.4.320.0030.08319.00
5.4.310.0030.04019.23
5.4.300.0030.07319.23
5.4.290.0100.05019.23
5.4.280.0030.04019.15
5.4.270.0030.03718.85
5.4.260.0100.07018.91
5.4.250.0070.08018.84
5.4.240.0070.05018.91
5.4.230.0000.04718.99
5.4.220.0070.03719.23
5.4.210.0030.04019.19
5.4.200.0030.04319.00
5.4.190.0100.03319.19
5.4.180.0030.03719.19
5.4.170.0070.03319.11
5.4.160.0030.03719.22
5.4.150.0000.04019.05
5.4.140.0000.03716.31
5.4.130.0000.03716.45
5.4.120.0030.03316.37
5.4.110.0000.03716.33
5.4.100.0000.03716.41
5.4.90.0000.03716.42
5.4.80.0000.03716.45
5.4.70.0000.03716.39
5.4.60.0000.04316.40
5.4.50.0030.03716.28
5.4.40.0030.04016.27
5.4.30.0070.03016.36
5.4.20.0000.03716.39
5.4.10.0030.03316.36
5.4.00.0100.02716.04
5.3.290.0070.04314.66
5.3.280.0070.03314.66
5.3.270.0000.04014.75
5.3.260.0000.04014.67
5.3.250.0000.04014.61
5.3.240.0030.03714.66
5.3.230.0030.03714.59
5.3.220.0000.04014.58
5.3.210.0100.03014.62
5.3.200.0000.04314.58
5.3.190.0030.03714.61
5.3.180.0070.03314.57
5.3.170.0070.03314.59
5.3.160.0100.03014.56
5.3.150.0000.04014.45
5.3.140.0070.03014.61
5.3.130.0070.03314.70
5.3.120.0030.03714.54
5.3.110.0000.04014.70
5.3.100.0070.03314.18
5.3.90.0000.03714.06
5.3.80.0070.03014.05
5.3.70.0030.03714.07
5.3.60.0000.03714.07
5.3.50.0070.03014.09
5.3.40.0000.03713.95
5.3.30.0000.03714.05
5.3.20.0030.04713.73
5.3.10.0000.06313.57
5.3.00.0070.06713.63
5.2.170.0100.03311.21
5.2.160.0000.03011.32
5.2.150.0070.02311.16
5.2.140.0070.03011.09
5.2.130.0070.05711.18
5.2.120.0000.04311.18
5.2.110.0000.04311.10
5.2.100.0070.03011.05
5.2.90.0000.04711.03
5.2.80.0070.06011.14
5.2.70.0070.06310.98
5.2.60.0030.03710.93
5.2.50.0100.04010.98
5.2.40.0070.05311.05
5.2.30.0030.06710.99
5.2.20.0030.03310.96
5.2.10.0070.02710.75
5.2.00.0030.06010.77
5.1.60.0030.02710.06
5.1.50.0030.03010.04
5.1.40.0000.0279.96
5.1.30.0030.02710.41
5.1.20.0100.05010.32
5.1.10.0030.05710.07
5.1.00.0070.02710.04
5.0.50.0070.0478.54
5.0.40.0030.0438.56
5.0.30.0000.0508.23
5.0.20.0000.0478.19
5.0.10.0070.0378.24
5.0.00.0070.0278.17
4.4.90.0030.0237.86
4.4.80.0030.0377.86
4.4.70.0000.0277.86
4.4.60.0030.0207.86
4.4.50.0000.0207.86
4.4.40.0000.0337.86
4.4.30.0000.0377.86
4.4.20.0030.0207.86
4.4.10.0000.0377.86
4.4.00.0100.0407.86
4.3.110.0000.0337.86
4.3.100.0030.0337.86
4.3.90.0030.0207.86
4.3.80.0030.0537.86
4.3.70.0000.0177.86
4.3.60.0030.0137.86
4.3.50.0000.0377.86
4.3.40.0070.0337.86
4.3.30.0000.0337.86
4.3.20.0000.0337.86
4.3.10.0070.0137.86
4.3.00.0000.0407.86

preferences:
46.82 ms | 404 KiB | 6 Q