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, utf8_decode($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.0110.00418.89
8.3.50.0110.00923.01
8.3.40.0150.00018.92
8.3.30.0120.00319.14
8.3.20.0070.00020.30
8.3.10.0030.00623.51
8.3.00.0060.00319.50
8.2.180.0170.00316.50
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00020.90
8.2.110.0090.00021.02
8.2.100.0000.01217.97
8.2.90.0040.00418.03
8.2.80.0030.00617.97
8.2.70.0090.00317.75
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00019.91
8.2.30.0000.00818.13
8.2.20.0050.00318.00
8.2.10.0040.00418.20
8.2.00.0070.00017.96
8.1.280.0160.00325.92
8.1.270.0080.00023.97
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.82
8.1.230.0040.00720.66
8.1.220.0030.00517.89
8.1.210.0000.00819.02
8.1.200.0030.00617.60
8.1.190.0060.00317.36
8.1.180.0000.00818.10
8.1.170.0070.00418.66
8.1.160.0040.00422.04
8.1.150.0070.00018.88
8.1.140.0000.00817.66
8.1.130.0030.00317.95
8.1.120.0000.00717.64
8.1.110.0000.00817.49
8.1.100.0040.00417.65
8.1.90.0000.00717.47
8.1.80.0000.00717.51
8.1.70.0000.00717.55
8.1.60.0060.00317.77
8.1.50.0000.00817.72
8.1.40.0000.00817.64
8.1.30.0000.00817.73
8.1.20.0030.00517.79
8.1.10.0000.00817.54
8.1.00.0000.01017.49
8.0.300.0060.00320.09
8.0.290.0040.00416.88
8.0.280.0030.00318.47
8.0.270.0070.00017.27
8.0.260.0000.00617.32
8.0.250.0000.00717.07
8.0.240.0030.00317.09
8.0.230.0000.00717.03
8.0.220.0070.00016.96
8.0.210.0050.00217.01
8.0.200.0060.00017.04
8.0.190.0060.00317.10
8.0.180.0000.00716.96
8.0.170.0040.00417.04
8.0.160.0000.00716.97
8.0.150.0080.00016.86
8.0.140.0080.00016.89
8.0.130.0030.00313.46
8.0.120.0060.00317.08
8.0.110.0000.00716.94
8.0.100.0070.00016.96
8.0.90.0080.00017.03
8.0.80.0040.01117.12
8.0.70.0000.00717.16
8.0.60.0000.00716.89
8.0.50.0000.00717.21
8.0.30.0110.00917.11
8.0.20.0080.01117.51
8.0.10.0000.00717.16
8.0.00.0070.01016.98
7.4.330.0000.00515.18
7.4.320.0000.00616.69
7.4.300.0060.00016.78
7.4.290.0040.00416.83
7.4.280.0070.00016.79
7.4.270.0070.00016.87
7.4.260.0000.00716.83
7.4.250.0000.00816.75
7.4.240.0030.00516.72
7.4.230.0050.00216.97
7.4.220.0100.00716.81
7.4.210.0100.01016.68
7.4.200.0040.00416.95
7.4.160.0120.01216.98
7.4.150.0100.01317.40
7.4.140.0170.01417.86
7.4.130.0110.00616.59
7.4.120.0090.01116.73
7.4.110.0060.01016.45
7.4.100.0170.00416.88
7.4.90.0110.00516.46
7.4.80.0080.01119.39
7.4.70.0100.00716.73
7.4.60.0100.00716.86
7.4.50.0030.00616.95
7.4.40.0140.00916.69
7.4.30.0060.00916.71
7.4.00.0070.01014.78
7.3.330.0030.00313.16
7.3.320.0000.00613.25
7.3.310.0030.00316.26
7.3.300.0060.00016.32
7.3.290.0090.00616.39
7.3.280.0090.00916.43
7.3.270.0150.00517.40
7.3.260.0030.01316.47
7.3.250.0080.00816.59
7.3.240.0130.01716.46
7.3.230.0090.00616.58
7.3.210.0140.00416.80
7.3.200.0040.01719.39
7.3.190.0060.01216.74
7.3.180.0110.00616.82
7.3.170.0070.01016.82
7.3.160.0120.00316.66
7.2.330.0140.00316.77
7.2.320.0080.00916.91
7.2.310.0180.00616.79
7.2.300.0130.01016.81
7.2.290.0070.01416.66
7.2.60.0040.00817.24
7.2.00.0030.01019.40
7.1.200.0030.00615.70
7.1.100.0040.00718.28
7.1.70.0040.00817.52
7.1.60.0120.01219.40
7.1.50.0130.01317.13
7.1.00.0070.07022.43
7.0.200.0850.00615.10
7.0.140.0030.07321.95
7.0.60.0100.03319.96
7.0.50.0070.03717.87
7.0.40.0030.09320.14
7.0.30.0530.07320.05
7.0.20.0370.07320.01
7.0.10.0030.04320.11
7.0.00.0070.07720.13
5.6.280.0130.06320.90
5.6.210.0070.03720.64
5.6.200.0100.08018.20
5.6.190.0000.05020.32
5.6.180.0370.06720.46
5.6.170.0300.08320.50
5.6.160.0100.07720.48
5.6.150.0030.03718.21
5.6.140.0100.08018.15
5.6.130.0030.05318.11
5.6.120.0100.03321.00
5.6.110.0030.04321.11
5.6.100.0100.07720.98
5.6.90.0130.07721.07
5.6.80.0170.07720.52
5.5.350.0100.09020.50
5.5.340.0200.04018.02
5.5.330.0030.04720.40
5.5.320.0070.08020.30
5.5.310.0400.07020.12
5.5.300.0070.05717.92
5.5.290.0030.05717.95
5.5.280.0130.06020.95
5.5.270.0070.03720.86
5.5.260.0130.07320.88
5.5.250.0170.07720.68
5.5.240.0100.04020.25
5.4.450.0070.03019.41
5.4.440.0230.03019.54
5.4.430.0630.04719.36
5.4.420.0570.04019.58
5.4.410.0900.03319.28
5.4.400.0900.03319.22
5.4.390.1230.02318.89
5.4.380.0530.07318.64
5.4.370.0300.05718.61
5.4.360.0230.05718.53
5.4.350.0570.06318.65
5.4.340.0500.06718.68
5.4.320.0050.03812.46
5.4.310.0040.04112.45
5.4.300.0120.03812.45
5.4.290.0070.04112.45
5.4.280.0060.03512.35
5.4.270.0070.03512.35
5.4.260.0070.03612.35
5.4.250.0080.03812.35
5.4.240.0040.04212.35
5.4.230.0090.03512.34
5.4.220.0090.03412.34
5.4.210.0080.03412.34
5.4.200.0080.03712.34
5.4.190.0040.03912.34
5.4.180.0120.03812.34
5.4.170.0100.04912.35
5.4.160.0050.04112.35
5.4.150.0080.03312.34
5.4.140.0070.03712.03
5.4.130.0060.03812.02
5.4.120.0060.03511.97
5.4.110.0060.03611.97
5.4.100.0040.03711.97
5.4.90.0070.03611.97
5.4.80.0030.04011.96
5.4.70.0080.03911.96
5.4.60.0070.03411.96
5.4.50.0100.04311.96
5.4.40.0050.04211.95
5.4.30.0070.03811.95
5.4.20.0070.04411.95
5.4.10.0060.03711.95
5.4.00.0090.03511.44
5.3.290.0070.03912.80
5.3.280.0060.03812.71
5.3.270.0070.03812.72
5.3.260.0060.03912.72
5.3.250.0060.03712.72
5.3.240.0110.03512.72
5.3.230.0080.04712.71
5.3.220.0070.04012.68
5.3.210.0040.04112.68
5.3.200.0050.03912.68
5.3.190.0120.04312.68
5.3.180.0060.04012.68
5.3.170.0070.03612.67
5.3.160.0080.03912.67
5.3.150.0070.03712.67
5.3.140.0080.03712.66
5.3.130.0080.03712.66
5.3.120.0120.04112.65
5.3.110.0070.05412.66
5.3.100.0060.03612.12
5.3.90.0060.03612.08
5.3.80.0070.03812.07
5.3.70.0050.03812.07
5.3.60.0040.04012.06
5.3.50.0060.03612.00
5.3.40.0050.03612.00
5.3.30.0070.03411.95
5.3.20.0090.04211.73
5.3.10.0040.03611.70
5.3.00.0070.03611.69
5.2.170.0040.0339.19
5.2.160.0050.0329.19
5.2.150.0070.0299.19
5.2.140.0040.0319.19
5.2.130.0040.0299.14
5.2.120.0020.0309.14
5.2.110.0050.0289.15
5.2.100.0020.0359.15
5.2.90.0020.0329.15
5.2.80.0060.0289.15
5.2.70.0030.0329.14
5.2.60.0060.0299.10
5.2.50.0030.0339.07
5.2.40.0070.0319.05
5.2.30.0040.0319.03
5.2.20.0040.0299.02
5.2.10.0060.0278.92
5.2.00.0090.0368.77
5.1.60.0080.0308.07
5.1.50.0060.0308.06
5.1.40.0060.0238.04
5.1.30.0050.0268.39
5.1.20.0010.0308.41
5.1.10.0040.0298.14
5.1.00.0030.0278.14
5.0.50.0070.0176.61
5.0.40.0020.0216.48
5.0.30.0040.0316.29
5.0.20.0030.0196.26
5.0.10.0050.0196.24
5.0.00.0030.0316.23
4.4.90.0020.0164.78
4.4.80.0030.0164.76
4.4.70.0040.0154.75
4.4.60.0010.0184.76
4.4.50.0030.0154.77
4.4.40.0040.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0020.0184.85
4.4.00.0050.0254.76
4.3.110.0050.0204.67
4.3.100.0040.0144.67
4.3.90.0040.0204.64
4.3.80.0020.0304.59
4.3.70.0020.0174.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0040.0143.28
4.3.20.0020.0193.26
4.3.10.0020.0193.21
4.3.00.0070.01716.02

preferences:
50.57 ms | 401 KiB | 5 Q