3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); //28 - oh no echo mb_strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); // - closer, but no echo grapheme_strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); //1 - Bingo ?>

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.0070.00719.96
8.3.30.0060.01220.09
8.3.20.0060.00324.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.170.0120.00322.96
8.2.160.0110.00322.96
8.2.150.0000.00825.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0060.00321.62
8.2.110.0060.00321.46
8.2.100.0070.00418.66
8.2.90.0000.01018.63
8.2.80.0030.00619.61
8.2.70.0100.00018.38
8.2.60.0040.00818.68
8.2.50.0110.00018.50
8.2.40.0020.00618.97
8.2.30.0030.00619.00
8.2.20.0040.00421.38
8.2.10.0000.00818.68
8.2.00.0000.00720.09
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0170.00319.84
8.1.230.0110.00318.70
8.1.220.0080.00018.66
8.1.210.0040.00518.77
8.1.200.0090.00417.98
8.1.190.0000.01017.75
8.1.180.0060.00618.10
8.1.170.0080.00319.59
8.1.160.0080.00019.76
8.1.150.0080.00019.45
8.1.140.0030.00718.27
8.1.130.0080.00019.77
8.1.120.0000.00718.26
8.1.110.0060.00318.27
8.1.100.0050.00618.29
8.1.90.0070.00618.25
8.1.80.0060.00718.20
8.1.70.0070.00618.21
8.1.60.0100.00518.42
8.1.50.0090.00518.35
8.1.40.0120.00318.38
8.1.30.0090.00618.58
8.1.20.0110.00618.55
8.1.10.0150.00418.47
8.1.00.0170.00318.34
8.0.300.0050.00519.49
8.0.290.0090.00417.63
8.0.280.0000.01019.50
8.0.270.0040.00418.90
8.0.260.0060.00019.39
8.0.250.0040.00417.83
8.0.240.0060.00517.69
8.0.230.0060.00817.71
8.0.220.0080.00617.58
8.0.210.0080.00517.61
8.0.200.0100.00417.66
8.0.190.0100.00417.63
8.0.180.0080.00717.62
8.0.170.0100.00517.71
8.0.160.0120.00417.69
8.0.150.0110.00517.59
8.0.140.0120.00417.54
8.0.130.0120.00417.65
8.0.120.0110.00617.78
8.0.110.0130.00317.80
8.0.100.0100.00617.71
8.0.90.0100.00617.69
8.0.80.0120.00417.81
8.0.70.0110.00617.76
8.0.60.0080.00817.79
8.0.50.0090.00717.71
8.0.30.0100.00617.74
8.0.20.0110.00517.89
8.0.10.0130.00317.83
7.4.330.0030.00315.55
7.4.320.0000.00617.38
7.4.300.0060.00717.28
7.4.290.0100.00617.29
7.4.280.0120.00517.27
7.4.270.0090.00817.30
7.4.260.0100.00917.28
7.4.250.0130.00417.30
7.4.240.0060.01017.30
7.4.230.0120.00617.24
7.4.220.0100.00617.28
7.4.210.0090.00517.26
7.4.200.0080.00717.25
7.4.190.0110.00417.31
7.4.180.0110.00417.33
7.4.160.0120.00317.25
7.4.150.0110.00417.20
7.4.140.0130.00417.25
7.4.130.0110.00517.25
7.4.120.0090.00517.19
7.4.110.0100.00617.24
7.4.100.0110.00517.33
7.4.90.0130.00317.20
7.4.80.0120.00417.28
7.4.70.0090.00517.23
7.4.60.0080.00617.22
7.4.50.0080.00717.16
7.4.40.0110.00317.16
7.4.30.0090.00617.19
7.4.20.0090.00617.21
7.4.10.0130.00317.21
7.4.00.0100.00417.15

preferences:
35.88 ms | 400 KiB | 5 Q