3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strlen("à"); echo "\n"; echo strlen(Normalizer::normalize("à", Normalizer::FORM_D)); $chars = Normalizer::normalize("à", Normalizer::FORM_D); $char = mb_substr($chars, 1, 1); $charCodepoint = IntlChar::ord($char); //onst integer PROPERTY_LEAD_CANONICAL_COMBINING_CLASS = 4112 ; //const integer PROPERTY_TRAIL_CANONICAL_COMBINING_CLASS = 4113 ; var_dump(IntlChar::hasBinaryProperty($charCodepoint, IntlChar::PROPERTY_LEAD_CANONICAL_COMBINING_CLASS));

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.0100.01016.75
8.3.50.0090.00921.39
8.3.40.0070.00718.93
8.3.30.0070.00718.92
8.3.20.0040.00420.45
8.3.10.0040.00423.77
8.3.00.0030.00623.77
8.2.180.0100.01018.54
8.2.170.0140.00722.96
8.2.160.0070.00720.64
8.2.150.0050.00524.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00419.73
8.2.110.0090.00019.47
8.2.100.0110.00017.97
8.2.90.0030.00519.30
8.2.80.0000.00817.97
8.2.70.0060.00617.75
8.2.60.0000.00818.18
8.2.50.0050.00318.07
8.2.40.0050.00322.40
8.2.30.0040.00420.84
8.2.20.0040.00417.92
8.2.10.0000.00718.27
8.2.00.0030.00718.25
8.1.280.0120.00625.92
8.1.270.0120.00624.22
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00621.55
8.1.230.0040.00817.64
8.1.220.0000.00917.90
8.1.210.0030.00518.77
8.1.200.0030.00617.60
8.1.190.0070.00417.48
8.1.180.0070.00018.10
8.1.170.0040.00418.77
8.1.160.0040.00420.98
8.1.150.0000.00718.95
8.1.140.0000.01019.77
8.1.130.0070.00017.89
8.1.120.0000.00817.56
8.1.110.0040.00417.63
8.1.100.0050.00217.68
8.1.90.0070.00017.48
8.1.80.0060.00317.49
8.1.70.0030.00317.62
8.1.60.0060.00317.77
8.1.50.0080.00017.56
8.1.40.0000.00817.59
8.1.30.0040.00817.98
8.1.20.0040.00417.91
8.1.10.0040.00417.86
8.1.00.0000.00717.64
8.0.300.0050.00518.77
8.0.290.0000.00717.00
8.0.280.0000.00718.76
8.0.270.0070.00017.59
8.0.260.0000.00617.49
8.0.250.0000.00817.26
8.0.240.0030.00317.23
8.0.230.0030.00317.12
8.0.220.0050.00217.03
8.0.210.0040.00417.16
8.0.200.0030.00317.20
8.0.190.0060.00317.16
8.0.180.0020.00517.15
8.0.170.0000.00717.09
8.0.160.0000.00717.00
8.0.150.0040.00417.12
8.0.140.0070.00016.96
8.0.130.0030.00313.31
8.0.120.0050.00316.93
8.0.110.0000.00717.13
8.0.100.0090.00017.24
8.0.90.0000.00717.08
8.0.80.0070.00717.12
8.0.70.0040.00417.19
8.0.60.0050.00317.04
8.0.50.0020.00516.95
8.0.30.0110.00617.34
8.0.20.0120.00717.40
8.0.10.0000.00717.05
8.0.00.0120.00916.97
7.4.330.0060.00016.66
7.4.320.0000.00616.68
7.4.300.0000.00716.79
7.4.290.0000.00816.75
7.4.280.0060.00316.74
7.4.270.0030.00316.80
7.4.260.0040.00416.77
7.4.250.0030.00716.61
7.4.240.0040.00416.79
7.4.230.0070.00016.54
7.4.220.0110.01416.69
7.4.210.0070.00716.70
7.4.200.0030.00316.79
7.4.160.0080.00816.71
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0050.01316.81
7.4.120.0160.00216.64
7.4.110.0090.00916.81
7.4.100.0060.01216.75
7.4.90.0150.00916.75
7.4.80.0080.00819.39
7.4.70.0090.00916.68
7.4.60.0100.00716.58
7.4.50.0070.00716.75
7.4.40.0130.00316.77
7.4.30.0100.00716.71
7.4.10.0130.00015.19
7.4.00.0080.00815.11
7.3.330.0000.00513.04
7.3.320.0070.00013.06
7.3.310.0000.00716.36
7.3.300.0000.00716.30
7.3.290.0060.01216.40
7.3.280.0110.00716.38
7.3.270.0120.00617.40
7.3.260.0100.00716.47
7.3.250.0110.00916.47
7.3.240.0070.01216.53
7.3.230.0090.01216.64
7.3.210.0130.00216.45
7.3.200.0100.01016.55
7.3.190.0120.00316.62
7.3.180.0090.00616.66
7.3.170.0060.00916.68
7.3.160.0070.01016.63
7.3.130.0140.00314.86
7.3.120.0060.01215.12
7.3.110.0000.01814.67
7.3.100.0000.01415.17
7.3.90.0060.00914.83
7.3.80.0090.00314.64
7.3.70.0030.01314.78
7.3.60.0000.01314.84
7.3.50.0060.00314.91
7.3.40.0030.01314.96
7.3.30.0060.00614.84
7.3.20.0030.00616.58
7.3.10.0100.00316.50
7.3.00.0040.00916.91
7.2.330.0070.01116.80
7.2.320.0060.01116.73
7.2.310.0130.00716.82
7.2.300.0000.01916.55
7.2.290.0130.00316.80
7.2.260.0070.01115.07
7.2.250.0040.01415.28
7.2.240.0070.00714.88
7.2.230.0070.01114.95
7.2.220.0000.01414.93
7.2.210.0100.00315.42
7.2.200.0070.00715.21
7.2.190.0070.00715.03
7.2.180.0040.00415.02
7.2.170.0040.01415.10
7.2.160.0110.00715.08
7.2.150.0050.00517.02
7.2.140.0120.00317.01
7.2.130.0020.01216.91
7.2.120.0040.01117.01
7.2.110.0060.00816.91
7.2.100.0050.01017.01
7.2.90.0090.00816.79
7.2.80.0050.01017.06
7.2.70.0050.00916.83
7.2.60.0070.00717.04
7.2.50.0080.00516.91
7.2.40.0090.00716.84
7.2.30.0060.00617.08
7.2.20.0050.00816.91
7.2.10.0110.00517.07
7.2.00.0100.00616.99
7.1.330.0030.01015.80
7.1.320.0040.01115.82
7.1.310.0060.00315.92
7.1.300.0000.01016.09
7.1.290.0000.01316.14
7.1.280.0040.01116.04
7.1.270.0070.00715.93
7.1.260.0030.00916.02
7.1.250.0050.01115.88
7.1.240.0080.00615.73
7.1.230.0060.00615.99
7.1.220.0060.00515.89
7.1.210.0050.01115.83
7.1.200.0070.00715.97
7.1.190.0050.00815.72
7.1.180.0040.01015.91
7.1.170.0090.00315.80
7.1.160.0050.00815.96
7.1.150.0050.01015.90
7.1.140.0050.00915.87
7.1.130.0050.00815.96
7.1.120.0060.00615.85
7.1.110.0030.01015.84
7.1.100.0060.00816.05
7.1.90.0060.00815.91
7.1.80.0080.00715.88
7.1.70.0050.00516.35
7.1.60.0040.01117.16
7.1.50.0080.00716.39
7.1.40.0070.00615.80
7.1.30.0020.01115.81
7.1.20.0050.00615.98
7.1.10.0060.00715.93
7.1.00.0060.02918.30
7.0.330.0030.01215.67
7.0.320.0020.00915.42
7.0.310.0090.00415.61
7.0.300.0060.00815.58
7.0.290.0040.01115.56
7.0.280.0060.00715.43
7.0.270.0060.00715.66
7.0.260.0070.00715.59
7.0.250.0030.00915.75
7.0.240.0070.00415.46
7.0.230.0100.00415.63
7.0.220.0020.01015.67
7.0.210.0020.01115.66
7.0.200.0150.00715.23
7.0.190.0020.01015.42
7.0.180.0050.00815.68
7.0.170.0070.00615.60
7.0.160.0040.00715.61
7.0.150.0090.00115.65
7.0.140.0050.00515.52
7.0.130.0070.00515.43
7.0.120.0030.01015.56
7.0.110.0060.00515.60
7.0.100.0040.00815.44
7.0.90.0020.00815.72
7.0.80.0040.00815.67
7.0.70.0090.00315.56
7.0.60.0060.02217.14
7.0.50.0030.02816.41
7.0.40.0070.02316.01
7.0.30.0120.03615.83
7.0.20.0100.02415.89
7.0.10.0070.02515.76
7.0.00.0020.03615.93
5.6.400.0100.00314.61
5.6.390.0030.01014.67
5.6.380.0070.00714.27
5.6.370.0050.00914.62
5.6.360.0080.00614.49
5.6.350.0070.00614.69
5.6.340.0040.01014.35
5.6.330.0070.00514.41
5.6.320.0040.01214.55
5.6.310.0110.00414.52
5.6.300.0070.00714.29
5.6.290.0070.00414.55
5.6.280.0080.02116.89
5.6.270.0040.00914.36
5.6.260.0080.00314.61
5.6.250.0100.00214.44
5.6.240.0050.00514.47
5.6.230.0010.01114.39
5.6.220.0070.00714.47
5.6.210.0020.02716.66
5.6.200.0080.02315.62
5.6.190.0070.02216.42
5.6.180.0130.03116.49
5.6.170.0100.01616.53
5.6.160.0040.03316.56
5.6.150.0050.03315.71
5.6.140.0060.02815.72
5.6.130.0080.02815.67
5.6.120.0060.01916.73
5.6.110.0120.01816.61
5.6.100.0040.03416.66
5.6.90.0100.03216.68
5.6.80.0030.02416.64
5.6.70.0050.00514.30
5.6.60.0040.00814.28
5.6.50.0050.00814.42
5.6.40.0050.00614.46
5.6.30.0070.00514.30
5.6.20.0050.00514.44
5.6.10.0060.00614.19
5.6.00.0100.00014.36
5.5.380.0030.00812.83
5.5.370.0070.00812.83
5.5.360.0020.00712.80
5.5.350.1370.01815.41
5.5.340.0050.02214.63
5.5.330.0040.03415.30
5.5.320.0110.02215.38
5.5.310.0150.03015.19
5.5.300.0040.01914.41
5.5.290.0020.03614.54
5.5.280.0020.03015.48
5.5.270.0060.01915.58
5.5.260.0080.02815.52
5.5.250.0050.03115.53
5.5.240.0020.01515.24
5.5.230.0040.00612.66
5.5.220.0030.00712.88
5.5.210.0080.00312.79
5.5.200.0060.00512.86
5.5.190.0040.00512.83
5.5.180.0020.00912.76
5.5.170.0060.00312.65
5.5.160.0020.00812.67
5.5.150.0080.00512.59
5.5.140.0040.00512.75
5.5.130.0100.00312.63
5.5.120.0030.00812.63
5.5.110.0040.00512.81
5.5.100.0050.00612.68
5.5.90.0060.00412.81
5.5.80.0070.00512.60
5.5.70.0040.00712.58
5.5.60.0040.00412.78
5.5.50.0020.00912.61
5.5.40.0050.00512.81
5.5.30.0050.00512.84
5.5.20.0100.00112.84
5.5.10.0010.00812.78
5.5.00.0030.00512.87

preferences:
32.66 ms | 401 KiB | 5 Q