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); 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.70.0080.00816.63
8.3.60.0170.00318.55
8.3.50.0130.00321.98
8.3.40.0110.00418.71
8.3.30.0120.00318.79
8.3.20.0050.00318.59
8.3.10.0080.00021.09
8.3.00.0040.00423.61
8.2.180.0140.00716.63
8.2.170.0030.01022.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0040.00421.15
8.2.110.0060.00320.49
8.2.100.0060.00617.72
8.2.90.0050.00319.36
8.2.80.0060.00318.03
8.2.70.0090.00017.63
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00618.34
8.2.30.0060.00319.82
8.2.20.0030.00517.75
8.2.10.0070.00017.66
8.2.00.0050.00217.73
8.1.280.0170.00025.92
8.1.270.0000.00823.99
8.1.260.0030.01426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0040.00820.97
8.1.220.0040.00418.77
8.1.210.0060.00318.97
8.1.200.0030.00617.25
8.1.190.0030.00617.66
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0020.00518.91
8.1.150.0050.00318.55
8.1.140.0080.00017.36
8.1.130.0030.00317.77
8.1.120.0050.00217.36
8.1.110.0000.00817.45
8.1.100.0050.00217.47
8.1.90.0000.00717.49
8.1.80.0040.00417.50
8.1.70.0040.00417.41
8.1.60.0000.00717.50
8.1.50.0000.00817.48
8.1.40.0000.00717.53
8.1.30.0040.00417.62
8.1.20.0030.00517.70
8.1.10.0040.00417.45
8.1.00.0040.00417.44
8.0.300.0000.00720.04
8.0.290.0000.00717.18
8.0.280.0070.00018.55
8.0.270.0050.00217.26
8.0.260.0000.00616.74
8.0.250.0040.00416.88
8.0.240.0040.00416.82
8.0.230.0050.00216.92
8.0.220.0070.00016.79
8.0.210.0030.00316.92
8.0.200.0050.00316.95
8.0.190.0000.00816.95
8.0.180.0040.00416.88
8.0.170.0000.00716.80
8.0.160.0040.00316.81
8.0.150.0000.00816.75
8.0.140.0070.00016.85
8.0.130.0050.00013.34
8.0.120.0000.00816.74
8.0.110.0050.00216.86
8.0.100.0000.00816.78
8.0.90.0040.00416.98
8.0.80.0200.00016.89
8.0.70.0040.00416.73
8.0.60.0040.00416.89
8.0.50.0050.00316.74
8.0.30.0090.01017.08
8.0.20.0070.01417.40
8.0.10.0000.00917.10
8.0.00.0110.00616.84
7.4.330.0050.00014.88
7.4.320.0000.00616.63
7.4.300.0060.00016.59
7.4.290.0000.00816.62
7.4.280.0000.00816.59
7.4.270.0030.00316.43
7.4.260.0060.00013.39
7.4.250.0000.00716.32
7.4.240.0040.00416.61
7.4.230.0000.00616.35
7.4.220.0160.00316.61
7.4.210.0080.00716.48
7.4.200.0070.00016.42
7.4.190.0030.00516.75
7.4.160.0070.01016.53
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0100.00716.49
7.4.120.0130.00616.58
7.4.110.0100.00616.52
7.4.100.0000.01616.57
7.4.90.0060.01216.51
7.4.80.0030.01419.37
7.4.70.0080.00816.49
7.4.60.0070.01016.59
7.4.50.0050.00316.46
7.4.40.0000.01522.52
7.4.30.0090.00616.23
7.4.10.0060.01315.05
7.4.00.0070.00915.05
7.3.330.0030.00313.21
7.3.320.0070.00013.20
7.3.310.0000.00716.48
7.3.300.0040.00416.32
7.3.290.0100.00716.27
7.3.280.0060.00916.31
7.3.270.0080.00817.40
7.3.260.0100.00818.24
7.3.250.0120.00716.53
7.3.240.0030.01416.27
7.3.230.0110.00716.56
7.3.210.0130.00316.52
7.3.200.0080.01119.39
7.3.190.0140.00716.34
7.3.180.0080.00816.52
7.3.170.0070.01416.42
7.3.160.0110.00416.44
7.3.130.0130.00714.93
7.3.120.0030.00914.84
7.3.110.0070.01114.83
7.3.100.0090.00614.65
7.3.90.0070.01114.81
7.3.80.0090.00014.81
7.3.70.0070.00714.66
7.3.60.0030.01314.82
7.3.50.0080.00414.88
7.3.40.0080.00414.96
7.3.30.0060.00314.94
7.3.20.0070.00716.65
7.3.10.0100.00016.56
7.3.00.0040.00816.85
7.2.330.0090.00916.71
7.2.320.0030.01516.64
7.2.310.0130.01016.54
7.2.300.0130.00316.62
7.2.290.0030.01316.48
7.2.260.0040.01115.20
7.2.250.0100.01014.95
7.2.240.0090.00915.09
7.2.230.0080.00414.87
7.2.220.0070.01015.22
7.2.210.0070.00314.98
7.2.200.0070.01015.03
7.2.190.0030.01515.18
7.2.180.0060.00314.91
7.2.170.0100.00715.02
7.2.160.0090.00315.10
7.2.150.0030.00916.97
7.2.140.0070.00416.98
7.2.130.0000.01416.92
7.2.120.0000.01716.67
7.2.110.0090.00617.03
7.2.100.0100.01016.96
7.2.90.0030.01317.15
7.2.80.0090.00617.04
7.2.70.0060.00917.00
7.2.60.0060.00816.93
7.2.50.0140.00616.84
7.2.40.0120.00316.91
7.2.30.0070.01017.07
7.2.20.0000.01616.96
7.2.10.0030.00716.97
7.2.00.0090.00616.83
7.1.330.0070.00716.04
7.1.320.0090.00615.91
7.1.310.0090.00315.55
7.1.300.0000.01115.64
7.1.290.0070.00715.99
7.1.280.0000.01015.54
7.1.270.0070.00715.77
7.1.260.0070.01015.76
7.1.250.0100.00315.61
7.1.240.0000.01515.75
7.1.230.0090.00615.96
7.1.220.0040.00815.70
7.1.210.0080.00615.60
7.1.200.0050.00915.78
7.1.190.0030.01515.57
7.1.180.0090.00315.96
7.1.170.0040.00815.79
7.1.160.0060.00315.61
7.1.150.0070.00715.80
7.1.140.0030.00915.58
7.1.130.0040.01115.82
7.1.120.0100.00315.98
7.1.110.0040.00415.96
7.1.100.0060.00316.05
7.1.90.0120.00315.49
7.1.80.0100.00715.68
7.1.70.0050.00716.45
7.1.60.0130.00517.57
7.1.50.0050.01116.56
7.1.40.0000.00915.49
7.1.30.0110.00415.81
7.1.20.0000.01015.90
7.1.10.0130.00315.91
7.1.00.0030.03719.04
7.0.330.0060.00315.36
7.0.320.0060.01215.48
7.0.310.0000.01415.29
7.0.300.0050.00515.38
7.0.290.0030.01015.31
7.0.280.0070.00715.49
7.0.270.0040.00415.62
7.0.260.0000.01215.56
7.0.250.0070.00715.66
7.0.240.0000.01115.44
7.0.230.0070.01015.55
7.0.220.0060.00615.61
7.0.210.0110.00415.43
7.0.200.0050.00415.99
7.0.190.0030.01015.43
7.0.180.0090.00315.10
7.0.170.0000.01015.23
7.0.160.0060.00915.53
7.0.150.0060.01015.44
7.0.140.0070.03818.76
7.0.130.0140.00015.39
7.0.120.0060.00315.20
7.0.110.0030.01015.59
7.0.100.0030.00815.33
7.0.90.0030.01215.55
7.0.80.0050.00315.62
7.0.70.0050.04218.54
7.0.60.0030.04518.53
7.0.50.0050.04118.75
7.0.40.0050.04516.72
7.0.30.0030.04516.70
7.0.20.0050.03616.86
7.0.10.0070.04516.89
7.0.00.0020.03016.71
5.6.400.0030.00614.13
5.6.390.0040.01114.32
5.6.380.0070.00714.27
5.6.370.0090.00614.85
5.6.360.0000.01014.32
5.6.350.0000.01614.64
5.6.340.0030.01014.18
5.6.330.0030.00614.51
5.6.320.0030.01014.60
5.6.310.0000.01114.72
5.6.300.0090.00614.50
5.6.290.0070.00414.73
5.6.280.0060.03617.72
5.6.270.0000.00814.83
5.6.260.0040.01114.36
5.6.250.0100.00314.10
5.6.240.0080.00614.55
5.6.230.0060.00314.49
5.6.220.0070.04317.40
5.6.210.0090.04317.54
5.6.200.0020.04817.57
5.6.190.0030.04717.61
5.6.180.0050.04717.65
5.6.170.0050.04217.76
5.6.160.0070.04317.64
5.6.150.0070.04317.70
5.6.140.0050.02917.71
5.6.130.0040.02517.78
5.6.120.0050.02217.89
5.6.110.0040.02517.65
5.6.100.0080.02217.56
5.6.90.0060.01817.69
5.6.80.0050.02017.52
5.6.70.0080.04017.34
5.6.60.0050.02717.25
5.6.50.0020.03717.29
5.6.40.0060.02517.27
5.6.30.0050.02717.40
5.6.20.0030.02517.43
5.6.10.0080.02017.34
5.6.00.0030.02217.43
5.5.380.0090.00014.32
5.5.370.0030.00714.33
5.5.360.0030.03717.37
5.5.350.0050.04117.33
5.5.340.0050.04517.69
5.5.330.0060.04317.64
5.5.320.0050.04517.65
5.5.310.0070.04217.64
5.5.300.0050.02217.61
5.5.290.0000.02917.48
5.5.280.0040.02217.58
5.5.270.0020.02617.56
5.5.260.0000.02817.65
5.5.250.0030.01817.30
5.5.240.0030.02317.13
5.5.230.0060.02117.25
5.5.220.0030.02317.34
5.5.210.0020.02317.10
5.5.200.0050.02817.13
5.5.190.0020.02617.25
5.5.180.0010.02817.33
5.5.170.0060.01014.40
5.5.160.0050.02317.13
5.5.150.0060.02517.18
5.5.140.0020.02817.19
5.5.130.0030.02417.13
5.5.120.0020.02317.25
5.5.110.0040.01917.16
5.5.100.0020.02517.20
5.5.90.0020.02017.27
5.5.80.0050.01717.31
5.5.70.0030.02117.21
5.5.60.0050.01917.08
5.5.50.0030.02017.13
5.5.40.0000.02317.26
5.5.30.0010.02116.96
5.5.20.0090.01617.15
5.5.10.0050.02017.30
5.5.00.0020.02217.17
5.4.450.0050.02015.86
5.4.440.0050.02015.98
5.4.430.0020.02216.00
5.4.420.0000.02415.86
5.4.410.0020.01615.96
5.4.400.0060.02015.69
5.4.390.0000.03015.80
5.4.380.0000.03215.78
5.4.370.0050.01815.86
5.4.360.0050.02815.82
5.4.350.0010.02115.82
5.4.340.0040.02915.85
5.4.330.0080.00312.53
5.4.320.0020.02215.84
5.4.310.0020.02715.78
5.4.300.0020.02215.77
5.4.290.0000.01915.70
5.4.280.0030.01715.78
5.4.270.0000.02515.72
5.4.260.0050.02015.81
5.4.250.0000.02015.82
5.4.240.0000.02015.77
5.4.230.0000.01815.82
5.4.220.0050.01515.70
5.4.210.0000.02015.86
5.4.200.0000.02015.77
5.4.190.0020.02015.75
5.4.180.0030.01815.68
5.4.170.0030.01515.85
5.4.160.0030.01715.86
5.4.150.0050.01815.84
5.4.140.0030.01814.45
5.4.130.0000.01914.49
5.4.120.0000.02714.44
5.4.110.0030.01614.48
5.4.100.0050.01914.43
5.4.90.0060.01614.50
5.4.80.0040.01714.41
5.4.70.0000.01814.46
5.4.60.0050.01814.49
5.4.50.0030.03114.40
5.4.40.0020.04014.51
5.4.30.0050.03314.47
5.4.20.0030.04014.48
5.4.10.0010.04014.40
5.4.00.0030.03914.19
5.3.290.0050.01813.60
5.3.280.0020.01813.52
5.3.270.0060.01513.63
5.3.260.0020.01713.56
5.3.250.0020.01813.55
5.3.240.0020.01713.62
5.3.230.0030.02113.56
5.3.220.0020.02213.61
5.3.210.0000.02213.55
5.3.200.0010.01913.52
5.3.190.0000.02113.58
5.3.180.0000.02313.51
5.3.170.0030.01513.52
5.3.160.0030.01713.57
5.3.150.0040.02513.60
5.3.140.0020.02513.51
5.3.130.0020.02813.59
5.3.120.0010.04413.56
5.3.110.0000.04213.54
5.3.100.0080.03613.31
5.3.90.0010.03813.23
5.3.80.0030.03813.32
5.3.70.0070.02713.29
5.3.60.0000.04013.27
5.3.50.0030.02913.24
5.3.40.0070.03213.29
5.3.30.0040.03913.16
5.3.20.0030.03813.18
5.3.10.0050.03713.10
5.3.00.0000.04413.11
5.2.170.0100.06011.20
5.2.160.0070.05711.22
5.2.150.0000.07011.13
5.2.140.0030.06011.25
5.2.130.0000.06011.02
5.2.120.0030.06011.01
5.2.110.0030.05310.98
5.2.100.0070.05311.21
5.2.90.0070.05711.18
5.2.80.0000.03711.12
5.2.70.0030.06011.16
5.2.60.0000.06010.98
5.2.50.0030.06310.88
5.2.40.0000.05711.04
5.2.30.0070.05011.03
5.2.20.0100.05310.98
5.2.10.0000.04010.92
5.2.00.0000.06010.74
5.1.60.0000.05310.66
5.1.50.0030.05310.66
5.1.40.0070.04010.66
5.1.30.0070.05010.66
5.1.20.0000.05710.66
5.1.10.0070.05310.66
5.1.00.0000.05310.66
5.0.50.0070.04010.66
5.0.40.0000.03710.66
5.0.30.0000.05710.66
5.0.20.0000.04710.66
5.0.10.0130.03310.66
5.0.00.0030.06310.66
4.4.90.0000.03010.66
4.4.80.0000.03010.66
4.4.70.0030.03710.66
4.4.60.0030.03310.66
4.4.50.0000.03310.66
4.4.40.0000.03710.66
4.4.30.0000.03710.66
4.4.20.0000.03710.66
4.4.10.0000.03010.66
4.4.00.0070.04310.66
4.3.110.0030.03010.66
4.3.100.0000.03710.66
4.3.90.0000.03310.66
4.3.80.0000.04010.66
4.3.70.0030.03310.66
4.3.60.0030.03310.66
4.3.50.0030.03310.66
4.3.40.0030.04010.66
4.3.30.0030.02310.66
4.3.20.0000.04010.66
4.3.10.0000.04010.66
4.3.00.0000.04010.66

preferences:
47.88 ms | 401 KiB | 5 Q