3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/^[a-zA-Z ,.\p{Han}]+$/u"; $tests = array( 'Mr Smith', 'Mr. Smith', 'Mr. 123 Smith', '姓名', 'tom!!!', 'Mary@', 'May#', 'john$', 'ee%', 'e^', 'EE&', 'EE(' ); 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.47
8.3.50.0100.01023.06
8.3.40.0090.00619.01
8.3.30.0070.00719.13
8.3.20.0040.00420.16
8.3.10.0050.00323.66
8.3.00.0030.00519.27
8.2.180.0160.00317.00
8.2.170.0080.00822.96
8.2.160.0080.00620.53
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.98
8.2.110.0070.00322.37
8.2.100.0070.00418.03
8.2.90.0030.00519.25
8.2.80.0050.00317.97
8.2.70.0000.00918.00
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0080.00019.91
8.2.30.0050.00318.01
8.2.20.0030.00618.05
8.2.10.0000.00818.20
8.2.00.0070.00017.87
8.1.280.0200.00025.92
8.1.270.0090.00023.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.06
8.1.230.0110.00018.92
8.1.220.0040.00417.77
8.1.210.0030.00618.77
8.1.200.0000.00917.48
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0040.00718.79
8.1.160.0000.00821.94
8.1.150.0040.00418.88
8.1.140.0040.00417.64
8.1.130.0070.00017.89
8.1.120.0030.00317.46
8.1.110.0050.00317.58
8.1.100.0050.00217.50
8.1.90.0020.00517.50
8.1.80.0000.00717.55
8.1.70.0040.00417.51
8.1.60.0030.00617.68
8.1.50.0000.00817.64
8.1.40.0000.00817.68
8.1.30.0030.00517.72
8.1.20.0040.00417.77
8.1.10.0040.00417.55
8.1.00.0060.00317.45
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0070.00017.24
8.0.260.0000.00617.37
8.0.250.0030.00317.05
8.0.240.0030.00317.22
8.0.230.0000.00717.21
8.0.220.0040.00417.13
8.0.210.0000.00817.02
8.0.200.0070.00017.21
8.0.190.0040.00417.07
8.0.180.0080.00017.07
8.0.170.0000.00717.16
8.0.160.0000.00717.18
8.0.150.0070.00317.15
8.0.140.0000.00817.01
8.0.130.0000.00813.61
8.0.120.0040.00417.01
8.0.110.0040.00417.13
8.0.100.0040.00417.11
8.0.90.0040.00417.20
8.0.80.0060.01317.09
8.0.70.0040.00417.19
8.0.60.0080.00017.17
8.0.50.0040.00417.10
8.0.30.0110.00817.42
8.0.20.0100.01117.51
8.0.10.0080.00017.23
8.0.00.0050.01216.99
7.4.330.0030.00315.05
7.4.320.0000.00616.84
7.4.300.0000.00616.66
7.4.290.0030.00316.88
7.4.280.0070.00016.89
7.4.270.0040.00416.76
7.4.260.0070.00016.86
7.4.250.0040.00416.78
7.4.240.0030.00316.86
7.4.230.0000.00816.77
7.4.220.0090.00916.72
7.4.210.0090.00616.67
7.4.200.0050.00316.95
7.4.160.0100.01016.81
7.4.150.0090.00917.40
7.4.140.0220.01017.86
7.4.130.0120.00616.75
7.4.120.0110.00716.78
7.4.110.0150.00316.76
7.4.100.0090.00916.54
7.4.90.0030.01416.51
7.4.80.0030.01419.39
7.4.70.0110.00716.53
7.4.60.0070.01016.77
7.4.50.0000.00416.66
7.4.40.0090.00916.64
7.4.30.0030.01316.63
7.4.00.0060.01115.24
7.3.330.0020.00513.25
7.3.320.0000.00513.26
7.3.310.0040.00416.42
7.3.300.0050.00216.43
7.3.290.0070.00716.43
7.3.280.0100.00616.46
7.3.270.0120.00617.40
7.3.260.0140.01016.79
7.3.250.0110.00816.82
7.3.240.0100.00616.47
7.3.230.0000.01616.42
7.3.210.0140.00316.60
7.3.200.0100.01019.39
7.3.190.0090.01316.46
7.3.180.0100.01316.79
7.3.170.0150.00016.68
7.3.160.0100.00616.51
7.3.120.0040.01414.96
7.3.110.0070.01115.04
7.3.100.0100.00315.02
7.3.90.0120.00614.78
7.3.80.0070.00314.95
7.3.70.0000.01215.11
7.3.60.0130.00315.05
7.3.50.0030.00615.13
7.3.40.0070.01014.88
7.3.30.0070.00714.90
7.3.20.0030.01016.80
7.3.10.0040.01216.84
7.3.00.0030.01116.89
7.2.330.0120.00616.73
7.2.320.0070.01016.66
7.2.310.0090.00916.77
7.2.300.0060.00916.95
7.2.290.0100.01016.86
7.2.250.0060.01315.39
7.2.240.0100.00715.24
7.2.230.0070.00715.37
7.2.220.0030.01515.41
7.2.210.0030.00815.15
7.2.200.0030.00915.22
7.2.190.0040.00815.19
7.2.180.0040.00715.02
7.2.170.0060.00915.25
7.2.130.0070.00717.09
7.2.120.0120.00316.99
7.2.110.0000.01117.21
7.2.100.0040.01117.06
7.2.90.0070.00417.26
7.2.80.0130.00317.16
7.2.70.0070.01017.13
7.2.60.0130.00317.05
7.2.50.0030.00717.06
7.2.40.0120.00617.27
7.2.30.0040.01017.23
7.2.20.0040.00717.13
7.2.10.0070.01117.22
7.2.00.0030.01218.36
7.1.330.0070.00716.09
7.1.320.0000.01115.87
7.1.310.0090.00616.17
7.1.300.0040.01115.91
7.1.290.0000.01415.70
7.1.280.0060.00615.63
7.1.270.0030.00915.75
7.1.260.0000.01115.89
7.1.250.0060.01015.95
7.1.100.0040.00717.89
7.1.70.0030.01217.33
7.1.60.0070.00317.38
7.1.50.0060.00617.13
7.1.00.0030.07322.59
7.0.200.0060.00916.75
7.0.140.0000.07321.97
7.0.60.0100.03720.07
7.0.50.0130.06717.83
7.0.40.0000.05020.05
7.0.30.0300.06720.19
7.0.20.0230.04020.01
7.0.10.0100.04020.01
7.0.00.0030.04320.10
5.6.210.0070.05320.66
5.6.200.0030.05718.05
5.6.190.0030.08020.41
5.6.180.0300.08320.77
5.6.170.0270.07720.38
5.6.160.0070.08020.50
5.6.150.0030.04718.15
5.6.140.0070.05018.07
5.6.130.0100.06718.20
5.6.120.0100.07721.10
5.6.110.0100.08321.00
5.6.100.0170.07321.12
5.6.90.0070.08721.00
5.6.80.0070.08020.51
5.5.350.0030.05720.41
5.5.340.0100.07718.02
5.5.330.0170.07020.14
5.5.320.0000.04320.29
5.5.310.0200.03720.21
5.5.300.0100.07318.02
5.5.290.0030.04018.00
5.5.280.0000.06020.79
5.5.270.0100.03320.75
5.5.260.0070.08720.98
5.5.250.0100.08020.58
5.5.240.0170.06020.24
5.4.450.0270.03019.57
5.4.440.0030.04019.43
5.4.430.0000.03719.45
5.4.420.0170.04719.40
5.4.410.0830.04319.32
5.4.400.0770.03019.13
5.4.390.0670.03719.14
5.4.380.0500.06018.79
5.4.370.0430.05018.58
5.4.360.0330.04318.66
5.4.350.0400.04718.66
5.4.340.0470.06718.72
5.4.320.0070.03512.46
5.4.310.0060.03712.45
5.4.300.0100.03212.46
5.4.290.0040.04012.45
5.4.280.0060.03412.35
5.4.270.0060.03512.35
5.4.260.0080.03612.35
5.4.250.0090.04312.35
5.4.240.0050.04812.35
5.4.230.0050.04212.34
5.4.220.0070.04612.34
5.4.210.0060.04212.34
5.4.200.0060.03812.34
5.4.190.0060.03812.34
5.4.180.0030.03712.34
5.4.170.0080.04012.35
5.4.160.0050.04212.35
5.4.150.0040.03612.34
5.4.140.0040.03812.03
5.4.130.0050.03812.01
5.4.120.0060.03411.97
5.4.110.0070.03711.97
5.4.100.0060.03911.96
5.4.90.0070.03911.97
5.4.80.0060.03811.97
5.4.70.0120.03111.96
5.4.60.0110.03311.96
5.4.50.0050.03411.96
5.4.40.0030.03611.95
5.4.30.0060.03411.95
5.4.20.0060.03511.95
5.4.10.0050.03411.95
5.4.00.0060.03611.44
5.3.290.0060.03812.80
5.3.280.0020.04112.71
5.3.270.0040.04112.72
5.3.260.0080.03512.72
5.3.250.0040.03812.72
5.3.240.0050.03712.72
5.3.230.0110.03612.71
5.3.220.0040.03812.68
5.3.210.0050.04012.68
5.3.200.0050.03712.68
5.3.190.0060.03812.67
5.3.180.0050.03812.67
5.3.170.0050.03712.66
5.3.160.0060.03612.68
5.3.150.0060.03612.68
5.3.140.0050.03612.66
5.3.130.0070.03812.66
5.3.120.0040.04012.65
5.3.110.0080.03712.66
5.3.100.0040.03912.12
5.3.90.0060.03712.09
5.3.80.0050.03812.08
5.3.70.0060.03512.07
5.3.60.0090.03812.06
5.3.50.0070.03512.00
5.3.40.0060.03612.00
5.3.30.0030.03711.96
5.3.20.0060.03511.73
5.3.10.0080.03211.70
5.3.00.0070.03411.69
5.2.170.0040.0309.19
5.2.160.0060.0279.19
5.2.150.0040.0319.19
5.2.140.0040.0319.19
5.2.130.0050.0289.14
5.2.120.0050.0289.14
5.2.110.0070.0269.15
5.2.100.0040.0289.15
5.2.90.0040.0299.15
5.2.80.0080.0279.14
5.2.70.0050.0349.15
5.2.60.0030.0319.10
5.2.50.0050.0299.06
5.2.40.0060.0329.05
5.2.30.0040.0329.03
5.2.20.0060.0269.02
5.2.10.0020.0298.92
5.2.00.0070.0278.79
5.1.60.0030.0328.07
5.1.50.0020.0268.06
5.1.40.0050.0228.04
5.1.30.0070.0288.39
5.1.20.0050.0308.41
5.1.10.0000.0298.14
5.1.00.0040.0258.14
5.0.50.0020.0226.62
5.0.40.0020.0206.48
5.0.30.0020.0346.29
5.0.20.0050.0186.26
5.0.10.0020.0216.24
5.0.00.0030.0306.23
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0010.0174.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0010.0264.71
4.4.30.0020.0154.76
4.4.20.0040.0184.84
4.4.10.0050.0134.84
4.4.00.0030.0314.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0040.0134.64
4.3.80.0010.0264.58
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0010.0163.29
4.3.20.0040.0143.26
4.3.10.0010.0183.22
4.3.00.0070.01316.02

preferences:
45.31 ms | 401 KiB | 5 Q