3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/^([a-zA-Z ,.]|\p{Han})+$/"; $tests = array( 'Mr Smith', 'Mr. Smith', 'Mr. 123 Smith', '姓名' ); foreach ($tests as $test) { if (preg_match($re, $test) !== 1) { echo $test . ' failed' . 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.3.60.0070.00718.27
8.3.50.0080.01023.08
8.3.40.0000.01418.98
8.3.30.0070.00719.05
8.3.20.0000.00819.93
8.3.10.0060.00323.65
8.3.00.0040.00419.63
8.2.180.0100.01016.63
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0060.00622.45
8.2.100.0060.00617.81
8.2.90.0040.00418.03
8.2.80.0120.00017.97
8.2.70.0090.00317.75
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00420.00
8.2.30.0000.00718.21
8.2.20.0040.00417.76
8.2.10.0040.00418.12
8.2.00.0030.00517.89
8.1.280.0070.00725.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00823.96
8.1.230.0080.00422.21
8.1.220.0050.00317.76
8.1.210.0040.00419.10
8.1.200.0090.00017.24
8.1.190.0030.00517.25
8.1.180.0030.00518.10
8.1.170.0110.00018.82
8.1.160.0040.00422.01
8.1.150.0060.00318.95
8.1.140.0000.00717.72
8.1.130.0030.00317.95
8.1.120.0070.00017.65
8.1.110.0000.00917.50
8.1.100.0000.00817.61
8.1.90.0000.00717.61
8.1.80.0040.00417.48
8.1.70.0000.00717.55
8.1.60.0040.00417.74
8.1.50.0030.00517.74
8.1.40.0030.00617.69
8.1.30.0040.00417.79
8.1.20.0060.00317.69
8.1.10.0070.00017.52
8.1.00.0000.01017.52
8.0.300.0000.00819.94
8.0.290.0000.00816.88
8.0.280.0040.00418.33
8.0.270.0000.00717.27
8.0.260.0030.00317.23
8.0.250.0030.00317.06
8.0.240.0030.00317.12
8.0.230.0000.00717.07
8.0.220.0050.00317.03
8.0.210.0000.00716.96
8.0.200.0030.00317.07
8.0.190.0040.00416.98
8.0.180.0040.00417.05
8.0.170.0040.00416.99
8.0.160.0030.00316.87
8.0.150.0040.00716.91
8.0.140.0040.00417.02
8.0.130.0000.00513.45
8.0.120.0030.00516.96
8.0.110.0000.00817.04
8.0.100.0040.00416.98
8.0.90.0000.00817.05
8.0.80.0110.00317.13
8.0.70.0040.00417.00
8.0.60.0000.00716.98
8.0.50.0040.00416.95
8.0.30.0150.00817.19
8.0.20.0140.00517.40
8.0.10.0040.00417.05
8.0.00.0110.00917.13
7.4.330.0030.00315.24
7.4.320.0060.00016.86
7.4.300.0030.00316.62
7.4.290.0030.00316.91
7.4.280.0040.00416.86
7.4.270.0000.00816.75
7.4.260.0080.00016.89
7.4.250.0000.00716.82
7.4.240.0040.00416.82
7.4.230.0000.00816.92
7.4.220.0070.01016.77
7.4.210.0060.01016.89
7.4.200.0080.00016.89
7.4.160.0150.00016.61
7.4.150.0090.01217.40
7.4.140.0070.01117.86
7.4.130.0090.00816.69
7.4.120.0060.01216.69
7.4.110.0140.00316.68
7.4.100.0100.00716.51
7.4.90.0030.01316.49
7.4.80.0060.01719.39
7.4.70.0130.00416.79
7.4.60.0110.00716.73
7.4.50.0000.00416.58
7.4.40.0070.01016.61
7.4.30.0050.01016.67
7.4.00.0030.00915.29
7.3.330.0030.00313.34
7.3.320.0000.00513.24
7.3.310.0040.00416.55
7.3.300.0030.00316.43
7.3.290.0070.00716.38
7.3.280.0100.00916.49
7.3.270.0070.01317.40
7.3.260.0150.00316.71
7.3.250.0080.01216.71
7.3.240.0060.01216.64
7.3.230.0110.00716.39
7.3.210.0000.01716.73
7.3.200.0150.00019.39
7.3.190.0030.01316.62
7.3.180.0100.00716.90
7.3.170.0090.00916.43
7.3.160.0080.00816.63
7.3.10.0110.01016.51
7.3.00.0170.00616.49
7.2.330.0070.01016.90
7.2.320.0060.01616.64
7.2.310.0110.00716.87
7.2.300.0070.01016.84
7.2.290.0140.00816.79
7.2.130.0120.00716.86
7.2.120.0110.00516.72
7.2.110.0140.00916.67
7.2.100.0170.00916.53
7.2.90.0150.00616.80
7.2.80.0110.01116.85
7.2.70.0160.00916.53
7.2.60.0150.00816.89
7.2.50.0130.01116.93
7.2.40.0160.01016.80
7.2.30.0140.01216.82
7.2.20.0160.00716.69
7.2.10.0140.00616.54
7.2.00.0120.00517.91
7.1.250.0150.01015.70
7.1.200.0080.00816.02
7.1.100.0090.00018.57
7.1.70.0050.00317.36
7.1.60.0120.01219.40
7.1.50.0140.01117.18
7.1.00.0000.07722.45
7.0.200.0500.00714.74
7.0.140.0070.07022.16
7.0.60.0130.06020.07
7.0.50.0070.09317.86
7.0.40.0000.06020.00
7.0.30.0300.05320.03
7.0.20.0200.06020.18
7.0.10.0100.05020.21
7.0.00.0130.07320.10
5.6.280.0100.06720.89
5.6.210.0100.08020.61
5.6.200.0070.07318.21
5.6.190.0030.09020.66
5.6.180.0270.04720.40
5.6.170.0230.05320.66
5.6.160.0170.07020.71
5.6.150.0030.08718.16
5.6.140.0030.05318.16
5.6.130.0070.08018.21
5.6.120.0000.06321.00
5.6.110.0070.09021.02
5.6.100.0170.06721.07
5.6.90.0070.09021.00
5.6.80.0070.08020.28
5.5.350.0170.07320.33
5.5.340.0000.06718.01
5.5.330.0000.04720.25
5.5.320.0000.09020.41
5.5.310.0230.06020.29
5.5.300.0030.04018.02
5.5.290.0030.06317.98
5.5.280.0230.06720.73
5.5.270.0300.05320.77
5.5.260.0070.07320.97
5.5.250.0200.07020.68
5.5.240.0130.04020.16
5.4.450.0230.03719.39
5.4.440.0430.06319.48
5.4.430.0230.05019.56
5.4.420.0200.04019.24
5.4.410.0230.04719.00
5.4.400.0400.06019.06
5.4.390.0300.04318.79
5.4.380.0330.07319.04
5.4.370.0330.07018.79
5.4.360.0270.07318.93
5.4.350.0270.08018.91
5.4.340.0400.03019.16
5.4.320.0300.07319.08
5.4.310.0270.07719.23
5.4.300.0300.07019.16
5.4.290.0370.05718.84
5.4.280.0300.06718.80
5.4.270.0230.07319.24
5.4.260.0230.05319.06
5.4.250.0270.04019.24
5.4.240.0400.05719.19
5.4.230.0300.07319.15
5.4.220.0370.06719.21
5.4.210.0270.07318.93
5.4.200.0300.07019.21
5.4.190.0300.04018.91
5.4.180.0330.07319.07
5.4.170.0230.03719.07
5.4.160.0270.07019.05
5.4.150.0230.05719.07
5.4.140.0230.05016.43
5.4.130.0270.04716.27
5.4.120.0270.06716.47
5.4.110.0270.05716.06
5.4.100.0270.05016.41
5.4.90.0300.06716.47
5.4.80.0300.06316.32
5.4.70.0330.06016.29
5.4.60.0270.05716.40
5.4.50.0330.06316.31
5.4.40.0300.04316.16
5.4.30.0330.06016.38
5.4.20.0330.06716.27
5.4.10.0230.03716.44
5.4.00.0170.04015.61
5.3.290.0430.06014.69
5.3.280.0330.03314.55
5.3.270.0330.04314.63
5.3.260.0270.07714.45
5.3.250.0400.06014.69
5.3.240.0330.05714.45
5.3.230.0270.06314.45
5.3.220.0230.04314.41
5.3.210.0300.07314.55
5.3.200.0370.04714.48
5.3.190.0300.07014.48
5.3.180.0270.05714.42
5.3.170.0300.04314.53
5.3.160.0270.04714.48
5.3.150.0270.07314.52
5.3.140.0370.06314.46
5.3.130.0400.06014.46
5.3.120.0330.05714.54
5.3.110.0270.04714.58
5.3.100.0230.04314.09
5.3.90.0300.06713.93
5.3.80.0300.07013.81
5.3.70.0270.05014.10
5.3.60.0270.07013.99
5.3.50.0270.06013.90
5.3.40.0400.06013.92
5.3.30.0230.04713.82
5.3.20.0400.05313.48
5.3.10.0270.04313.51
5.3.00.0270.07013.59
5.2.170.0270.06012.16
5.2.160.0300.04012.16
5.2.150.0230.04712.16
5.2.140.0200.06712.16
5.2.130.0270.05312.16
5.2.120.0300.05312.16
5.2.110.0170.03712.16
5.2.100.0300.05012.16
5.2.90.0200.04712.16
5.2.80.0300.05712.16
5.2.70.0370.03712.16
5.2.60.0300.05712.16
5.2.50.0400.04712.16
5.2.40.0200.06012.16
5.2.30.0130.06712.16
5.2.20.0130.04312.16
5.2.10.0230.05012.16
5.2.00.0230.05312.16
5.1.60.0230.04712.16
5.1.50.0200.05012.16
5.1.40.0170.05012.16
5.1.30.0200.04712.16
5.1.20.0270.05012.16
5.1.10.0170.03312.16
5.1.00.0230.04712.16
5.0.50.0100.03012.16
5.0.40.0170.04012.16
5.0.30.0100.06012.16
5.0.20.0130.02712.16
5.0.10.0100.04712.16
5.0.00.0100.05312.16
4.4.90.0070.02712.16
4.4.80.0100.02312.16
4.4.70.0100.03712.16
4.4.60.0100.03712.16
4.4.50.0100.02712.16
4.4.40.0100.05312.16
4.4.30.0100.03312.16
4.4.20.0170.03312.16
4.4.10.0130.03012.16
4.4.00.0100.03012.16
4.3.110.0100.01312.16
4.3.100.0100.02712.16
4.3.90.0100.02012.16
4.3.80.0130.05012.16
4.3.70.0130.02312.16
4.3.60.0100.03312.16
4.3.50.0100.02712.16
4.3.40.0100.02712.16
4.3.30.0030.03712.16
4.3.20.0030.04012.16
4.3.10.0030.02712.16
4.3.00.0030.03712.16

preferences:
46.15 ms | 401 KiB | 5 Q