3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'de_DE'); // German locale (not needed, but you never know...) echo preg_match('/^[a-z]+$/', 'abc') ? "yes\n" : "no\n"; echo preg_match('/^[a-z]+$/', "\äbc") ? "yes\n" : "no\n"; // äbc in ISO-8859-1 echo preg_match('/^[a-z]+$/', "\xC3\xA4bc") ? "yes\n" : "no\n"; // äbc in UTF-8 echo preg_match('/^[a-z]+$/u', "\xC3\xA4bc") ? "yes\n" : "no\n"; // w/ PCRE_UTF8

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.0180.00319.40
8.3.30.0090.00619.29
8.3.20.0040.00420.69
8.3.10.0040.00422.33
8.3.00.0040.00422.82
8.2.170.0070.01122.96
8.2.160.0140.00421.32
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00717.75
8.2.110.0070.01422.68
8.2.100.0040.00719.63
8.2.90.0030.00619.48
8.2.80.0050.00518.17
8.2.70.0080.00018.00
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0000.00818.47
8.2.30.0030.00518.36
8.2.20.0030.00618.13
8.2.10.0040.00418.03
8.2.00.0000.00818.04
8.1.270.0000.00822.44
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0120.00924.13
8.1.230.0030.00719.54
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0030.00517.78
8.1.180.0040.00418.92
8.1.170.0040.00418.86
8.1.160.0000.00722.28
8.1.150.0060.00318.93
8.1.140.0080.00017.86
8.1.130.0040.00418.09
8.1.120.0040.00417.70
8.1.110.0040.00417.89
8.1.100.0070.00017.79
8.1.90.0000.00717.67
8.1.80.0040.00417.74
8.1.70.0000.00717.79
8.1.60.0040.00417.84
8.1.50.0000.00817.86
8.1.40.0000.00717.91
8.1.30.0040.00417.96
8.1.20.0000.00817.91
8.1.10.0000.00817.95
8.1.00.0000.00817.88
8.0.300.0040.00418.77
8.0.290.0000.00717.55
8.0.280.0000.00718.80
8.0.270.0000.00717.67
8.0.260.0030.00317.41
8.0.250.0040.00417.46
8.0.240.0040.00417.48
8.0.230.0000.00717.39
8.0.220.0030.00317.22
8.0.210.0030.00317.38
8.0.200.0000.00717.31
8.0.190.0000.00717.30
8.0.180.0060.00317.40
8.0.170.0040.00417.36
8.0.160.0080.00017.36
8.0.150.0030.00517.18
8.0.140.0030.00517.25
8.0.130.0130.00013.80
8.0.120.0030.00617.23
8.0.110.0000.00717.26
8.0.100.0080.00017.36
8.0.90.0000.00817.38
8.0.80.0100.00317.21
8.0.70.0070.00017.20
8.0.60.0040.00417.23
8.0.50.0000.00717.30
8.0.30.0140.00817.43
8.0.20.0100.00717.42
8.0.10.0000.00717.13
8.0.00.0110.01417.20
7.4.330.0030.00315.37
7.4.320.0000.00716.93
7.4.300.0040.00416.88
7.4.290.0030.00316.80
7.4.280.0040.00416.88
7.4.270.0070.00016.87
7.4.260.0050.00816.94
7.4.250.0040.00416.84
7.4.240.0020.00516.99
7.4.230.0070.00016.96
7.4.220.0090.00917.05
7.4.210.0090.00717.11
7.4.200.0030.00517.09
7.4.190.0030.00317.11
7.4.160.0120.00416.79
7.4.150.0170.00317.40
7.4.140.0110.01217.86
7.4.130.0090.00916.86
7.4.120.0100.00916.92
7.4.110.0000.01816.82
7.4.100.0040.01317.04
7.4.90.0070.01016.81
7.4.80.0100.01019.39
7.4.70.0070.01016.75
7.4.60.0100.00716.90
7.4.50.0040.00416.82
7.4.40.0120.00322.77
7.4.30.0170.00616.94
7.4.00.0100.00815.24
7.3.330.0030.00313.50
7.3.320.0030.00313.43
7.3.310.0030.00316.77
7.3.300.0030.00316.57
7.3.290.0090.00816.74
7.3.280.0090.01016.76
7.3.270.0100.00717.40
7.3.260.0110.00716.58
7.3.250.0100.01116.64
7.3.240.0110.00716.78
7.3.230.0090.00917.01
7.3.210.0080.01117.06
7.3.200.0030.01319.39
7.3.190.0130.00816.96
7.3.180.0080.00816.65
7.3.170.0100.00716.86
7.3.160.0030.01616.70
7.3.120.0080.00915.18
7.3.110.0100.00614.93
7.3.100.0000.00915.28
7.3.90.0060.00314.99
7.3.80.0070.00715.14
7.3.70.0090.00614.99
7.3.60.0060.00914.79
7.3.50.0070.00714.95
7.3.40.0000.01415.04
7.3.30.0090.00614.94
7.3.20.0110.00016.70
7.3.10.0040.01416.67
7.3.00.0080.00416.58
7.2.330.0070.01317.00
7.2.320.0170.00017.06
7.2.310.0100.01417.09
7.2.300.0070.01017.02
7.2.290.0100.00616.92
7.2.250.0100.01014.74
7.2.240.0120.00915.30
7.2.230.0060.00914.97
7.2.220.0070.00715.01
7.2.210.0090.00614.95
7.2.200.0040.01114.70
7.2.190.0070.00414.82
7.2.180.0070.00715.07
7.2.170.0070.00714.81
7.2.00.0030.01019.40
7.1.330.0100.00715.84
7.1.320.0030.00816.00
7.1.310.0030.01115.73
7.1.300.0070.00415.86
7.1.290.0030.00915.81
7.1.280.0030.00915.69
7.1.270.0110.00715.75
7.1.260.0060.00315.67
7.1.200.0000.01315.96
7.1.100.0170.00718.39
7.1.70.0030.01316.95
7.1.60.0150.00919.82
7.1.50.0030.01717.23
7.1.00.0000.08022.59
7.0.200.0000.01016.80
7.0.140.0030.07022.21
7.0.60.0030.07719.87
7.0.50.0070.08017.81
7.0.40.0070.06720.44
7.0.30.0300.07720.03
7.0.20.0230.05320.21
7.0.10.0070.08720.11
7.0.00.0070.07020.14
5.6.280.0030.07321.04
5.6.210.0030.04020.77
5.6.200.0070.06018.15
5.6.190.0100.08020.57
5.6.180.0230.05720.29
5.6.170.0100.04720.41
5.6.160.0000.04320.42
5.6.150.0030.04018.22
5.6.140.0100.07718.16
5.6.130.0070.05318.21
5.6.120.0130.07720.95
5.6.110.0070.08721.14
5.6.100.0070.08320.97
5.6.90.0070.08721.11
5.6.80.0070.04020.41
5.5.350.0000.08720.32
5.5.340.0030.08317.91
5.5.330.0100.08320.43
5.5.320.3830.04320.32
5.5.310.0230.07720.21
5.5.300.0170.07317.93
5.5.290.0070.08017.95
5.5.280.0130.06320.87
5.5.270.0100.08320.88
5.5.260.0100.08320.79
5.5.250.0100.08020.68
5.5.240.0170.06720.15
5.4.450.0870.03719.59
5.4.440.1270.03019.43
5.4.430.0170.04719.68
5.4.420.0200.06019.45
5.4.410.0200.04718.91
5.4.400.0200.06018.51
5.4.390.0070.06018.61
5.4.380.0000.06318.73
5.4.370.0270.05318.70
5.4.360.0400.04718.59
5.4.350.0230.06318.50
5.4.340.0300.05718.72
5.4.320.0070.03412.48
5.4.310.0070.03912.48
5.4.300.0100.03312.48
5.4.290.0050.04612.48
5.4.280.0060.03712.38
5.4.270.0100.05018.80
5.4.260.0070.05318.99
5.4.250.0170.06318.83
5.4.240.0000.05718.88
5.4.230.0100.05018.87
5.4.220.0130.05018.85
5.4.210.0000.05718.65
5.4.200.0130.04718.87
5.4.190.0000.05718.88
5.4.180.0100.04718.88
5.4.170.0100.05018.86
5.4.160.0070.05018.70
5.4.150.0170.04318.86
5.4.140.0170.04016.35
5.4.130.0070.05716.32
5.4.120.0070.05016.35
5.4.110.0100.04716.33
5.4.100.0070.06016.48
5.4.90.0030.05016.39
5.4.80.0030.05016.48
5.4.70.0030.05316.52
5.4.60.0030.05016.56
5.4.50.0100.04716.36
5.4.40.0030.05716.22
5.4.30.0170.04016.37
5.4.20.0170.06316.39
5.4.10.0030.05316.26
5.4.00.0070.04715.80
5.3.290.0100.03612.80
5.3.280.0230.03314.64
5.3.270.0100.05014.63
5.3.260.0130.06314.63
5.3.250.0070.05314.70
5.3.240.0070.05314.44
5.3.230.0100.04714.75
5.3.220.0070.05014.27
5.3.210.0130.04714.45
5.3.200.0130.04314.48
5.3.190.0030.05314.57
5.3.180.0130.04014.43
5.3.170.0170.04014.63
5.3.160.0070.05014.65
5.3.150.0130.04314.43
5.3.140.0000.05714.40
5.3.130.0100.05014.25
5.3.120.0070.07714.70
5.3.110.0130.07014.47
5.3.100.0130.04314.13
5.3.90.0100.04714.02
5.3.80.0030.05313.88
5.3.70.0070.04713.90
5.3.60.0000.06014.09
5.3.50.0070.04713.80
5.3.40.0130.04713.64
5.3.30.0100.07013.91
5.3.20.0100.04713.70
5.3.10.0100.04713.35
5.3.00.0030.05013.64
5.2.170.0070.04011.06
5.2.160.0130.03311.03
5.2.150.0030.04311.21
5.2.140.0030.04311.06
5.2.130.0000.05711.19
5.2.120.0000.05011.25
5.2.110.0070.04311.01
5.2.100.0100.05311.12
5.2.90.0000.04711.21
5.2.80.0070.03710.99
5.2.70.0030.04311.11
5.2.60.0070.03711.07
5.2.50.0070.03711.09
5.2.40.0030.04011.09
5.2.30.0130.03311.07
5.2.20.0030.04310.85
5.2.10.0070.03710.78
5.2.00.0030.04010.79
5.1.60.0100.02710.14
5.1.50.0030.0439.96
5.1.40.0170.0239.91
5.1.30.0030.05010.16
5.1.20.0070.04310.42
5.1.10.0100.03710.25
5.1.00.0070.0339.95
5.0.50.0070.0378.64
5.0.40.0030.0278.60
5.0.30.0030.0438.15
5.0.20.0070.0338.28
5.0.10.0100.0378.32
5.0.00.0030.0578.14
4.4.90.0000.0307.39
4.4.80.0000.0237.39
4.4.70.0030.0207.39
4.4.60.0000.0237.39
4.4.50.0000.0337.39
4.4.40.0030.0407.39
4.4.30.0100.0137.39
4.4.20.0070.0307.39
4.4.10.0070.0207.39
4.4.00.0030.0337.39
4.3.110.0070.0277.39
4.3.100.0030.0207.39
4.3.90.0030.0207.39
4.3.80.0030.0437.39
4.3.70.0030.0207.39
4.3.60.0070.0177.39
4.3.50.0000.0237.39
4.3.40.0000.0377.39
4.3.30.0100.0137.39
4.3.20.0000.0237.39
4.3.10.0030.0307.39
4.3.00.0070.01313.33

preferences:
44.79 ms | 400 KiB | 5 Q