3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "This is a text with John Doe", "This is a text with Max Müstermann ", "This is a text withJohn-Frank' Doe.", "This is a text with John/Doejlkjkjlk", ]; $pattern = "/^(?=.{25,999})(?=.*[a-z]{2})[a-zA-Z0-9äöü,.' -]+$/"; foreach ($strings as $string) { if (preg_match($pattern, $string)) { echo "Ok ==> $string" . PHP_EOL; } else { echo "error" . PHP_EOL; } }

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.5.20.0090.00719.21
8.5.10.0110.00816.81
8.5.00.0110.01220.16
8.4.170.0090.01320.35
8.4.160.0060.00522.19
8.4.150.0020.00114.05
8.4.140.0090.01217.95
8.4.130.0130.00717.96
8.4.120.0100.01220.68
8.4.110.0090.00822.40
8.4.100.0110.00418.03
8.4.90.0130.00718.91
8.4.80.0120.00818.07
8.4.70.0130.00718.11
8.4.60.0100.00818.68
8.4.50.0160.00618.76
8.4.40.0160.00320.75
8.4.30.0100.01022.65
8.4.20.0100.01318.95
8.4.10.0040.00419.39
8.3.300.0100.01220.93
8.3.290.0130.00720.73
8.3.280.0130.00718.52
8.3.270.0130.01316.73
8.3.260.0130.00716.64
8.3.250.0120.00718.96
8.3.240.0130.00716.53
8.3.230.0110.01216.66
8.3.220.0110.00717.38
8.3.210.0100.00816.52
8.3.200.0050.00416.56
8.3.190.0080.01017.11
8.3.180.0100.00818.87
8.3.170.0120.00616.82
8.3.160.0030.01417.05
8.3.150.0100.01017.32
8.3.140.0100.00617.17
8.3.130.0080.00018.69
8.3.120.0080.00018.98
8.3.110.0060.00320.94
8.3.100.0050.00324.06
8.3.90.0050.00526.77
8.3.80.0090.00016.75
8.3.70.0140.00416.58
8.3.60.0130.00618.27
8.3.50.0070.01422.23
8.3.40.0110.00418.84
8.3.30.0150.00318.79
8.3.20.0080.00021.60
8.3.10.0080.00020.32
8.3.00.0040.00423.53
8.2.300.0130.00722.16
8.2.290.0060.00322.15
8.2.280.0110.00816.61
8.2.270.0080.00016.35
8.2.260.0060.01316.75
8.2.250.0110.00718.46
8.2.240.0030.00618.96
8.2.230.0080.00022.58
8.2.220.0190.00037.54
8.2.210.0110.00726.77
8.2.200.0040.00416.88
8.2.190.0070.00716.75
8.2.180.0150.00618.41
8.2.170.0040.01122.96
8.2.160.0030.01021.14
8.2.150.0050.00524.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0130.00322.20
8.2.100.0040.00717.91
8.2.90.0000.00818.28
8.2.80.0000.00819.07
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0090.00318.10
8.2.20.0040.00418.09
8.2.10.0030.00619.28
8.2.00.0030.00619.18
8.1.340.0110.01017.88
8.1.330.0080.01122.31
8.1.320.0110.00316.53
8.1.310.0120.00416.47
8.1.300.0030.00620.16
8.1.290.0060.00318.88
8.1.280.0110.00725.92
8.1.270.0030.00623.97
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0040.00423.96
8.1.230.0040.00819.05
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0050.00318.76
8.1.160.0040.00418.96
8.1.150.0040.00418.98
8.1.140.0000.00718.86
8.1.130.0030.00320.17
8.1.120.0000.00817.52
8.1.110.0040.00417.57
8.1.100.0040.00417.67
8.1.90.0040.00417.62
8.1.80.0040.00717.61
8.1.70.0050.00317.54
8.1.60.0000.01117.73
8.1.50.0000.00817.66
8.1.40.0080.00017.56
8.1.30.0030.00517.67
8.1.20.0080.00017.81
8.1.10.0050.00517.69
8.1.00.0050.00317.64
8.0.300.0070.00018.77
8.0.290.0000.00717.00
8.0.280.0030.00318.52
8.0.270.0090.00017.21
8.0.260.0050.00318.39
8.0.250.0030.00317.03
8.0.240.0080.00016.98
8.0.230.0000.00717.00
8.0.220.0070.00017.02
8.0.210.0000.00717.01
8.0.200.0000.01017.00
8.0.190.0040.00417.02
8.0.180.0040.00417.03
8.0.170.0080.00017.07
8.0.160.0040.00417.08
8.0.150.0040.00417.05
8.0.140.0070.00416.91
8.0.130.0040.00313.49
8.0.120.0000.00817.12
8.0.110.0000.00717.00
8.0.100.0000.00716.88
8.0.90.0070.00317.03
8.0.80.0060.01016.93
8.0.70.0000.00717.09
8.0.60.0000.00816.97
8.0.50.0030.00517.04
8.0.30.0110.01117.03
8.0.20.0160.00917.35
8.0.10.0040.00417.06
8.0.00.0090.01017.04
7.4.330.0000.00515.55
7.4.320.0060.00016.75
7.4.300.0030.00316.82
7.4.290.0040.00416.73
7.4.280.0040.00416.67
7.4.270.0040.00416.73
7.4.260.0030.00316.84
7.4.250.0000.00716.70
7.4.240.0020.00516.76
7.4.230.0040.00416.80
7.4.220.0070.00016.61
7.4.210.0110.00716.86
7.4.200.0070.00016.91
7.4.140.0070.01117.86
7.4.130.0030.01316.70
7.4.120.0120.01216.75
7.4.110.0120.00616.79
7.4.100.0070.01016.88
7.4.90.0030.01316.60
7.4.80.0150.00919.39
7.4.70.0160.00016.70
7.4.60.0090.00916.67
7.4.50.0030.01216.45
7.4.40.0130.00316.68
7.4.00.0110.00815.06
7.3.330.0050.00013.32
7.3.320.0030.00313.23
7.3.310.0000.00716.57
7.3.300.0000.00716.32
7.3.290.0040.00416.51
7.3.280.0090.00616.59
7.3.260.0090.00816.57
7.3.240.0060.01116.61
7.3.230.0100.00716.62
7.3.210.0100.00716.72
7.3.200.0090.00916.49
7.3.190.0060.01116.32
7.3.180.0050.01316.91
7.3.170.0080.00816.85
7.3.160.0070.01316.71
7.3.120.0090.01115.02
7.3.110.0100.00815.10
7.3.100.0090.00515.11
7.3.90.0020.01314.78
7.3.80.0090.00315.09
7.3.70.0070.00714.94
7.3.60.0040.00814.92
7.3.50.0080.00515.03
7.3.40.0070.00614.96
7.3.30.0030.00915.04
7.3.20.0050.01316.22
7.3.10.0090.00216.21
7.3.00.0060.00916.30
7.2.330.0080.00816.70
7.2.320.0100.00716.86
7.2.310.0120.00916.73
7.2.300.0150.00416.66
7.2.290.0110.00616.94
7.2.250.0190.00314.95
7.2.240.0140.00315.10
7.2.230.0080.00914.95
7.2.220.0030.01015.13
7.2.210.0070.00615.10
7.2.200.0070.00914.98
7.2.190.0100.00715.07
7.2.180.0110.00615.22
7.2.170.0030.01115.01
7.2.160.0050.01015.05
7.2.150.0060.01016.14
7.2.140.0050.01515.94
7.2.130.0060.01015.95
7.2.120.0110.00315.89
7.2.110.0150.00516.21
7.2.100.0080.00515.97
7.2.90.0160.00516.07
7.2.80.0080.01016.24
7.2.70.0090.01216.19
7.2.60.0080.01316.21
7.2.50.0140.00616.15
7.2.40.0130.00416.09
7.2.30.0050.01015.98
7.2.20.0100.00916.11
7.2.10.0970.00316.27
7.2.00.0100.00716.08
7.1.330.0080.00715.85
7.1.320.0030.00815.93
7.1.310.0060.01015.92
7.1.300.0080.00615.38
7.1.290.0030.01215.41
7.1.280.0120.00515.29
7.1.270.0070.00915.28
7.1.260.0080.00915.30
7.1.250.0070.01215.03

preferences:
36.28 ms | 403 KiB | 5 Q