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'; } }

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.0140.00018.68
8.3.50.0070.01019.78
8.3.40.0140.00018.73
8.3.30.0110.00419.07
8.3.20.0070.00020.16
8.3.10.0040.00423.53
8.3.00.0080.00019.51
8.2.180.0090.00916.88
8.2.170.0070.00722.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00721.00
8.2.110.0090.00020.51
8.2.100.0110.00017.99
8.2.90.0050.00319.21
8.2.80.0050.00317.97
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0060.00320.00
8.2.30.0030.00618.14
8.2.20.0080.00017.93
8.2.10.0030.00518.04
8.2.00.0040.00417.88
8.1.280.0060.00825.92
8.1.270.0040.00423.88
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.86
8.1.230.0040.00819.15
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0070.00318.63
8.1.160.0040.00422.02
8.1.150.0040.00419.01
8.1.140.0000.00717.61
8.1.130.0030.00317.89
8.1.120.0030.00317.63
8.1.110.0030.00517.59
8.1.100.0000.00817.63
8.1.90.0030.00517.58
8.1.80.0040.00417.59
8.1.70.0030.00517.48
8.1.60.0040.00417.73
8.1.50.0090.00017.67
8.1.40.0080.00017.69
8.1.30.0030.00617.72
8.1.20.0040.00417.84
8.1.10.0050.00217.56
8.1.00.0100.00017.50
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0000.00718.50
8.0.270.0050.00317.26
8.0.260.0000.00617.30
8.0.250.0070.00017.08
8.0.240.0000.00717.11
8.0.230.0030.00317.04
8.0.220.0040.00417.07
8.0.210.0070.00017.05
8.0.200.0030.00317.02
8.0.190.0030.00317.06
8.0.180.0040.00416.94
8.0.170.0060.00316.91
8.0.160.0070.00016.89
8.0.150.0080.00016.96
8.0.140.0070.00017.03
8.0.130.0030.00313.50
8.0.120.0030.00617.07
8.0.110.0040.00417.13
8.0.100.0070.00016.91
8.0.90.0070.00017.08
8.0.80.0040.01117.07
8.0.70.0070.00016.91
8.0.60.0050.00216.86
8.0.50.0000.00717.18
8.0.30.0150.00717.13
8.0.20.0150.00517.46
8.0.10.0000.00717.20
8.0.00.0120.01116.94
7.4.330.0000.00615.13
7.4.320.0030.00316.77
7.4.300.0000.00616.66
7.4.290.0030.00316.90
7.4.280.0070.00016.88
7.4.270.0000.00816.78
7.4.260.0070.00016.83
7.4.250.0030.00616.85
7.4.240.0060.00216.83
7.4.230.0030.00316.70
7.4.220.0170.00016.72
7.4.210.0170.00316.97
7.4.200.0040.00416.84
7.4.160.0040.01116.46
7.4.150.0150.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01116.71
7.4.120.0090.00816.79
7.4.110.0160.00016.76
7.4.100.0030.01416.63
7.4.90.0060.01016.59
7.4.80.0030.01719.39
7.4.70.0000.01716.52
7.4.60.0120.00416.71
7.4.50.0040.00016.47
7.4.40.0030.01216.68
7.4.30.0120.00316.66
7.4.00.0100.00715.27
7.3.330.0040.00213.23
7.3.320.0060.00013.25
7.3.310.0040.00416.40
7.3.300.0030.00316.42
7.3.290.0070.00716.36
7.3.280.0100.00416.41
7.3.270.0040.01417.40
7.3.260.0160.00616.61
7.3.250.0130.00316.56
7.3.240.0090.00916.52
7.3.230.0160.00316.80
7.3.210.0110.00616.53
7.3.200.0070.01119.39
7.3.190.0130.00316.76
7.3.180.0040.01516.50
7.3.170.0060.00916.77
7.3.160.0080.00816.65
7.3.00.0130.00016.71
7.2.330.0090.00916.73
7.2.320.0070.01116.96
7.2.310.0030.01516.86
7.2.300.0190.00316.72
7.2.290.0070.01117.01
7.2.130.0060.00916.79
7.2.120.0100.00016.75
7.2.110.0060.00616.89
7.2.100.0080.00616.87
7.2.90.0000.01317.19
7.2.80.0070.00716.99
7.2.70.0000.01217.04
7.2.60.0070.01017.10
7.2.50.0040.01117.15
7.2.40.0080.00817.06
7.2.30.0000.01016.89
7.2.20.0040.01117.13
7.2.10.0080.00416.90
7.2.00.0070.00618.17
7.1.250.0040.00416.04
7.1.240.0030.01316.11
7.1.230.0040.01215.63
7.1.220.0030.00815.80
7.1.210.0070.00715.72
7.1.200.0020.00815.71
7.1.190.0100.00315.88
7.1.180.0030.01016.02
7.1.170.0040.00416.07
7.1.160.0040.00815.91
7.1.150.0090.00316.11
7.1.140.0030.01016.07
7.1.130.0000.00816.07
7.1.120.0030.00715.82
7.1.110.0110.00415.74
7.1.100.0070.00617.26
7.1.90.0060.00316.05
7.1.80.0060.01016.13
7.1.70.0060.00916.76
7.1.60.0050.01317.75
7.1.50.0080.01216.22
7.1.40.0030.00915.92
7.1.30.0100.00315.88
7.1.20.0070.00615.82
7.1.10.0070.00715.89
7.1.00.0050.03719.18
7.0.330.0110.00615.38
7.0.320.0110.00415.45
7.0.310.0060.00515.68
7.0.300.0070.00715.42
7.0.290.0000.00915.31
7.0.280.0070.01015.26
7.0.270.0040.00815.66
7.0.260.0100.00315.57
7.0.250.0110.00015.72
7.0.240.0040.01115.66
7.0.230.0060.01215.14
7.0.220.0080.00015.56
7.0.210.0030.01315.62
7.0.200.0060.00416.26
7.0.190.0090.00615.59
7.0.180.0030.01015.49
7.0.170.0070.00815.67
7.0.160.0100.00315.73
7.0.150.0100.00315.57
7.0.140.0030.04118.79
7.0.130.0120.00015.59
7.0.120.0040.00815.27
7.0.110.0030.00715.43
7.0.100.0080.00815.38
7.0.90.0030.01215.41
7.0.80.0050.00315.51
7.0.70.0070.00715.56
7.0.60.0030.04017.75
7.0.50.0040.04616.75
7.0.40.0050.03716.93
7.0.30.0150.04516.81
7.0.20.0150.02316.71
7.0.10.0080.04616.81
7.0.00.0050.04516.83
5.6.380.0080.00414.49
5.6.370.0090.00614.64
5.6.360.0030.00714.65
5.6.350.0060.00514.03
5.6.340.0070.00714.71
5.6.330.0030.01014.64
5.6.320.0080.00814.73
5.6.310.0060.01014.50
5.6.300.0030.00614.46
5.6.290.0000.01114.26
5.6.280.0060.03717.81
5.6.270.0000.01114.39
5.6.260.0090.00314.34
5.6.250.0060.00614.37
5.6.240.0040.00814.21
5.6.230.0150.00314.36
5.6.220.0030.00914.67
5.6.210.0090.04217.53
5.6.200.0090.03116.33
5.6.190.0020.03117.47
5.6.180.0100.02717.60
5.6.170.0150.02717.39
5.6.160.0110.02217.35
5.6.150.0070.02316.32
5.6.140.0070.03316.33
5.6.130.0150.02516.30
5.6.120.0050.04617.85
5.6.110.0070.02817.70
5.6.100.0050.04217.70
5.6.90.0100.04217.68
5.6.80.0130.04017.40
5.6.70.0090.00314.29
5.6.60.0090.00414.38
5.6.50.0110.00314.16
5.6.40.0090.00614.28
5.6.30.0030.00714.26
5.6.20.0040.01114.22
5.6.10.0000.01014.36
5.6.00.0070.00314.37
5.5.380.0060.00311.15
5.5.370.0000.00711.07
5.5.360.0050.00511.06
5.5.350.0100.03615.72
5.5.340.0060.02014.49
5.5.330.0050.04415.59
5.5.320.0090.03915.71
5.5.310.0120.04515.70
5.5.300.0020.04314.53
5.5.290.0070.03614.54
5.5.280.0020.03015.94
5.5.270.0080.03315.91
5.5.260.0130.03616.02
5.5.250.0090.04015.85
5.5.240.0120.04315.66
5.5.230.0060.00311.06
5.5.220.0000.00811.07
5.5.210.0000.00711.06
5.5.200.0000.01011.20
5.5.190.0060.00011.16
5.5.180.0070.00011.06
5.5.170.0030.00911.06
5.5.160.0030.00311.06
5.5.150.0040.00411.06
5.5.140.0000.01111.06
5.5.130.0040.00411.06
5.5.120.0040.00811.06
5.5.110.0000.00811.10
5.5.100.0030.00611.18
5.5.90.0040.00411.15
5.5.80.0000.00511.14
5.5.70.0000.00811.06
5.5.60.0000.00911.16
5.5.50.0060.00011.06
5.5.40.0000.01011.13
5.5.30.0050.00311.16
5.5.20.0080.00311.18
5.5.10.0060.00011.06
5.5.00.0080.00011.08
5.4.450.0270.02415.31
5.4.440.0160.02615.16
5.4.430.0460.01315.26
5.4.420.0220.02015.23
5.4.410.0460.01515.04
5.4.400.0650.02215.07
5.4.390.0820.01815.07
5.4.380.0190.02814.90
5.4.370.0260.02914.87
5.4.360.0180.03314.93
5.4.350.0220.03514.84
5.4.340.0270.02914.76
5.4.330.0070.00311.06
5.4.320.0030.02411.76
5.4.310.0020.02411.77
5.4.300.0060.02111.76
5.4.290.0060.02111.76
5.4.280.0070.01911.71
5.4.270.0040.02111.71
5.4.260.0100.01711.71
5.4.250.0050.01911.71
5.4.240.0050.02111.71
5.4.230.0050.02111.70
5.4.220.0020.02311.70
5.4.210.0030.02111.70
5.4.200.0030.02411.70
5.4.190.0060.01811.78
5.4.180.0060.02011.70
5.4.170.0080.02211.71
5.4.160.0070.01911.70
5.4.150.0050.02011.70
5.4.140.0040.02211.54
5.4.130.0040.02011.54
5.4.120.0060.02111.52
5.4.110.0050.02111.52
5.4.100.0040.02111.52
5.4.90.0050.02211.51
5.4.80.0030.02211.51
5.4.70.0040.02111.51
5.4.60.0020.02011.51
5.4.50.0050.02011.52
5.4.40.0060.02011.51
5.4.30.0040.02011.51
5.4.20.0050.02211.51
5.4.10.0050.01911.51
5.4.00.0040.02111.25
5.3.290.0040.02411.93
5.3.280.0030.02311.89
5.3.270.0080.01911.89
5.3.260.0080.02211.89
5.3.250.0070.01911.89
5.3.240.0050.02111.89
5.3.230.0070.01911.88
5.3.220.0040.02111.87
5.3.210.0060.02211.87
5.3.200.0030.02211.87
5.3.190.0020.02211.87
5.3.180.0060.01911.87
5.3.170.0030.02111.87
5.3.160.0020.03111.87
5.3.150.0060.02411.87
5.3.140.0020.02211.86
5.3.130.0040.02911.86
5.3.120.0070.02811.86
5.3.110.0080.02311.86
5.3.100.0060.01811.59
5.3.90.0030.02011.57
5.3.80.0040.02011.57
5.3.70.0020.02311.57
5.3.60.0050.02111.56
5.3.50.0070.01811.53
5.3.40.0040.02011.53
5.3.30.0050.01911.51
5.3.20.0050.02011.40
5.3.10.0060.01811.38
5.3.00.0050.02511.38
5.2.170.0040.01710.13
5.2.160.0020.01810.13
5.2.150.0030.01910.13
5.2.140.0060.01510.13
5.2.130.0060.01410.10
5.2.120.0030.01710.11
5.2.110.0030.01710.11
5.2.100.0020.02410.11
5.2.90.0050.01610.11
5.2.80.0040.01510.10
5.2.70.0070.01410.11
5.2.60.0050.01510.08
5.2.50.0010.02010.06
5.2.40.0030.01810.06
5.2.30.0030.01810.04
5.2.20.0040.01610.04
5.2.10.0050.0149.99
5.2.00.0030.0189.92
5.1.60.0020.0149.56
5.1.50.0040.0149.56
5.1.40.0030.0159.55
5.1.30.0040.0169.73
5.1.20.0040.0159.74
5.1.10.0030.0169.60
5.1.00.0050.0139.60
5.0.50.0020.0128.84
5.0.40.0020.0128.77
5.0.30.0030.0178.68
5.0.20.0030.0148.66
5.0.10.0050.0158.65
5.0.00.0060.0228.65
4.4.90.0050.0127.92
4.4.80.0020.0127.91
4.4.70.0040.0127.91
4.4.60.0040.0117.91
4.4.50.0020.0107.91
4.4.40.0050.0167.88
4.4.30.0030.0157.91
4.4.20.0030.0127.95
4.4.10.0040.0177.96
4.4.00.0020.0177.91
4.3.110.0030.0147.87
4.3.100.0030.0097.86
4.3.90.0000.0117.85
4.3.80.0020.0147.82
4.3.70.0030.0127.85
4.3.60.0020.0147.84
4.3.50.0030.0177.85
4.3.40.0040.0137.80
4.3.30.0030.0097.17
4.3.20.0010.0147.16
4.3.10.0030.0087.14
4.3.00.0010.02013.54

preferences:
51.55 ms | 400 KiB | 5 Q