3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "A1Q1@1pa"; $letterStart = preg_match("/^[A-Za-z]/", $pswd); // start with a letter $specialChar= preg_match("/(?=.*[!@#&*%]+)/", $pswd); // one or more special chars in list $numberChar= preg_match("/(?=.*[\d]{2,})/", $pswd); //two or more digits x $upperChar= preg_match("/(?=.*[A-Z]\w\S{2,})/", $pswd); //two or more upper case letters $lowerChar= preg_match("/(?=.*[a-z]\w\S{2,})/", $pswd); //two or more lower case letters $pswdLength = preg_match("/(?=^.{6,20}$)/", $pswd); //length of pswd between min and max echo $letterStart . " " . $specialChar . " " . $numberChar . " " . $upperChar . " " . $lowerChar . " " . $pswdLength;

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.0000.01616.88
8.3.50.0060.00916.63
8.3.40.0100.00618.79
8.3.30.0160.00018.92
8.3.20.0000.00820.25
8.3.10.0060.00321.71
8.3.00.0000.00819.38
8.2.180.0030.01216.88
8.2.170.0140.00422.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00422.30
8.2.110.0090.00022.08
8.2.100.0080.00419.70
8.2.90.0020.00519.22
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0060.00617.93
8.2.50.0050.00518.07
8.2.40.0050.00319.97
8.2.30.0030.00618.11
8.2.20.0050.00318.03
8.2.10.0030.00518.13
8.2.00.0040.00417.92
8.1.280.0140.00425.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00923.98
8.1.230.0120.00019.14
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00617.47
8.1.180.0000.00718.10
8.1.170.0000.00818.75
8.1.160.0000.00722.13
8.1.150.0000.00719.01
8.1.140.0040.00417.53
8.1.130.0000.00717.89
8.1.120.0000.00717.53
8.1.110.0040.00417.70
8.1.100.0000.00717.65
8.1.90.0100.00017.59
8.1.80.0020.00517.64
8.1.70.0030.00317.59
8.1.60.0050.00517.80
8.1.50.0040.00417.73
8.1.40.0000.00817.73
8.1.30.0040.00417.80
8.1.20.0030.00617.83
8.1.10.0000.00717.74
8.1.00.0040.00417.56
8.0.300.0070.00018.77
8.0.290.0080.00016.72
8.0.280.0030.00318.37
8.0.270.0030.00317.19
8.0.260.0000.00817.31
8.0.250.0070.00017.18
8.0.240.0000.00717.24
8.0.230.0000.00717.13
8.0.220.0000.00817.02
8.0.210.0040.00417.09
8.0.200.0030.00317.09
8.0.190.0000.01117.05
8.0.180.0000.00717.20
8.0.170.0000.00817.15
8.0.160.0030.00317.16
8.0.150.0040.00417.07
8.0.140.0000.00717.13
8.0.130.0030.00313.57
8.0.120.0030.00517.14
8.0.110.0040.00417.05
8.0.100.0040.00417.14
8.0.90.0000.00717.00
8.0.80.0080.00817.07
8.0.70.0030.00517.01
8.0.60.0040.00417.01
8.0.50.0000.00716.92
8.0.30.0100.01417.27
8.0.20.0090.01117.52
8.0.10.0000.00816.93
8.0.00.0080.00916.88
7.4.330.0000.00515.02
7.4.320.0070.00016.80
7.4.300.0030.00316.74
7.4.290.0000.00616.64
7.4.280.0000.00816.83
7.4.270.0040.00416.86
7.4.260.0050.00316.77
7.4.250.0040.00416.83
7.4.240.0020.00516.87
7.4.230.0030.00316.79
7.4.220.0090.01016.73
7.4.210.0120.00316.71
7.4.200.0000.00716.60
7.4.160.0130.00316.74
7.4.150.0150.00617.40
7.4.140.0120.01117.86
7.4.130.0150.00916.68
7.4.120.0100.00716.69
7.4.110.0070.01016.49
7.4.100.0000.01816.52
7.4.90.0070.01016.68
7.4.80.0100.00719.39
7.4.70.0140.00316.76
7.4.60.0090.00916.71
7.4.50.0060.00316.45
7.4.40.0060.01016.62
7.4.30.0130.00316.82
7.4.00.0060.01015.22
7.3.330.0030.00313.41
7.3.320.0070.00013.42
7.3.310.0020.00516.46
7.3.300.0050.00216.46
7.3.290.0070.00816.48
7.3.280.0060.01216.50
7.3.270.0060.01317.40
7.3.260.0040.01416.71
7.3.250.0070.01416.69
7.3.240.0060.01216.48
7.3.230.0100.01016.71
7.3.210.0160.03016.67
7.3.200.0120.00619.39
7.3.190.0100.00616.52
7.3.180.0030.01416.34
7.3.170.0160.00016.45
7.3.160.0150.00616.44
7.3.120.0120.00315.11
7.3.110.0070.00815.29
7.3.100.0050.01015.17
7.3.90.0100.00714.97
7.3.80.0090.00715.28
7.3.70.0050.00715.19
7.3.60.0070.00415.12
7.3.50.0070.00715.10
7.3.40.0100.00815.15
7.3.30.0110.00315.02
7.3.20.0070.00416.74
7.3.10.0040.00916.94
7.3.00.0060.00916.73
7.2.330.0100.00616.64
7.2.320.0100.00716.75
7.2.310.0100.00616.55
7.2.300.0030.01316.83
7.2.290.0090.01316.75
7.2.250.0050.01015.26
7.2.240.0050.01015.28
7.2.230.0100.00815.31
7.2.220.0030.00715.41
7.2.210.0090.00515.19
7.2.200.0060.00515.25
7.2.190.0070.00815.22
7.2.180.0080.00915.20
7.2.170.0040.00715.31
7.2.130.0120.01217.02
7.2.120.0040.00917.16
7.2.110.0000.00916.79
7.2.100.0030.00817.11
7.2.90.0000.01217.13
7.2.80.0030.01016.97
7.2.70.0030.01017.18
7.2.60.0060.00617.07
7.2.50.0030.00917.10
7.2.40.0080.00316.84
7.2.30.0060.00617.09
7.2.20.0040.01117.21
7.2.10.0040.01117.27
7.2.00.0060.00616.91
7.1.330.0040.01115.84
7.1.320.0110.00215.93
7.1.310.0060.00816.04
7.1.300.0050.00815.91
7.1.290.0070.00515.88
7.1.280.0070.00516.02
7.1.270.0110.00115.92
7.1.260.0070.00715.98
7.1.250.0100.01015.91
7.1.240.0000.00915.86
7.1.230.0030.01015.79
7.1.220.0060.00615.95
7.1.210.0080.00815.97
7.1.200.0040.00915.95
7.1.190.0070.00216.10
7.1.180.0030.00615.82
7.1.170.0000.00916.02
7.1.160.0040.00415.97
7.1.150.0080.00415.79
7.1.140.0110.00016.07
7.1.130.0000.00815.93
7.1.120.0030.00615.63
7.1.110.0070.00715.89
7.1.100.0000.00815.78
7.1.90.0040.00715.78
7.1.80.0030.01015.81
7.1.70.0070.00516.52
7.1.60.0110.00817.47
7.1.50.0080.01216.57
7.1.40.0040.01215.91
7.1.30.0030.01215.91
7.1.20.0100.00715.76
7.1.10.0000.01515.87
7.1.00.0040.04219.17
7.0.330.0040.01215.54
7.0.320.0100.01015.75
7.0.310.0060.00615.55
7.0.300.0060.00315.44
7.0.290.0000.01115.29
7.0.280.0030.00715.27
7.0.270.0070.00415.28
7.0.260.0050.00515.52
7.0.250.0060.00615.47
7.0.240.0000.01015.41
7.0.230.0040.00715.56
7.0.220.0000.01115.43
7.0.210.0100.00715.59
7.0.200.0050.00516.23
7.0.190.0090.00015.61
7.0.180.0070.00315.72
7.0.170.0100.00315.62
7.0.160.0090.00915.36
7.0.150.0100.00315.45
7.0.140.0040.04218.75
7.0.130.0060.00615.36
7.0.120.0070.00715.36
7.0.110.0030.00615.60
7.0.100.0070.00715.36
7.0.90.0100.00315.59
7.0.80.0030.00815.35
7.0.70.0100.00715.13
7.0.60.0080.04117.64
7.0.50.0000.03116.60
7.0.40.0070.04716.68
7.0.30.0150.03416.77
7.0.20.0230.03416.59
7.0.10.0050.03816.63
7.0.00.0070.04916.81
5.6.380.0090.00614.40
5.6.370.0060.00614.20
5.6.360.0050.00514.51
5.6.350.0000.01214.33
5.6.340.0060.00614.53
5.6.330.0090.00914.32
5.6.320.0100.00714.61
5.6.310.0120.00614.52
5.6.300.0050.00514.28
5.6.290.0030.01214.30
5.6.280.0090.03417.56
5.6.270.0040.00914.29
5.6.260.0040.00813.84
5.6.250.0080.00214.49
5.6.240.0030.01014.41
5.6.230.0030.01514.19
5.6.220.0000.01114.39
5.6.210.0120.01817.38
5.6.200.0060.02916.12
5.6.190.0030.02617.22
5.6.180.0180.04417.34
5.6.170.0800.02317.27
5.6.160.0090.02917.29
5.6.150.0080.04316.00
5.6.140.0120.04016.14
5.6.130.0030.04616.16
5.6.120.0100.03317.53
5.6.110.0160.04017.53
5.6.100.0110.04517.61
5.6.90.0150.04017.56
5.6.80.0120.02017.29
5.6.70.0070.01314.25
5.6.60.0140.00314.02
5.6.50.0120.00914.07
5.6.40.0100.01014.04
5.6.30.0120.00814.33
5.6.20.0080.00813.87
5.6.10.0050.01014.23
5.6.00.0060.00914.09
5.5.380.0030.00711.00
5.5.370.0040.00711.00
5.5.360.0000.01211.09
5.5.350.0020.02415.68
5.5.340.0030.03814.45
5.5.330.0070.04115.70
5.5.320.0280.02515.76
5.5.310.0150.02815.61
5.5.300.0020.02314.48
5.5.290.0060.02214.48
5.5.280.0030.02815.94
5.5.270.0030.05215.93
5.5.260.0070.02315.99
5.5.250.0120.04215.84
5.5.240.0070.03015.54
5.5.230.0070.00011.00
5.5.220.0030.00511.00
5.5.210.0000.01011.00
5.5.200.0070.00711.13
5.5.190.0040.00911.16
5.5.180.0030.01011.00
5.5.170.0030.00711.01
5.5.160.0090.00311.00
5.5.150.0060.00311.00
5.5.140.0000.01111.00
5.5.130.0060.00311.00
5.5.120.0030.00611.00
5.5.110.0030.00911.00
5.5.100.0040.00811.05
5.5.90.0020.00511.00
5.5.80.0050.00511.00
5.5.70.0060.00911.12
5.5.60.0000.01111.00
5.5.50.0090.00311.00
5.5.40.0030.00811.00
5.5.30.0080.00311.00
5.5.20.0080.00311.00
5.5.10.0030.00711.15
5.5.00.0060.00911.00
5.4.450.0480.03515.23
5.4.440.0490.03115.29
5.4.430.0410.02815.36
5.4.420.0450.00215.28
5.4.410.0390.00315.18
5.4.400.0330.00515.01
5.4.390.0380.00215.04
5.4.380.0380.00315.04
5.4.370.0350.00514.98
5.4.360.0300.00614.99
5.4.350.0330.00515.09
5.4.340.0040.02311.49
5.4.330.0000.01211.05
5.4.320.0070.02911.77
5.4.310.0020.02411.73
5.4.300.0040.02511.73
5.4.290.0090.01911.73
5.4.280.0040.02411.68
5.4.270.0040.02311.68
5.4.260.0020.02411.68
5.4.250.0030.02411.68
5.4.240.0070.02411.68
5.4.230.0050.02211.67
5.4.220.0050.02011.67
5.4.210.0070.02611.67
5.4.200.0060.02411.69
5.4.190.0050.02411.67
5.4.180.0040.02111.67
5.4.170.0030.02311.68
5.4.160.0080.01711.67
5.4.150.0020.02311.70
5.4.140.0040.02611.52
5.4.130.0070.01911.51
5.4.120.0070.02011.49
5.4.110.0060.02111.49
5.4.100.0060.02111.48
5.4.90.0080.02111.48
5.4.80.0060.02011.52
5.4.70.0060.02111.48
5.4.60.0050.02011.48
5.4.50.0030.02511.48
5.4.40.0050.02111.48
5.4.30.0040.02111.48
5.4.20.0060.02111.48
5.4.10.0040.02111.48
5.4.00.0040.02111.22
5.3.290.0040.02511.90
5.3.280.0100.02011.86
5.3.270.0060.02111.87
5.3.260.0080.02311.86
5.3.250.0060.01911.86
5.3.240.0040.02211.86
5.3.230.0040.02311.86
5.3.220.0040.02111.84
5.3.210.0060.02311.84
5.3.200.0040.02211.84
5.3.190.0080.02311.84
5.3.180.0050.02611.84
5.3.170.0050.02311.84
5.3.160.0070.02911.84
5.3.150.0050.02311.84
5.3.140.0030.02511.83
5.3.130.0050.02111.83
5.3.120.0040.02111.83
5.3.110.0080.01911.83
5.3.100.0080.02111.56
5.3.90.0040.02111.54
5.3.80.0030.02311.54
5.3.70.0050.02211.54
5.3.60.0050.02111.54
5.3.50.0050.02011.50
5.3.40.0040.02211.50
5.3.30.0040.01911.48
5.3.20.0050.02311.37
5.3.10.0040.02111.35
5.3.00.0020.02211.35
5.2.170.0030.01910.10
5.2.160.0040.01610.10
5.2.150.0060.01510.10
5.2.140.0050.02010.09
5.2.130.0070.01710.08
5.2.120.0030.01710.07
5.2.110.0020.02610.08
5.2.100.0070.01710.08
5.2.90.0040.01710.08
5.2.80.0070.02010.08
5.2.70.0050.01610.07
5.2.60.0050.01610.05
5.2.50.0060.01610.04
5.2.40.0050.01710.03
5.2.30.0020.02010.02
5.2.20.0050.01610.01
5.2.10.0030.0169.97
5.2.00.0020.0239.90
5.1.60.0050.0159.54
5.1.50.0040.0159.54
5.1.40.0040.0149.53
5.1.30.0020.0189.71
5.1.20.0050.0149.71
5.1.10.0020.0179.58
5.1.00.0050.0149.58
5.0.50.0040.0128.82
5.0.40.0030.0118.75
5.0.30.0030.0188.66
5.0.20.0050.0098.64
5.0.10.0030.0128.63
5.0.00.0020.0178.63
4.4.90.0030.0117.89
4.4.80.0020.0117.88
4.4.70.0020.0117.88
4.4.60.0030.0097.88
4.4.50.0050.0087.89
4.4.40.0010.0167.86
4.4.30.0030.0107.88
4.4.20.0040.0097.92
4.4.10.0040.0137.93
4.4.00.0050.0127.88
4.3.110.0040.0097.83
4.3.100.0010.0117.84
4.3.90.0020.0107.82
4.3.80.0030.0147.79
4.3.70.0030.0087.82
4.3.60.0020.0107.81
4.3.50.0040.0127.81
4.3.40.0020.0177.77
4.3.30.0030.0117.15
4.3.20.0010.0117.14
4.3.10.0020.0097.12
4.3.00.0110.0089.28

preferences:
48.13 ms | 400 KiB | 5 Q