3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('Birnen', 'Äpfel', 'über', 'Über', 'drüber', 'Österreich'); $coll = new Collator('de_DE'); $coll->setAttribute(Collator::NUMERIC_COLLATION, Collator::ON); $coll->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST); $coll->sort($a); print_r($a); ?>

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.140.0080.00820.36
8.3.130.0060.00618.11
8.3.120.0120.00920.12
8.3.110.0060.00320.94
8.3.100.0190.00624.06
8.3.90.0060.00626.77
8.3.80.0100.00017.88
8.3.70.0090.00917.86
8.3.60.0090.01218.13
8.3.50.0140.00722.61
8.3.40.0090.00619.92
8.3.30.0070.00720.25
8.3.20.0080.00421.64
8.3.10.0030.00624.89
8.3.00.0030.00518.88
8.2.250.0040.00418.29
8.2.240.0160.00318.65
8.2.230.0090.00322.58
8.2.220.0130.00337.54
8.2.210.0080.00026.77
8.2.200.0100.00017.75
8.2.190.0070.01118.00
8.2.180.0210.00419.54
8.2.170.0070.00722.96
8.2.160.0140.00321.68
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00322.62
8.2.110.0070.01123.58
8.2.100.0040.00819.35
8.2.90.0000.00920.38
8.2.80.0030.00719.13
8.2.70.0000.01018.88
8.2.60.0100.00319.42
8.2.50.0070.00419.13
8.2.40.0050.00519.72
8.2.30.0030.00719.60
8.2.20.0040.00419.09
8.2.10.0000.00819.72
8.2.00.0060.00319.59
8.1.300.0070.01419.34
8.1.290.0040.00719.38
8.1.280.0220.00325.92
8.1.270.0090.00924.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00325.17
8.1.230.0040.00722.47
8.1.220.0030.00519.14
8.1.210.0030.00518.86
8.1.200.0070.00318.85
8.1.190.0040.00418.85
8.1.180.0100.00018.79
8.1.170.0060.00620.05
8.1.160.0070.00720.13
8.1.150.0000.00720.16
8.1.140.0020.00518.98
8.1.130.0030.00319.48
8.1.120.0040.00419.01
8.1.110.0030.00518.77
8.1.100.0040.00418.86
8.1.90.0050.00318.84
8.1.80.0000.00718.87
8.1.70.0000.00818.93
8.1.60.0040.00418.97
8.1.50.0090.00018.93
8.1.40.0050.00318.84
8.1.30.0040.00419.15
8.1.20.0050.00319.08
8.1.10.0040.00418.90
8.1.00.0030.00518.86
8.0.300.0070.00418.77
8.0.290.0050.00518.13
8.0.280.0040.00419.76
8.0.270.0050.00218.78
8.0.260.0030.00318.83
8.0.250.0070.00018.18
8.0.240.0050.00318.08
8.0.230.0040.00418.24
8.0.220.0030.00418.09
8.0.210.0000.00718.10
8.0.200.0040.00718.09
8.0.190.0050.00518.21
8.0.180.0050.00518.25
8.0.170.0080.00018.30
8.0.160.0000.00818.26
8.0.150.0050.00218.32
8.0.140.0050.00318.25
8.0.130.0050.00013.40
8.0.120.0000.00918.41
8.0.110.0050.00518.31
8.0.100.0050.00218.29
8.0.90.0050.00318.18
8.0.80.0090.00718.36
8.0.70.0050.00218.23
8.0.60.0050.00318.24
8.0.50.0040.00418.16
8.0.30.0170.00718.54
8.0.20.0100.01018.50
8.0.10.0040.00418.52
8.0.00.0120.01118.05
7.4.330.0020.00215.03
7.4.320.0030.00317.93
7.4.300.0030.00317.80
7.4.290.0000.00917.64
7.4.280.0060.00317.89
7.4.270.0040.00417.84
7.4.260.0000.00717.64
7.4.250.0000.00817.70
7.4.240.0000.00717.86
7.4.230.0080.00018.00
7.4.220.0120.00617.91
7.4.210.0030.01217.79
7.4.200.0000.00717.66
7.4.160.0000.01517.79
7.4.150.0070.01417.96
7.4.140.0130.00817.89
7.4.130.0090.01217.76
7.4.120.0090.00817.95
7.4.110.0060.01217.68
7.4.100.0080.01617.74
7.4.90.0030.01517.74
7.4.80.0180.00319.39
7.4.70.0160.00317.88
7.4.60.0130.00317.68
7.4.50.0080.00017.80
7.4.40.0170.00317.89
7.4.30.0080.00817.64
7.4.00.0040.01116.46
7.3.330.0000.00513.10
7.3.320.0100.00312.97
7.3.310.0030.00317.71
7.3.300.0070.00017.52
7.3.290.0040.00417.64
7.3.280.0100.00717.64
7.3.270.0060.01217.58
7.3.260.0110.00617.70
7.3.250.0090.00817.72
7.3.240.0080.00917.64
7.3.230.0070.01117.58
7.3.210.0060.01517.75
7.3.200.0070.01019.39
7.3.190.0060.01817.98
7.3.180.0130.00317.64
7.3.170.0040.01317.93
7.3.160.0100.01317.94
7.2.330.0140.00318.13
7.2.320.0120.01217.99
7.2.310.0110.00718.06
7.2.300.0060.00918.13
7.2.290.0080.01518.13
7.2.60.0030.01318.20
7.2.00.0030.00920.84
7.1.200.0070.01017.19
7.1.100.0080.00419.68
7.1.70.0000.00918.60
7.1.60.0070.01419.50
7.1.50.0100.00718.69
7.1.00.0000.08024.19
7.0.200.0000.00718.26
7.0.60.0030.04721.24
7.0.50.0130.05717.90
7.0.40.0070.04321.30
7.0.30.0530.07021.65
7.0.20.0300.07721.49
7.0.10.0070.08021.50
7.0.00.0030.04321.52
5.6.280.0130.06322.25
5.6.210.0070.08021.83
5.6.200.0070.08318.18
5.6.190.0100.08021.55
5.6.180.0200.09021.67
5.6.170.0300.08321.91
5.6.160.0100.08021.59
5.6.150.0130.07318.11
5.6.140.0100.04318.18
5.6.130.0030.07718.13
5.6.120.0070.04722.52
5.6.110.0170.06722.43
5.6.100.0130.07322.44
5.6.90.0130.07722.48
5.6.80.0100.07321.66
5.6.70.4500.03721.70
5.5.350.0300.06021.70
5.5.340.0070.04017.98
5.5.330.0130.07321.36
5.5.320.0300.08021.41
5.5.310.0370.08021.49
5.5.300.0100.07317.95
5.5.290.0000.04717.91
5.5.280.0200.07722.34
5.5.270.0030.04022.16
5.5.260.0000.06022.08
5.5.250.0100.07721.90
5.5.240.0300.04321.58
5.4.450.0130.03020.68
5.4.440.0200.06720.53
5.4.430.0100.05020.88
5.4.420.0100.05720.68
5.4.410.0170.05320.00
5.4.400.0300.03319.93
5.4.390.0030.06019.84
5.4.380.0070.07319.82
5.4.370.0200.05019.87
5.4.360.0030.06320.17
5.4.350.0230.04719.84
5.4.340.0270.04320.18
5.4.320.0200.05720.16
5.4.310.0070.05719.82
5.4.300.0200.04319.91
5.4.290.0170.05019.81
5.4.280.0100.06719.93
5.4.270.0130.05319.95
5.4.260.0230.05019.99
5.4.250.0100.05719.97
5.4.240.0200.06319.95
5.4.230.0170.06019.89
5.4.220.0130.05019.82
5.4.210.0030.06319.94
5.4.200.0100.05017.82
5.4.190.0100.05719.94
5.4.180.0100.05319.86
5.4.170.0130.07019.92
5.4.160.0170.05019.88
5.4.150.0170.04720.05
5.4.140.0130.04717.55
5.4.130.0000.05717.50
5.4.120.0100.05017.68
5.4.110.0270.04017.48
5.4.100.0230.04017.58
5.4.90.0070.05717.66
5.4.80.0100.05017.56
5.4.70.0030.05717.46
5.4.60.0100.05017.50
5.4.50.0130.05017.45
5.4.40.0130.04717.60
5.4.30.0130.05317.41
5.4.20.0170.06017.50
5.4.10.0070.05317.51
5.4.00.0100.05017.05
5.3.290.0070.06014.58
5.3.280.0230.05014.58
5.3.270.0100.06014.57
5.3.260.0130.05014.70
5.3.250.0100.05014.51
5.3.240.0070.05714.57
5.3.230.0100.05314.58
5.3.220.0070.05314.50
5.3.210.0070.05714.66
5.3.200.0230.05014.50
5.3.190.0070.06314.64
5.3.180.0170.05314.49
5.3.170.0100.05314.49
5.3.160.0030.06314.64
5.3.150.0130.04714.66
5.3.140.0100.05014.55
5.3.130.0170.05014.44
5.3.120.0170.05014.44
5.3.110.0130.05314.55
5.3.100.0030.06014.04
5.3.90.0200.06313.93
5.3.80.0170.06313.91
5.3.70.0070.07314.00
5.3.60.0000.06313.95
5.3.50.0100.05713.95
5.3.40.0200.05313.94
5.3.30.0100.05013.88
5.3.20.0070.06013.68
5.3.10.0100.05013.58
5.3.00.0100.05313.58
5.2.170.0130.03711.14
5.2.160.0100.03711.28
5.2.150.0030.05011.12
5.2.140.0000.05011.10
5.2.130.0070.05011.16
5.2.120.0100.03711.14
5.2.110.0070.04011.09
5.2.100.0000.04711.05
5.2.90.0100.03711.03
5.2.80.0100.04311.14
5.2.70.0030.05711.02
5.2.60.0070.04711.08
5.2.50.0070.04311.03
5.2.40.0130.03311.05
5.2.30.0170.03310.92
5.2.20.0070.05010.87
5.2.10.0030.04310.84
5.2.00.0070.04010.85
5.1.60.0070.03310.13
5.1.50.0100.0379.99
5.1.40.0000.0539.97
5.1.30.0070.03710.34
5.1.20.0030.04010.32
5.1.10.0000.04010.18
5.1.00.0030.03710.08
5.0.50.0000.0338.59
5.0.40.0000.0378.42
5.0.30.0100.0438.24
5.0.20.0000.0408.29
5.0.10.0070.0278.16
5.0.00.0070.0508.24
4.4.90.0100.0235.84
4.4.80.0000.0275.91
4.4.70.0070.0235.89
4.4.60.0070.0205.90
4.4.50.0030.0205.90
4.4.40.0070.0305.87
4.4.30.0000.0235.90
4.4.20.0100.0205.97
4.4.10.0000.0275.88
4.4.00.0130.0275.93
4.3.110.0030.0235.86
4.3.100.0000.0235.88
4.3.90.0070.0175.82
4.3.80.0000.0405.80
4.3.70.0030.0275.81
4.3.60.0030.0235.80
4.3.50.0030.0235.87
4.3.40.0030.0335.79
4.3.30.0030.0204.54
4.3.20.0000.0274.55
4.3.10.0030.0234.48
4.3.00.0030.01315.67

preferences:
70.22 ms | 403 KiB | 5 Q