3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'é'; echo mb_strwidth($a, 'utf8'), "\n"; $b = Normalizer::normalize($a, Normalizer::NFD); echo mb_strwidth($b, 'utf8'), "\n";

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.0150.00618.80
8.3.50.0100.01222.23
8.3.40.0110.00418.79
8.3.30.0060.00919.01
8.3.20.0000.00720.38
8.3.10.0040.00422.09
8.3.00.0000.00822.43
8.2.180.0110.00417.00
8.2.170.0120.00322.96
8.2.160.0110.00320.83
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0150.00426.16
8.2.120.0000.00919.73
8.2.110.0080.00319.83
8.2.100.0030.00918.28
8.2.90.0060.00318.59
8.2.80.0040.00417.97
8.2.70.0000.00818.30
8.2.60.0000.00718.28
8.2.50.0090.00018.30
8.2.40.0030.00720.80
8.2.30.0100.00018.34
8.2.20.0070.00317.96
8.2.10.0000.00717.99
8.2.00.0070.00217.98
8.1.280.0110.01125.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00322.33
8.1.230.0060.00621.22
8.1.220.0030.00618.03
8.1.210.0030.00519.13
8.1.200.0000.00817.72
8.1.190.0040.00417.60
8.1.180.0000.01018.10
8.1.170.0000.00818.95
8.1.160.0000.01022.11
8.1.150.0080.00018.95
8.1.140.0030.00517.69
8.1.130.0030.00318.18
8.1.120.0030.00317.67
8.1.110.0040.00417.62
8.1.100.0030.00317.67
8.1.90.0080.00017.63
8.1.80.0070.00017.68
8.1.70.0030.00317.60
8.1.60.0090.00317.81
8.1.50.0000.00817.89
8.1.40.0040.00417.70
8.1.30.0000.00817.77
8.1.20.0030.00617.90
8.1.10.0070.00017.90
8.1.00.0050.00317.88
8.0.300.0030.00520.23
8.0.290.0090.00017.00
8.0.280.0070.00018.66
8.0.270.0070.00017.65
8.0.260.0030.00318.84
8.0.250.0080.00017.10
8.0.240.0030.00617.21
8.0.230.0030.00317.11
8.0.220.0000.00717.14
8.0.210.0000.00717.08
8.0.200.0030.00317.14
8.0.190.0040.00417.09
8.0.180.0090.00017.01
8.0.170.0040.00416.99
8.0.160.0040.00417.12
8.0.150.0040.00417.09
8.0.140.0040.00317.18
8.0.130.0030.00313.50
8.0.120.0050.00217.01
8.0.110.0040.00417.06
8.0.100.0070.00016.96
8.0.90.0040.00417.09
8.0.80.0060.00917.17
8.0.70.0060.00317.00
8.0.60.0040.00417.04
8.0.50.0070.00017.11
8.0.30.0120.00817.28
8.0.20.0060.01317.40
8.0.10.0030.00517.06
8.0.00.0080.01317.03
7.4.330.0000.00615.06
7.4.320.0030.00316.81
7.4.300.0020.00516.69
7.4.290.0000.00816.84
7.4.280.0000.00716.73
7.4.270.0000.00716.81
7.4.260.0000.00716.71
7.4.250.0050.00216.82
7.4.240.0050.00316.75
7.4.230.0040.00416.85
7.4.220.0040.01316.77
7.4.210.0050.00916.86
7.4.200.0000.00716.87
7.4.190.0040.00416.80
7.4.160.0080.00816.61
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0090.00816.79
7.4.120.0050.01216.92
7.4.110.0100.00616.74
7.4.100.0070.01116.71
7.4.90.0140.00416.85
7.4.80.0090.00919.39
7.4.70.0110.00816.70
7.4.60.0060.01216.57
7.4.50.0020.00216.64
7.4.40.0000.01122.77
7.4.30.0080.00816.84
7.4.00.0060.00915.21
7.3.330.0030.00313.22
7.3.320.0050.00013.37
7.3.310.0040.00416.45
7.3.300.0040.00416.36
7.3.290.0060.01316.35
7.3.280.0070.00916.52
7.3.270.0060.00917.40
7.3.260.0110.00716.71
7.3.250.0080.00816.64
7.3.240.0130.00316.74
7.3.230.0120.00416.63
7.3.210.0100.00716.79
7.3.200.0120.00319.39
7.3.190.0120.00916.62
7.3.180.0120.00416.75
7.3.170.0060.00916.79
7.3.160.0040.01216.31
7.3.120.0030.01315.22
7.2.330.0190.01416.55
7.2.320.0060.01216.71
7.2.310.0110.00616.97
7.2.300.0110.01116.73
7.2.290.0090.00916.73
7.2.60.0070.01017.07
7.1.200.0030.00916.13
7.1.70.0000.00817.19
7.1.60.0030.02019.82
7.1.50.0130.01017.20
7.1.00.0100.06722.70
7.0.200.0110.00417.11
7.0.140.0000.07722.32
7.0.60.0330.03320.16
7.0.50.0130.07317.88
7.0.40.0070.04020.28
7.0.30.0200.06020.50
7.0.20.0370.04320.18
7.0.10.0030.06720.20
7.0.00.0070.08320.22
5.6.280.0100.09021.30
5.6.210.0100.07020.98
5.6.200.0030.04318.12
5.6.190.0070.07720.69
5.6.180.0230.08320.52
5.6.170.0370.06320.72
5.6.160.0000.07020.74
5.6.150.0070.07318.18
5.6.140.0070.08318.14
5.6.130.0130.04718.20
5.6.120.0030.07021.18
5.6.110.0130.07021.19
5.6.100.0230.07321.11
5.6.90.0100.04321.12
5.6.80.0070.07720.66
5.5.350.0300.07320.53
5.5.340.0030.04018.02
5.5.330.0170.07720.77
5.5.320.0270.07720.41
5.5.310.0300.06320.44
5.5.300.0100.04717.88
5.5.290.0130.05718.01
5.5.280.0070.06020.96
5.5.270.0200.07020.98
5.5.260.0100.08020.95
5.5.250.0100.08320.86
5.5.240.0130.07320.33
5.4.450.3570.04019.38
5.4.440.0000.07719.49
5.4.430.1570.04719.38
5.4.420.3870.04719.60
5.4.410.3900.03719.44
5.4.400.4070.04319.25
5.4.390.4400.04019.28
5.4.380.3570.03719.20
5.4.370.3830.03319.05
5.4.360.4200.03719.09
5.4.350.4800.03019.22
5.4.340.4170.04019.19
5.4.320.3900.04019.23
5.4.310.4030.03019.34
5.4.300.3800.03719.25
5.4.290.3730.03719.21
5.4.280.3670.04019.30
5.4.270.3600.04019.25
5.4.260.3700.04319.34
5.4.250.3570.03719.27
5.4.240.3630.03319.34
5.4.230.3930.04719.02
5.4.220.3570.04019.20
5.4.210.4130.04019.36
5.4.200.4130.03019.07
5.4.190.3930.03719.20
5.4.180.3430.04319.33
5.4.170.4330.04019.05
5.4.160.0070.04019.20
5.4.150.0030.05019.19
5.4.140.4700.03716.56
5.4.130.3970.03016.55
5.4.120.3700.03316.39
5.4.110.3700.04016.44
5.4.100.3800.04016.55
5.4.90.3900.03316.52
5.4.80.4100.03316.42
5.4.70.4030.03716.44
5.4.60.4600.03316.39
5.4.50.0170.06016.29
5.4.40.0100.04016.29
5.4.30.2200.03716.47
5.4.20.4230.04016.50
5.4.10.3730.04016.41
5.4.00.4000.03015.90
5.3.290.3670.03714.60
5.3.280.3570.04314.52
5.3.270.3870.04014.43
5.3.260.1670.04014.53
5.3.250.0100.07014.54
5.3.240.3800.03714.54
5.3.230.3630.03714.47
5.3.220.4570.04314.49
5.3.210.3870.03714.50
5.3.200.3600.03014.35
5.3.190.3830.03714.54
5.3.180.3670.03714.50
5.3.170.3970.03714.48
5.3.160.4330.03714.46
5.3.150.4600.03714.45
5.3.140.0030.06714.66
5.3.130.4630.03714.50
5.3.120.4170.04014.42
5.3.110.3530.03314.56
5.3.100.3830.04313.98
5.3.90.3600.04013.96
5.3.80.4170.03013.99
5.3.70.3870.03713.96
5.3.60.3900.03713.84
5.3.50.3930.03713.77
5.3.40.4470.04013.87
5.3.30.3800.03713.79
5.3.20.3730.03713.51
5.3.10.3630.04013.57
5.3.00.4370.03313.57
5.2.170.3270.03010.96
5.2.160.3370.02711.04
5.2.150.3800.02711.30
5.2.140.3070.03011.08
5.2.130.3270.03011.00
5.2.120.3000.03011.17
5.2.110.3800.03011.00
5.2.100.3830.03011.02
5.2.90.3570.02710.96
5.2.80.3870.02710.91
5.2.70.3430.03311.03
5.2.60.3230.02711.03
5.2.50.3800.03011.00
5.2.40.2900.02010.88
5.2.30.3070.03010.97
5.2.20.2930.02310.96
5.2.10.3200.03310.85
5.2.00.3230.02710.70
5.1.60.2970.0179.94
5.1.50.3100.02710.05
5.1.40.3130.0309.92
5.1.30.2870.02310.29
5.1.20.2970.02010.26
5.1.10.2830.02710.20
5.1.00.2900.02710.10
5.0.50.1800.0208.52
5.0.40.1100.0238.41
5.0.30.1400.0338.23
5.0.20.1700.0208.11
5.0.10.1570.0238.11
5.0.00.1370.0338.13
4.4.90.1730.0105.81
4.4.80.1670.0205.81
4.4.70.1700.0175.81
4.4.60.1730.0175.81
4.4.50.1900.0205.83
4.4.40.1470.0205.81
4.4.30.1800.0205.81
4.4.20.1430.0135.86
4.4.10.1700.0175.90
4.4.00.1470.0235.91
4.3.110.1600.0175.81
4.3.100.1430.0135.81
4.3.90.1770.0175.81
4.3.80.1300.0275.82
4.3.70.1200.0135.81
4.3.60.1470.0175.81
4.3.50.1430.0205.81
4.3.40.1400.0275.81
4.3.30.0670.0235.81
4.3.20.0700.0175.81
4.3.10.0930.0235.81
4.3.00.0870.0205.81

preferences:
42.71 ms | 401 KiB | 5 Q