3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(grapheme_strlen("\r\n")); var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));

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.120.0090.00019.79
8.3.110.0060.00620.94
8.3.100.0070.00424.06
8.3.90.0060.00326.77
8.3.80.0030.00619.30
8.3.70.0160.00617.63
8.3.60.0090.00917.38
8.3.50.0090.01522.43
8.3.40.0060.00919.73
8.3.30.0070.00719.54
8.3.20.0030.00521.82
8.3.10.0030.00524.48
8.3.00.0000.00821.39
8.2.240.0110.00423.42
8.2.230.0050.00522.58
8.2.220.0000.00937.54
8.2.210.0060.00326.77
8.2.200.0060.00319.41
8.2.190.0090.00617.36
8.2.180.0130.00517.75
8.2.170.0160.00319.77
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00023.12
8.2.120.0040.00426.35
8.2.110.0040.00722.00
8.2.100.0110.00021.59
8.2.90.0040.00420.10
8.2.80.0030.00618.36
8.2.70.0040.00418.35
8.2.60.0000.00818.93
8.2.50.0060.00318.25
8.2.40.0050.00321.55
8.2.30.0040.00420.04
8.2.20.0080.00318.50
8.2.10.0070.00018.93
8.2.00.0070.00318.87
8.1.300.0030.01020.47
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0050.00324.96
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00422.18
8.1.230.0110.00320.09
8.1.220.0030.00518.64
8.1.210.0000.00818.77
8.1.200.0030.00618.11
8.1.190.0060.00317.98
8.1.180.0040.00418.10
8.1.170.0030.00619.46
8.1.160.0070.00023.07
8.1.150.0030.00619.77
8.1.140.0030.00620.39
8.1.130.0040.00418.52
8.1.120.0040.00418.32
8.1.110.0000.00718.20
8.1.100.0000.00918.18
8.1.90.0000.00818.34
8.1.80.0040.00418.26
8.1.70.0080.00018.35
8.1.60.0080.00418.43
8.1.50.0000.00818.31
8.1.40.0110.00718.26
8.1.30.0040.00818.64
8.1.20.0070.00318.60
8.1.10.0080.00318.20
8.1.00.0000.00818.09
8.0.300.0080.00020.59
8.0.290.0040.00417.50
8.0.280.0070.00019.32
8.0.270.0050.00318.12
8.0.260.0030.00318.13
8.0.250.0070.00317.70
8.0.240.0000.00717.55
8.0.230.0000.01117.67
8.0.220.0030.00317.46
8.0.210.0040.00717.55
8.0.200.0030.00317.70
8.0.190.0020.00717.61
8.0.180.0030.00517.63
8.0.170.0070.00717.67
8.0.160.0050.00517.74
8.0.150.0030.00617.44
8.0.140.0110.00817.55
8.0.130.0000.00513.28
8.0.120.0040.00417.62
8.0.110.0040.00417.72
8.0.100.0040.00417.70
8.0.90.0070.00017.91
8.0.80.0070.01917.72
8.0.70.0040.00417.85
8.0.60.0070.00017.84
8.0.50.0040.00417.84
8.0.30.0150.00617.74
8.0.20.0130.00818.02
8.0.10.0030.00517.61
8.0.00.0080.01217.54
7.4.330.0020.00215.08
7.4.320.0000.00617.23
7.4.300.0040.00417.29
7.4.290.0030.00717.20
7.4.280.0110.00017.33
7.4.270.0000.00717.33
7.4.260.0090.00017.38
7.4.250.0000.00717.29
7.4.240.0000.00717.38
7.4.230.0030.00317.22
7.4.220.0100.01717.40
7.4.210.0060.01017.36
7.4.200.0040.00417.27
7.4.160.0040.01217.34
7.4.150.0110.00817.40
7.4.140.0100.00717.86
7.4.130.0120.00917.27
7.4.120.0100.00917.29
7.4.110.0040.01517.27
7.4.100.0080.00917.19
7.4.90.0060.01217.23
7.4.80.0180.00419.39
7.4.70.0100.00717.34
7.4.60.0150.00617.21
7.4.50.0090.00917.14
7.4.40.0100.01017.29
7.4.30.0060.01617.29
7.4.00.0070.01015.65
7.3.330.0060.00013.19
7.3.320.0000.00513.20
7.3.310.0050.00317.14
7.3.300.0000.00717.23
7.3.290.0070.00017.17
7.3.280.0130.00617.11
7.3.270.0150.01617.40
7.3.260.0070.01017.48
7.3.250.0120.00617.21
7.3.240.0090.00817.27
7.3.230.0100.00717.10
7.3.210.0150.00316.97
7.3.200.0060.01017.41
7.3.190.0100.00517.13
7.3.180.0120.01317.30
7.3.170.0070.01117.31
7.3.160.0090.01217.25
7.2.330.0140.01117.47
7.2.320.0110.01517.09
7.2.310.0070.01017.31
7.2.300.0060.01217.32
7.2.290.0140.00716.98
7.2.60.0100.00517.40
7.2.00.0000.01720.25
7.1.200.0080.00416.64
7.1.100.0030.00919.21
7.1.70.0000.01017.94
7.1.60.0080.00419.81
7.1.50.0080.01618.05
7.1.00.0000.08023.34
7.0.200.0100.00515.37
7.0.100.0130.05320.12
7.0.90.0230.06719.98
7.0.80.0200.07020.20
7.0.70.0170.05719.96
7.0.60.0170.06320.04
7.0.50.0200.06020.34
7.0.40.0130.06020.30
7.0.30.0470.05720.37
7.0.20.0100.08720.26
7.0.10.0170.06320.28
7.0.00.0070.07320.20
5.6.250.0100.06320.59
5.6.240.0100.06720.47
5.6.230.0130.06720.72
5.6.220.0100.06320.71
5.6.210.0230.06020.70
5.6.200.0230.05721.06
5.6.190.0100.07721.04
5.6.180.0130.07721.13
5.6.170.0100.07321.04
5.6.160.0070.06321.09
5.6.150.0070.08321.10
5.6.140.0130.06021.07
5.6.130.0170.08021.07
5.6.120.0170.06321.05
5.6.110.0130.07321.18
5.6.100.0100.06321.05
5.6.90.0170.08321.13
5.6.80.0130.05320.48
5.6.70.0070.07020.54
5.6.60.0130.05320.39
5.6.50.0200.06320.57
5.6.40.0170.07020.36
5.6.30.0200.07020.39
5.6.20.0130.08020.42
5.6.10.0030.08720.45
5.6.00.0070.08320.41

preferences:
66.1 ms | 403 KiB | 5 Q