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.43
8.3.50.0120.01022.90
8.3.40.0070.00718.95
8.3.30.0070.00719.04
8.3.20.0080.00020.36
8.3.10.0080.00023.66
8.3.00.0050.00319.38
8.2.180.0100.01016.63
8.2.170.0030.01122.96
8.2.160.0100.00320.41
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00721.07
8.2.110.0040.00821.12
8.2.100.0080.00317.97
8.2.90.0060.00318.09
8.2.80.0080.00017.97
8.2.70.0030.00917.88
8.2.60.0030.00517.80
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0000.00718.07
8.2.20.0080.00017.93
8.2.10.0030.00518.13
8.2.00.0080.00017.88
8.1.280.0110.00425.92
8.1.270.0060.00323.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01322.61
8.1.230.0090.00321.04
8.1.220.0040.00417.74
8.1.210.0050.00318.96
8.1.200.0070.00317.48
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0070.00418.71
8.1.160.0000.00721.94
8.1.150.0050.00318.84
8.1.140.0000.00717.56
8.1.130.0000.00717.89
8.1.120.0040.00417.47
8.1.110.0030.00617.50
8.1.100.0040.00417.59
8.1.90.0040.00417.65
8.1.80.0040.00417.48
8.1.70.0000.00717.54
8.1.60.0030.00617.73
8.1.50.0030.00617.68
8.1.40.0040.00417.68
8.1.30.0000.00817.79
8.1.20.0000.00817.85
8.1.10.0040.00417.53
8.1.00.0000.01017.62
8.0.300.0040.00419.88
8.0.290.0030.00516.88
8.0.280.0040.00418.41
8.0.270.0000.00717.29
8.0.260.0040.00417.31
8.0.250.0070.00017.11
8.0.240.0000.00617.13
8.0.230.0000.00717.05
8.0.220.0000.00716.96
8.0.210.0000.00817.00
8.0.200.0020.00517.04
8.0.190.0000.00716.97
8.0.180.0000.00717.03
8.0.170.0040.00417.09
8.0.160.0000.00817.05
8.0.150.0110.00017.05
8.0.140.0040.00416.92
8.0.130.0040.00413.49
8.0.120.0040.00416.94
8.0.110.0040.00417.05
8.0.100.0040.00417.13
8.0.90.0040.00417.13
8.0.80.0090.00617.13
8.0.70.0040.00416.97
8.0.60.0070.00017.15
8.0.50.0040.00417.14
8.0.30.0120.00817.19
8.0.20.0050.01417.40
8.0.10.0050.00317.24
8.0.00.0080.00917.05
7.4.330.0020.00215.05
7.4.320.0030.00316.86
7.4.300.0030.00316.86
7.4.290.0070.00016.82
7.4.280.0040.00416.84
7.4.270.0000.00716.77
7.4.260.0030.00316.71
7.4.250.0040.00416.78
7.4.240.0040.00416.86
7.4.230.0040.00416.93
7.4.220.0160.00016.71
7.4.210.0040.01116.71
7.4.200.0000.00816.89
7.4.160.0030.01216.84
7.4.150.0070.01317.40
7.4.140.0050.01217.86
7.4.130.0080.01016.71
7.4.120.0060.01116.65
7.4.110.0090.00616.64
7.4.100.0070.01016.71
7.4.90.0030.01416.76
7.4.80.0090.01419.39
7.4.70.0060.01016.90
7.4.60.0120.00416.75
7.4.50.0040.00416.55
7.4.40.0100.01016.56
7.4.30.0040.01216.82
7.4.00.0040.01115.28
7.3.330.0070.00013.16
7.3.320.0000.00513.25
7.3.310.0050.00316.34
7.3.300.0030.00316.40
7.3.290.0040.01116.46
7.3.280.0120.00716.37
7.3.270.0030.01317.40
7.3.260.0110.00616.68
7.3.250.0110.00616.59
7.3.240.0120.00616.80
7.3.230.0060.01116.73
7.3.210.0060.01216.77
7.3.200.0130.00316.62
7.3.190.0110.00816.77
7.3.180.0060.00916.36
7.3.170.0130.00316.73
7.3.160.0120.00416.66
7.3.120.0060.00615.21
7.3.110.0070.00514.93
7.3.100.0030.00614.96
7.3.90.0030.01014.88
7.3.80.0040.00814.98
7.3.70.0030.01314.99
7.3.60.0100.00715.06
7.3.50.0070.00414.83
7.3.40.0070.00715.02
7.3.30.0070.00715.08
7.3.20.0000.01916.74
7.3.10.0150.00316.76
7.3.00.0040.00716.93
7.2.330.0150.00316.82
7.2.320.0090.00916.82
7.2.310.0130.00316.91
7.2.300.0080.00816.92
7.2.290.0060.00916.63
7.2.240.0060.00915.32
7.2.230.0060.00915.02
7.2.220.0030.00915.22
7.2.210.0030.01415.37
7.2.200.0070.01015.12
7.2.190.0060.00915.34
7.2.180.0030.01315.21
7.2.170.0070.00415.19
7.2.160.0070.00715.29
7.2.150.0060.00917.00
7.2.140.0120.00317.24
7.2.130.0060.00317.14
7.2.120.0100.00717.12
7.2.110.0150.00017.11
7.2.100.0000.01216.90
7.2.90.0090.00617.24
7.2.80.0070.00317.20
7.2.70.0070.01117.14
7.2.60.0060.00917.11
7.2.50.0030.00916.85
7.2.40.0000.01417.24
7.2.30.0100.00017.04
7.2.20.0080.00316.84
7.2.10.0030.01016.73
7.2.00.0070.00718.38
7.1.330.0030.00915.75
7.1.320.0040.01115.86
7.1.310.0000.01416.03
7.1.300.0120.00015.77
7.1.290.0070.00315.97
7.1.280.0070.00715.77
7.1.270.0080.00716.01
7.1.260.0040.00415.59
7.1.250.0060.01015.89
7.1.100.0030.00718.30
7.1.70.0000.00817.40
7.1.60.0100.01319.40
7.1.50.0140.01017.15
7.1.00.0070.07022.35
7.0.200.1350.01015.21
7.0.140.0000.07322.04
7.0.60.0000.05019.93
7.0.50.0070.03717.93
7.0.40.0070.08720.23
7.0.30.0230.05320.35
7.0.20.0230.05720.02
7.0.10.0030.07720.15
7.0.00.0070.08320.10
5.6.280.0000.07720.80
5.6.210.0170.04320.53
5.6.200.0070.06018.23
5.6.190.0070.04020.41
5.6.180.0300.06720.58
5.6.170.0330.07720.50
5.6.160.0130.04720.55
5.6.150.0030.04018.17
5.6.140.0130.06318.19
5.6.130.0030.05718.08
5.6.120.0070.03720.96
5.6.110.0000.05720.98
5.6.100.0070.06721.04
5.6.90.0130.07720.99
5.6.80.0130.06320.43
5.5.350.0100.08320.47
5.5.340.0030.03717.98
5.5.330.0100.06720.43
5.5.320.0030.07720.31
5.5.310.0200.06720.41
5.5.300.0070.08317.92
5.5.290.0100.03718.03
5.5.280.0170.08020.80
5.5.270.0100.07720.67
5.5.260.0070.08720.79
5.5.250.0000.08320.49
5.5.240.0230.04720.18
5.4.450.0330.04719.28
5.4.440.0600.04019.24
5.4.430.0700.05019.25
5.4.420.0300.04019.56
5.4.410.0770.04018.97
5.4.400.0700.04719.13
5.4.390.0700.04019.10
5.4.380.0470.04718.70
5.4.370.0330.05718.52
5.4.360.0400.05318.46
5.4.350.0470.06718.46
5.4.340.0400.04318.63
5.4.320.0090.03812.46
5.4.310.0050.03712.45
5.4.300.0070.03512.46
5.4.290.0110.03812.45
5.4.280.0020.03812.35
5.4.270.0040.04212.35
5.4.260.0100.03812.35
5.4.250.0110.03712.35
5.4.240.0070.03512.35
5.4.230.0100.03312.34
5.4.220.0060.03512.34
5.4.210.0030.03712.34
5.4.200.0060.03612.34
5.4.190.0080.04012.34
5.4.180.0060.04112.34
5.4.170.0120.04012.35
5.4.160.0060.03512.35
5.4.150.0070.03412.34
5.4.140.0050.03612.03
5.4.130.0060.03412.01
5.4.120.0030.04211.97
5.4.110.0070.03811.97
5.4.100.0050.04011.96
5.4.90.0050.04211.96
5.4.80.0090.03811.96
5.4.70.0050.03611.96
5.4.60.0020.04111.96
5.4.50.0070.03911.96
5.4.40.0040.04011.95
5.4.30.0030.03711.95
5.4.20.0040.03511.95
5.4.10.0100.03511.95
5.4.00.0040.03911.44
5.3.290.0050.03812.80
5.3.280.0050.03812.71
5.3.270.0040.03912.72
5.3.260.0080.03612.72
5.3.250.0030.03912.72
5.3.240.0100.03812.72
5.3.230.0060.03712.71
5.3.220.0040.03712.68
5.3.210.0070.03612.68
5.3.200.0080.03312.68
5.3.190.0060.04012.68
5.3.180.0050.03612.68
5.3.170.0070.03412.66
5.3.160.0050.03612.67
5.3.150.0030.03812.67
5.3.140.0050.03612.66
5.3.130.0060.04612.66
5.3.120.0070.03612.66
5.3.110.0060.03712.66
5.3.100.0060.03612.12
5.3.90.0050.03712.08
5.3.80.0050.03712.08
5.3.70.0040.03912.07
5.3.60.0060.03512.06
5.3.50.0050.03612.00
5.3.40.0040.03712.00
5.3.30.0040.03611.96
5.3.20.0090.03511.73
5.3.10.0100.03511.70
5.3.00.0030.03811.69
5.2.170.0060.0299.19
5.2.160.0040.0289.19
5.2.150.0080.0309.19
5.2.140.0040.0319.19
5.2.130.0040.0299.14
5.2.120.0040.0289.14
5.2.110.0050.0289.16
5.2.100.0070.0259.15
5.2.90.0030.0309.15
5.2.80.0020.0349.14
5.2.70.0040.0309.14
5.2.60.0050.0289.10
5.2.50.0060.0349.07
5.2.40.0050.0289.05
5.2.30.0020.0329.02
5.2.20.0050.0279.01
5.2.10.0050.0318.92
5.2.00.0050.0278.77
5.1.60.0070.0208.06
5.1.50.0030.0248.06
5.1.40.0010.0268.04
5.1.30.0090.0208.39
5.1.20.0030.0278.41
5.1.10.0050.0248.14
5.1.00.0040.0258.14
5.0.50.0030.0206.61
5.0.40.0040.0186.48
5.0.30.0050.0296.29
5.0.20.0040.0186.26
5.0.10.0030.0196.24
5.0.00.0050.0286.23
4.4.90.0020.0164.78
4.4.80.0050.0144.76
4.4.70.0020.0164.76
4.4.60.0050.0144.75
4.4.50.0020.0154.77
4.4.40.0010.0264.71
4.4.30.0030.0144.76
4.4.20.0030.0194.84
4.4.10.0020.0154.85
4.4.00.0030.0254.76
4.3.110.0050.0134.67
4.3.100.0020.0154.66
4.3.90.0030.0134.63
4.3.80.0010.0264.59
4.3.70.0010.0154.63
4.3.60.0040.0214.63
4.3.50.0030.0154.63
4.3.40.0040.0284.54
4.3.30.0020.0153.28
4.3.20.0040.0223.26
4.3.10.0030.0143.22
4.3.00.0300.01716.02

preferences:
41.9 ms | 401 KiB | 5 Q