3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'Second', 'First', 'Twentieth', 'Tenth', 'Third', ); $b = array( '2 a', '1 b', '20 c', '10 d', '3 e', ); array_multisort($b, SORT_NATURAL, $a); var_dump($a, $b); array_multisort($b, SORT_LOCALE_STRING, $a); var_dump($a, $b); array_multisort($b, SORT_FLAG_CASE, $a); var_dump($a, $b);

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.40.0110.00418.45
8.3.30.0080.00818.95
8.3.20.0040.00420.07
8.3.10.0000.00823.47
8.3.00.0050.00319.26
8.2.170.0090.00622.96
8.2.160.0110.00420.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.31
8.2.110.0060.00320.39
8.2.100.0000.01217.67
8.2.90.0040.00418.09
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0030.00617.91
8.2.50.0050.00318.07
8.2.40.0000.00819.75
8.2.30.0080.00018.05
8.2.20.0090.00017.68
8.2.10.0000.00717.95
8.2.00.0040.00417.51
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.19
8.1.230.0080.00420.88
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0000.00917.11
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0000.00821.98
8.1.150.0100.00018.61
8.1.140.0000.00817.43
8.1.130.0070.00017.70
8.1.120.0050.00317.40
8.1.110.0030.00617.43
8.1.100.0040.00417.36
8.1.90.0020.00517.37
8.1.80.0000.00717.29
8.1.70.0060.00317.37
8.1.60.0040.00417.52
8.1.50.0040.00417.50
8.1.40.0000.00817.34
8.1.30.0040.00417.51
8.1.20.0080.00017.56
8.1.10.0040.00417.46
8.1.00.0000.00717.40
8.0.300.0040.00420.12
8.0.290.0000.00716.93
8.0.280.0050.00218.38
8.0.270.0000.00817.10
8.0.260.0000.00817.23
8.0.250.0000.00716.86
8.0.240.0040.00416.84
8.0.230.0030.00416.84
8.0.220.0030.00316.83
8.0.210.0050.00216.73
8.0.200.0060.00016.85
8.0.190.0030.00616.78
8.0.180.0040.00416.82
8.0.170.0050.00216.87
8.0.160.0070.00016.70
8.0.150.0040.00416.70
8.0.140.0000.00716.79
8.0.130.0000.00513.32
8.0.120.0080.00016.77
8.0.110.0040.00416.83
8.0.100.0000.00716.89
8.0.90.0030.00316.62
8.0.80.0090.00616.85
8.0.70.0000.00716.89
8.0.60.0040.00416.70
8.0.50.0000.00716.89
8.0.30.0080.01517.01
8.0.20.0130.01317.40
8.0.10.0030.00616.97
8.0.00.0150.00516.74
7.4.330.0000.00615.00
7.4.320.0000.00716.42
7.4.300.0030.00316.39
7.4.290.0030.00316.33
7.4.280.0080.00016.57
7.4.270.0070.00016.51
7.4.260.0070.00016.54
7.4.250.0080.00016.48
7.4.240.0060.00216.45
7.4.230.0030.00316.33
7.4.220.0070.01016.37
7.4.210.0070.00816.51
7.4.200.0050.00416.53
7.4.190.0030.00516.59
7.4.160.0130.00316.38
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0110.00716.35
7.4.120.0080.01116.37
7.4.110.0080.01616.40
7.4.100.0080.01116.41
7.4.90.0060.01216.36
7.4.80.0120.00619.39
7.4.70.0070.01116.23
7.4.60.0100.00716.34
7.4.50.0050.00316.22
7.4.40.0030.01416.15
7.4.30.0120.01216.38
7.4.00.0040.01114.93
7.3.330.0000.00513.11
7.3.320.0060.00013.05
7.3.310.0030.00316.13
7.3.300.0030.00316.11
7.3.290.0070.00716.12
7.3.280.0100.00616.17
7.3.270.0060.01317.40
7.3.260.0400.02016.18
7.3.250.0120.00716.25
7.3.240.0060.01216.41
7.3.230.0030.01316.40
7.3.210.0090.00916.28
7.3.200.0130.00719.39
7.3.190.0100.01016.04
7.3.180.0120.00816.40
7.3.170.0090.00616.27
7.3.160.0140.00316.23
7.3.120.0030.01314.72
7.3.10.0000.01416.66
7.3.00.0030.00616.26
7.2.330.0200.00016.55
7.2.320.0030.01816.57
7.2.310.0180.00316.53
7.2.300.0100.00716.50
7.2.290.0030.01616.48
7.2.130.0080.00616.67
7.2.120.0090.00616.63
7.2.110.0060.00316.76
7.2.100.0000.01316.63
7.2.90.0130.00616.45
7.2.80.0070.00716.76
7.2.70.0040.00816.88
7.2.60.0060.00616.44
7.2.50.0030.01016.53
7.2.40.0060.00316.90
7.2.30.0120.00316.79
7.2.20.0040.00716.58
7.2.10.0030.00716.77
7.2.00.0060.00517.99
7.1.250.0080.00415.45
7.1.200.0000.00915.73
7.1.100.0040.01117.82
7.1.70.0000.00817.24
7.1.60.0000.01619.46
7.1.50.0110.00716.57
7.1.00.0000.06022.45
7.0.200.0040.00416.14
7.0.140.0000.07722.18
7.0.70.0030.06021.73
7.0.60.0070.08321.67
7.0.50.0070.07322.14
7.0.40.0070.07320.10
7.0.30.0000.08720.17
7.0.20.0030.08320.14
7.0.10.0070.08020.14
7.0.00.0030.09020.16
5.6.280.0030.07321.14
5.6.220.0100.05720.53
5.6.210.0000.07020.40
5.6.200.0100.08021.04
5.6.190.0030.08321.07
5.6.180.0070.07020.93
5.6.170.0100.06721.06
5.6.160.0070.07721.16
5.6.150.0030.07720.99
5.6.140.0070.05321.05
5.6.130.0000.05721.09
5.6.120.0000.08321.16
5.6.110.0070.06721.03
5.6.100.0100.06321.00
5.6.90.0100.07321.14
5.6.80.0070.06720.34
5.6.70.0100.03320.42
5.6.60.0070.06020.37
5.6.50.0030.08020.38
5.6.40.0030.08020.43
5.6.30.0030.08020.30
5.6.20.0000.04320.52
5.6.10.0000.08320.29
5.6.00.0070.07020.47
5.5.360.0070.07720.31
5.5.350.0100.06720.41
5.5.340.0070.05720.76
5.5.330.0130.06020.86
5.5.320.0100.05720.79
5.5.310.0070.08320.79
5.5.300.0070.06320.83
5.5.290.0100.04320.90
5.5.280.0130.07320.63
5.5.270.0030.08320.86
5.5.260.0100.07720.75
5.5.250.0070.07720.57
5.5.240.0000.07720.21
5.5.230.0000.08020.30
5.5.220.0200.07020.27
5.5.210.0070.07720.23
5.5.200.0070.08020.11
5.5.190.0000.04320.25
5.5.180.0070.04020.23
5.5.160.0130.03720.22
5.5.150.0030.05320.25
5.5.140.0000.04720.21
5.5.130.0000.08020.24
5.5.120.0000.07320.23
5.5.110.0030.08320.13
5.5.100.0000.08320.16
5.5.90.0030.05320.09
5.5.80.0030.06720.06
5.5.70.0030.04020.00
5.5.60.0030.05020.11
5.5.50.0070.07320.08
5.5.40.0000.05020.03
5.5.30.0070.04320.04
5.5.20.0070.07720.05
5.5.10.0070.08019.98
5.5.00.0100.08020.10
5.4.450.0070.07719.14
5.4.440.0070.08319.46
5.4.430.0070.07719.46
5.4.420.0070.07719.42
5.4.410.0070.04719.16
5.4.400.0030.06019.13
5.4.390.0100.07319.06
5.4.380.0070.07318.79
5.4.370.0070.07018.79
5.4.360.0130.07019.03
5.4.350.0070.04719.09
5.4.340.0000.08319.02
5.4.320.0030.07719.09
5.4.310.0030.07719.00
5.4.300.0000.07719.04
5.4.290.0030.05018.96
5.4.280.0070.08019.11
5.4.270.0000.06018.78
5.4.260.0130.04018.97
5.4.250.0030.03719.05
5.4.240.0100.07018.89
5.4.230.0130.07019.03
5.4.220.0030.04718.94
5.4.210.0030.07319.02
5.4.200.0030.05318.93
5.4.190.0000.08319.11
5.4.180.0070.08018.80
5.4.170.0070.07718.96
5.4.160.0000.07718.79
5.4.150.0070.07018.95
5.4.140.0030.06016.24
5.4.130.0000.07016.23
5.4.120.0000.07316.32
5.4.110.0100.04716.29
5.4.100.0200.06316.20
5.4.90.0030.06716.26
5.4.80.0030.07016.25
5.4.70.0070.06716.36
5.4.60.0030.07316.36
5.4.50.0000.07716.20
5.4.40.0030.07716.40
5.4.30.0030.07316.23
5.4.20.0000.04716.39
5.4.10.0030.04716.29
5.4.00.0030.03315.76
5.3.290.0000.08014.57
5.3.280.0000.04014.57
5.3.270.0030.07714.46
5.3.260.0000.08014.58
5.3.250.0070.06714.59
5.3.240.0000.05714.54
5.3.230.0000.07014.43
5.3.220.0000.07314.52
5.3.210.0000.08314.50
5.3.200.0030.07714.52
5.3.190.0000.08014.52
5.3.180.0100.06314.51
5.3.170.0030.07314.55
5.3.160.0000.07314.57
5.3.150.0030.07314.50
5.3.140.0000.06314.42
5.3.130.0000.05014.53
5.3.120.0000.04714.40
5.3.110.0030.07714.52
5.3.100.0070.07013.87
5.3.90.0000.07713.95
5.3.80.0070.07013.89
5.3.70.0030.06013.88
5.3.60.0000.07313.76
5.3.50.0070.05313.93
5.3.40.0000.08013.92
5.3.30.0070.06713.88
5.3.20.0070.06713.66
5.3.10.0100.04713.56
5.3.00.0030.07313.63
5.2.170.0000.05711.10
5.2.160.0030.06010.93
5.2.150.0030.04311.16
5.2.140.0200.05011.20
5.2.130.0000.06311.08
5.2.120.0000.06311.12
5.2.110.0100.05310.94
5.2.100.0000.06011.11
5.2.90.0000.06311.17
5.2.80.0000.06010.93
5.2.70.0000.05711.13
5.2.60.0030.06311.11
5.2.50.0030.05310.97
5.2.40.0000.04310.86
5.2.30.0070.06010.96
5.2.20.0000.06710.98
5.2.10.0100.05710.91
5.2.00.0100.05710.77
5.1.60.0030.05010.43
5.1.50.0000.05710.43
5.1.40.0030.04010.43
5.1.30.0000.05010.43
5.1.20.0100.05010.43
5.1.10.0000.05710.43
5.1.00.0030.05310.43
5.0.50.0000.04710.43
5.0.40.0070.03010.43
5.0.30.0000.06310.43
5.0.20.0000.04310.43
5.0.10.0030.04310.43
5.0.00.0030.05310.43
4.4.90.0000.03710.43
4.4.80.0070.03310.43
4.4.70.0030.03310.43
4.4.60.0000.03710.43
4.4.50.0070.03010.43
4.4.40.0000.05710.43
4.4.30.0000.03010.43
4.4.20.0000.03710.43
4.4.10.0070.03710.43
4.4.00.0070.05310.43
4.3.110.0000.03710.43
4.3.100.0030.02710.43
4.3.90.0000.03010.43
4.3.80.0030.02710.43
4.3.70.0070.03010.43
4.3.60.0070.03010.43
4.3.50.0030.03710.43
4.3.40.0070.05310.43
4.3.30.0000.04010.43
4.3.20.0030.03710.43
4.3.10.0030.02710.43
4.3.00.0000.03710.43

preferences:
43.51 ms | 400 KiB | 5 Q