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 x $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.0120.00617.13
8.3.50.0120.00721.24
8.3.40.0110.00719.05
8.3.30.0120.00318.96
8.3.20.0030.00520.39
8.3.10.0040.00423.66
8.3.00.0080.00019.51
8.2.180.0070.01117.00
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.21
8.2.110.0060.00322.36
8.2.100.0040.00717.77
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0110.00018.05
8.2.50.0030.00718.07
8.2.40.0030.00519.94
8.2.30.0030.00618.01
8.2.20.0040.00417.87
8.2.10.0080.00018.18
8.2.00.0030.00518.00
8.1.280.0070.00725.92
8.1.270.0080.00022.27
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00323.97
8.1.230.0060.00619.28
8.1.220.0030.00617.91
8.1.210.0080.00018.77
8.1.200.0000.00817.48
8.1.190.0050.00317.60
8.1.180.0000.00818.10
8.1.170.0050.00318.89
8.1.160.0000.00722.08
8.1.150.0020.00518.95
8.1.140.0040.00417.55
8.1.130.0030.00317.76
8.1.120.0020.00517.69
8.1.110.0000.00717.64
8.1.100.0000.00717.55
8.1.90.0000.01017.58
8.1.80.0030.00517.66
8.1.70.0030.00317.52
8.1.60.0100.00417.66
8.1.50.0050.00317.71
8.1.40.0080.00017.63
8.1.30.0000.00917.85
8.1.20.0000.00817.85
8.1.10.0030.00517.58
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00417.13
8.0.280.0000.00718.54
8.0.270.0070.00017.31
8.0.260.0060.00017.23
8.0.250.0050.00217.16
8.0.240.0000.00717.14
8.0.230.0070.00017.08
8.0.220.0030.00317.01
8.0.210.0000.00717.00
8.0.200.0000.00617.09
8.0.190.0090.00317.17
8.0.180.0020.00517.12
8.0.170.0000.00817.13
8.0.160.0040.00417.13
8.0.150.0040.00416.96
8.0.140.0070.00017.07
8.0.130.0030.00313.52
8.0.120.0000.00817.04
8.0.110.0020.00517.05
8.0.100.0080.00016.95
8.0.90.0000.00716.96
8.0.80.0070.01317.09
8.0.70.0000.00817.16
8.0.60.0040.00417.08
8.0.50.0080.00017.04
8.0.30.0050.01517.23
8.0.20.0070.01517.42
8.0.10.0040.00417.01
8.0.00.0150.00516.85
7.4.330.0050.00015.02
7.4.320.0030.00316.70
7.4.300.0060.00016.89
7.4.290.0030.00316.82
7.4.280.0080.00016.79
7.4.270.0030.00316.74
7.4.260.0070.00016.75
7.4.250.0000.00716.85
7.4.240.0070.00016.78
7.4.230.0000.00716.89
7.4.220.0130.01016.82
7.4.210.0030.01916.77
7.4.200.0040.00416.67
7.4.160.0050.01016.58
7.4.150.0090.00917.40
7.4.140.0100.01117.86
7.4.130.0090.01116.77
7.4.120.0120.00716.70
7.4.110.0110.01016.70
7.4.100.0080.00816.72
7.4.90.0110.00616.70
7.4.80.0160.00619.39
7.4.70.0070.01116.63
7.4.60.0160.00716.74
7.4.50.0000.00416.63
7.4.40.0110.00816.73
7.4.30.0100.00716.52
7.4.00.0070.00715.25
7.3.330.0000.00613.34
7.3.320.0060.00013.34
7.3.310.0000.00716.58
7.3.300.0070.00016.47
7.3.290.0090.00716.50
7.3.280.0090.00816.49
7.3.270.0030.01517.40
7.3.260.0060.01216.66
7.3.250.0090.01016.47
7.3.240.0090.00916.49
7.3.230.0140.00416.54
7.3.210.0100.01016.63
7.3.200.0110.00619.39
7.3.190.0070.01016.54
7.3.180.0110.00516.77
7.3.170.0070.01016.54
7.3.160.0130.00416.75
7.2.330.0110.00716.97
7.2.320.0070.01016.94
7.2.310.0110.00616.79
7.2.300.0140.00616.91
7.2.290.0090.00916.79
7.1.70.0070.00317.39
7.1.60.0060.01919.11
7.1.50.0120.01216.81
7.1.00.0030.07722.30
7.0.200.0030.00316.91
7.0.140.0030.07722.15
7.0.110.0030.08321.84
7.0.100.0030.07021.69
7.0.90.0030.08021.63
7.0.80.0000.07721.66
7.0.70.0000.08021.69
7.0.60.0070.07321.40
7.0.50.0070.07722.20
7.0.40.0030.08720.16
7.0.30.0070.08020.22
7.0.20.0100.04720.21
7.0.10.0070.07720.10
7.0.00.0130.07020.10
5.6.280.0070.07020.80
5.6.260.0070.06720.54
5.6.250.0030.08720.68
5.6.240.0030.08720.51
5.6.230.0000.04320.64
5.6.220.0030.07020.49
5.6.210.0030.08320.51
5.6.200.0000.08721.03
5.6.190.0070.07721.13
5.6.180.0030.07721.22
5.6.170.0100.06721.14
5.6.160.0070.08020.88
5.6.150.0070.06020.98
5.6.140.0070.07721.21
5.6.130.0000.08721.06
5.6.120.0070.07020.87
5.6.110.0000.08720.88
5.6.100.0070.08020.88
5.6.90.0030.07021.06
5.6.80.0000.08020.26
5.6.70.0070.08020.44
5.6.60.0030.06320.37
5.6.50.0070.07320.27
5.6.40.0030.07720.29
5.6.30.0030.07020.50
5.6.20.0030.07720.38
5.6.10.0030.07020.56
5.6.00.0100.07320.41
5.5.380.0100.07020.41
5.5.370.0030.04720.20
5.5.360.0070.07720.20
5.5.350.0070.08320.47
5.5.340.0100.08020.89
5.5.330.0030.08020.94
5.5.320.0030.08020.76
5.5.310.0070.05020.85
5.5.300.0030.05020.64
5.5.290.0070.08020.74
5.5.280.0100.06020.79
5.5.270.0030.08320.61
5.5.260.0000.07020.93
5.5.250.0070.08020.55
5.5.240.0000.08020.37
5.5.230.0070.07320.31
5.5.220.0030.08320.18
5.5.210.0000.08320.31
5.5.200.0000.07720.25
5.5.190.0030.08720.14
5.5.180.0070.05320.34
5.5.160.0030.07320.34
5.5.150.0030.07720.18
5.5.140.0030.04720.19
5.5.130.0070.04720.27
5.5.120.0030.07320.18
5.5.110.0000.08319.98
5.5.100.0100.07720.09
5.5.90.0030.07319.99
5.5.80.0070.03319.92
5.5.70.0100.07320.02
5.5.60.0070.07719.98
5.5.50.0030.07720.20
5.5.40.0000.07320.07
5.5.30.0030.08020.13
5.5.20.0030.05720.14
5.5.10.0070.06320.11
5.5.00.0030.07320.09
5.4.450.0000.08319.49
5.4.440.0100.06719.25
5.4.430.0000.04019.32
5.4.420.0030.07719.44
5.4.410.0100.06719.15
5.4.400.0100.06018.95
5.4.390.0070.06019.18
5.4.380.0070.07719.16
5.4.370.0000.04719.12
5.4.360.0030.04319.14
5.4.350.0100.06719.12
5.4.340.0000.07719.00
5.4.320.0170.06018.93
5.4.310.0030.08018.93
5.4.300.0070.07318.93
5.4.290.0030.08019.00
5.4.280.0030.07719.07
5.4.270.0000.06319.00
5.4.260.0030.07019.27
5.4.250.0100.06719.07
5.4.240.0030.06719.14
5.4.230.0100.06719.02
5.4.220.0030.08019.16
5.4.210.0000.08019.02
5.4.200.0070.07719.28
5.4.190.0100.06319.23
5.4.180.0030.07319.16
5.4.170.0070.06319.09
5.4.160.0070.06019.14
5.4.150.0030.07318.98
5.4.140.0000.07016.45
5.4.130.0030.05716.34
5.4.120.0070.06716.56
5.4.110.0030.07316.43
5.4.100.0000.06316.29
5.4.90.0070.05716.43
5.4.80.0070.06716.17
5.4.70.0030.07716.23
5.4.60.0100.03716.38
5.4.50.0030.07016.10
5.4.40.0000.06316.21
5.4.30.0070.06716.45
5.4.20.0030.04016.34
5.4.10.0030.07016.37
5.4.00.0000.07015.76
5.3.290.0030.08014.46
5.3.280.0070.07014.62
5.3.270.0070.06714.47
5.3.260.0070.07014.66
5.3.250.0000.04714.48
5.3.240.0030.04314.60
5.3.230.0070.07314.66
5.3.220.0070.06314.66
5.3.210.0030.07714.50
5.3.200.0030.07314.44
5.3.190.0000.05314.57
5.3.180.0070.07314.39
5.3.170.0000.04314.58
5.3.160.0030.07014.50
5.3.150.0070.06714.44
5.3.140.0030.07314.42
5.3.130.0030.07314.38
5.3.120.0030.07714.64
5.3.110.0000.08014.45
5.3.100.0030.07713.90
5.3.90.0000.07313.87
5.3.80.0000.07313.81
5.3.70.0000.07714.07
5.3.60.0030.07313.84
5.3.50.0030.07313.84
5.3.40.0070.07013.89
5.3.30.0030.07013.98
5.3.20.0030.06713.57
5.3.10.0100.06313.56
5.3.00.0000.07713.52
5.2.170.0030.06313.00
5.2.160.0030.03313.00
5.2.150.0030.06013.00
5.2.140.0030.06313.00
5.2.130.0000.06013.00
5.2.120.0030.05313.00
5.2.110.0000.06313.00
5.2.100.0000.05313.00
5.2.90.0030.06013.00
5.2.80.0030.05713.00
5.2.70.0070.05713.00
5.2.60.0030.04713.00
5.2.50.0030.06313.00
5.2.40.0000.04713.00
5.2.30.0000.04713.00
5.2.20.0030.06013.00
5.2.10.0030.05713.00
5.2.00.0000.06013.00
5.1.60.0070.04713.00
5.1.50.0000.05713.00
5.1.40.0030.05313.00
5.1.30.0070.05313.00
5.1.20.0000.06313.00
5.1.10.0030.05313.00
5.1.00.0000.05313.00
5.0.50.0030.03713.00
5.0.40.0030.04013.00
5.0.30.0030.04313.00
5.0.20.0000.04313.00
5.0.10.0030.04313.00
5.0.00.0030.05713.00
4.4.90.0000.02713.00
4.4.80.0000.02713.00
4.4.70.0030.03713.00
4.4.60.0000.03313.00
4.4.50.0000.03713.00
4.4.40.0000.04713.00
4.4.30.0000.03313.00
4.4.20.0000.03713.00
4.4.10.0070.03013.00
4.4.00.0030.03013.00
4.3.110.0000.03713.00
4.3.100.0070.01313.00
4.3.90.0030.02013.00
4.3.80.0000.02713.00
4.3.70.0000.03313.00
4.3.60.0000.03713.00
4.3.50.0000.02313.00
4.3.40.0030.04713.00
4.3.30.0000.03313.00
4.3.20.0000.03013.00
4.3.10.0070.03013.00
4.3.00.0030.03013.00

preferences:
46.69 ms | 401 KiB | 5 Q