3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "A1Q1@pa"; $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("/(?=.*[0-9].*[0-9])/", $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.0110.00716.88
8.3.50.0160.00322.12
8.3.40.0110.01119.02
8.3.30.0110.00419.09
8.3.20.0040.00420.34
8.3.10.0040.00423.67
8.3.00.0110.00819.38
8.2.180.0120.00616.63
8.2.170.0060.01222.96
8.2.160.0070.00720.44
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0110.00422.17
8.2.110.0030.00622.25
8.2.100.0090.00317.75
8.2.90.0040.00419.21
8.2.80.0060.00317.97
8.2.70.0080.00017.60
8.2.60.0060.00318.03
8.2.50.0110.00118.07
8.2.40.0060.00319.95
8.2.30.0050.00318.13
8.2.20.0040.00417.81
8.2.10.0000.00718.23
8.2.00.0040.00417.92
8.1.280.0100.01025.92
8.1.270.0000.01021.93
8.1.260.0060.01226.35
8.1.250.0070.00028.09
8.1.240.0050.00523.79
8.1.230.0040.00819.54
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0060.00317.38
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0040.00421.98
8.1.150.0000.00718.95
8.1.140.0040.00417.70
8.1.130.0000.00717.76
8.1.120.0040.00417.58
8.1.110.0050.00317.64
8.1.100.0070.00017.66
8.1.90.0050.00317.70
8.1.80.0000.00717.52
8.1.70.0030.00317.53
8.1.60.0080.00417.77
8.1.50.0030.00617.71
8.1.40.0050.00517.62
8.1.30.0000.00917.74
8.1.20.0040.00417.83
8.1.10.0040.00417.76
8.1.00.0080.00017.65
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0040.00418.50
8.0.270.0030.00317.32
8.0.260.0070.00017.32
8.0.250.0030.00317.21
8.0.240.0030.00317.23
8.0.230.0040.00417.21
8.0.220.0030.00317.20
8.0.210.0050.00217.13
8.0.200.0000.00617.18
8.0.190.0070.00317.06
8.0.180.0080.00317.04
8.0.170.0040.00417.25
8.0.160.0040.00417.10
8.0.150.0040.00416.99
8.0.140.0000.00717.01
8.0.130.0030.00313.49
8.0.120.0000.00817.11
8.0.110.0030.00517.14
8.0.100.0070.00017.00
8.0.90.0040.00416.96
8.0.80.0100.00617.11
8.0.70.0000.00717.25
8.0.60.0000.00717.10
8.0.50.0040.00417.19
8.0.30.0130.00717.05
8.0.20.0120.00817.46
8.0.10.0120.00016.96
8.0.00.0070.01216.84
7.4.330.0000.00515.02
7.4.320.0040.00416.64
7.4.300.0060.00016.90
7.4.290.0070.00016.73
7.4.280.0050.00216.84
7.4.270.0000.00716.61
7.4.260.0000.00716.71
7.4.250.0050.00216.71
7.4.240.0020.00616.75
7.4.230.0070.00016.62
7.4.220.0030.01416.77
7.4.210.0070.01116.81
7.4.200.0000.00716.55
7.4.160.0130.00316.77
7.4.150.0030.01417.40
7.4.140.0150.01117.86
7.4.130.0120.00516.61
7.4.120.0130.00716.66
7.4.110.0090.00916.54
7.4.100.0090.00916.66
7.4.90.0060.01516.70
7.4.80.0090.00919.39
7.4.70.0060.01216.66
7.4.60.0070.01116.63
7.4.50.0050.00016.62
7.4.40.0070.01016.55
7.4.30.0030.01316.65
7.4.10.0100.01015.30
7.4.00.0110.00515.21
7.3.330.0050.00013.24
7.3.320.0030.00413.25
7.3.310.0000.00716.57
7.3.300.0000.00716.49
7.3.290.0140.00016.54
7.3.280.0100.00816.58
7.3.270.0070.01017.40
7.3.260.0110.00716.48
7.3.250.0080.01116.72
7.3.240.0150.00616.68
7.3.230.0060.01316.45
7.3.210.0070.01016.47
7.3.200.0120.00619.39
7.3.190.0070.01416.41
7.3.180.0060.01116.68
7.3.170.0060.00916.42
7.3.160.0060.01016.58
7.3.130.0170.00015.30
7.3.120.0030.01515.30
7.3.110.0070.01315.30
7.3.100.0100.00315.30
7.3.90.0040.01115.30
7.3.80.0070.00715.30
7.3.70.0040.00815.30
7.3.60.0000.01415.30
7.3.50.0070.00715.30
7.3.40.0090.00015.30
7.3.30.0030.00915.30
7.3.20.0090.00616.80
7.3.10.0140.00016.84
7.3.00.0040.00716.52
7.2.330.0140.00416.88
7.2.320.0130.00516.62
7.2.310.0110.00616.95
7.2.300.0090.00916.87
7.2.290.0190.00617.00
7.2.260.0030.01315.30
7.2.250.0070.01015.30
7.2.240.0000.01315.32
7.2.230.0030.01215.30
7.2.220.0100.00615.30
7.2.210.0000.01315.30
7.2.200.0100.00315.37
7.2.190.0110.00715.30
7.2.180.0070.00715.30
7.2.170.0100.00315.30
7.2.160.0060.00615.40
7.2.150.0080.00316.83
7.2.140.0060.00616.85
7.2.130.0030.00917.20
7.2.120.0000.01317.06
7.2.110.0100.00717.13
7.2.100.0030.01117.24
7.2.90.0040.01217.19
7.2.80.0120.00317.25
7.2.70.0100.00717.17
7.2.60.0000.01517.08
7.2.50.0000.01517.13
7.2.40.0040.01117.13
7.2.30.0080.00817.21
7.2.20.0040.01516.87
7.2.10.0030.01216.93
7.2.00.0080.00817.20
7.1.330.0030.00916.10
7.1.320.0120.00616.01
7.1.310.0000.01415.88
7.1.300.0060.00615.83
7.1.290.0030.01316.00
7.1.280.0030.00915.98
7.1.270.0070.00715.84
7.1.260.0000.01615.86
7.1.250.0030.01016.00
7.1.240.0070.00316.02
7.1.230.0070.01015.93
7.1.220.0070.00716.07
7.1.210.0000.01215.86
7.1.200.0070.00715.86
7.1.190.0060.00915.94
7.1.180.0070.01016.00
7.1.170.0070.00715.94
7.1.160.0040.00915.93
7.1.150.0030.01115.80
7.1.140.0070.01015.74
7.1.130.0070.01015.92
7.1.120.0040.01215.84
7.1.110.0070.00715.83
7.1.100.0060.00616.13
7.1.90.0080.00416.00
7.1.80.0000.01115.98
7.1.70.0030.00916.75
7.1.60.0050.01517.48
7.1.50.0100.00816.35
7.1.40.0060.00615.97
7.1.30.0040.00715.96
7.1.20.0030.00915.80
7.1.10.0050.00515.91
7.1.00.0030.04319.23
7.0.330.0030.01315.55
7.0.320.0030.00615.66
7.0.310.0090.00615.82
7.0.300.0110.00015.71
7.0.290.0050.00515.71
7.0.280.0060.00615.48
7.0.270.0070.00715.60
7.0.260.0030.01015.65
7.0.250.0060.00615.70
7.0.240.0030.01315.75
7.0.230.0060.00615.68
7.0.220.0030.00915.52
7.0.210.0060.01015.43
7.0.200.0080.00316.18
7.0.190.0060.00915.49
7.0.180.0090.00615.68
7.0.170.0000.01315.69
7.0.160.0030.01315.81
7.0.150.0040.01115.54
7.0.140.0060.04018.90
7.0.130.0070.00715.72
7.0.120.0120.00615.62
7.0.110.0050.02917.79
7.0.100.0050.01917.65
7.0.90.0050.03717.79
7.0.80.0030.02517.78
7.0.70.0020.03317.67
7.0.60.0070.03717.91
7.0.50.0110.04117.74
7.0.40.0070.02417.50
7.0.30.0020.02617.50
7.0.20.0120.03017.50
7.0.10.0100.03717.55
7.0.00.0070.02017.50
5.6.400.0000.01415.30
5.6.390.0030.01015.30
5.6.380.0000.01415.30
5.6.370.0000.00815.30
5.6.360.0060.00615.30
5.6.350.0000.01015.30
5.6.340.0040.00715.30
5.6.330.0100.00315.30
5.6.320.0140.00015.30
5.6.310.0060.00615.30
5.6.300.0090.00915.30
5.6.290.0070.00715.30
5.6.280.0080.03818.19
5.6.270.0090.00915.30
5.6.260.0070.02217.99
5.6.250.0030.02317.99
5.6.240.0070.02317.92
5.6.230.0050.04317.92
5.6.220.0070.04717.99
5.6.210.0070.02018.01
5.6.200.0050.03318.07
5.6.190.0120.03518.00
5.6.180.0050.03217.93
5.6.170.0080.02017.96
5.6.160.0050.04817.93
5.6.150.0080.03917.92
5.6.140.0050.04117.96
5.6.130.0030.04617.96
5.6.120.0040.03217.92
5.6.110.0070.04017.93
5.6.100.0030.04217.96
5.6.90.0070.03217.98
5.6.80.0050.03917.65
5.6.70.0070.02217.76
5.6.60.0130.03617.67
5.6.50.0020.04317.66
5.6.40.0020.03717.62
5.6.30.0050.02517.56
5.6.20.0080.04117.56
5.6.10.0020.02417.62
5.6.00.0050.02317.75
5.5.380.0010.02816.46
5.5.370.0030.02816.44
5.5.360.0020.03616.44
5.5.350.0020.03016.38
5.5.340.0000.04216.73
5.5.330.0080.03816.66
5.5.320.0050.04316.66
5.5.310.0030.02116.71
5.5.300.0040.02716.64
5.5.290.0070.02316.70
5.5.280.0030.02316.71
5.5.270.0060.02616.71
5.5.260.0100.04316.65
5.5.250.0060.04016.49
5.5.240.0090.03316.27
5.5.230.0020.03416.27
5.5.220.0070.01816.40
5.5.210.0030.03816.42
5.5.200.0030.03816.32
5.5.190.0040.03616.45
5.5.180.0050.04416.27
5.5.170.0100.00615.30
5.5.160.0030.02316.33
5.5.150.0050.03116.34
5.5.140.0100.02816.25
5.5.130.0050.02416.38
5.5.120.0040.04316.25
5.5.110.0050.01816.38
5.5.100.0070.02016.22
5.5.90.0030.02516.20
5.5.80.0110.01516.40
5.5.70.0120.03216.28
5.5.60.0030.02216.35
5.5.50.0080.02016.32
5.5.40.0030.02216.36
5.5.30.0040.02016.28
5.5.20.0070.03316.26
5.5.10.0030.02216.32
5.5.00.0070.01916.34
5.4.450.0100.03317.28
5.4.440.0080.01717.33
5.4.430.0080.03417.37
5.4.420.0000.02317.37
5.4.410.0080.03117.21
5.4.400.0060.02817.16
5.4.390.0050.03417.21
5.4.380.0070.03017.11
5.4.370.0030.02917.27
5.4.360.0090.01317.14
5.4.350.0060.01817.17
5.4.340.0080.02717.19
5.4.330.0000.00615.30
5.4.320.0010.02417.24
5.4.310.0010.02617.23
5.4.300.0030.03817.18
5.4.290.0020.03217.24
5.4.280.0050.03017.21
5.4.270.0090.03517.21
5.4.260.0030.02717.12
5.4.250.0050.02017.28
5.4.240.0070.02217.27
5.4.230.0040.01717.21
5.4.220.0030.02517.15
5.4.210.0050.02517.22
5.4.200.0030.03117.28
5.4.190.0070.03217.19
5.4.180.0030.02617.11
5.4.170.0030.03417.19
5.4.160.0050.02017.15
5.4.150.0050.04017.10
5.4.140.0060.02515.86
5.4.130.0070.03415.77
5.4.120.0020.02215.78
5.4.110.0040.03415.74
5.4.100.0040.02515.86
5.4.90.0070.01815.93
5.4.80.0080.03715.92
5.4.70.0050.02315.76
5.4.60.0050.03115.78
5.4.50.0050.03015.82
5.4.40.0050.02015.76
5.4.30.0050.02015.83
5.4.20.0040.01915.80
5.4.10.0050.02015.72
5.4.00.0050.02215.63
5.3.290.0030.03714.51
5.3.280.0100.03714.50
5.3.270.0030.05314.47
5.3.260.0000.04014.62
5.3.250.0100.05714.45
5.3.240.0070.05714.61
5.3.230.0070.06714.42
5.3.220.0100.04014.56
5.3.210.0030.03714.63
5.3.200.0000.04314.66
5.3.190.0030.07014.58
5.3.180.0100.07014.45
5.3.170.0100.02714.44
5.3.160.0130.04314.50
5.3.150.0070.04714.46
5.3.140.0130.06314.61
5.3.130.0070.07014.56
5.3.120.0070.05314.64
5.3.110.0030.07314.49
5.3.100.0000.05014.04
5.3.90.0000.05714.05
5.3.80.0000.04013.89
5.3.70.0030.06313.80
5.3.60.0100.04014.06
5.3.50.0030.03714.04
5.3.40.0000.04313.86
5.3.30.0070.03014.00
5.3.20.0000.04713.70
5.3.10.0070.04013.69
5.3.00.0000.04013.56
5.2.170.0000.03311.93
5.2.160.0000.05311.93
5.2.150.0070.06011.93
5.2.140.0000.03011.93
5.2.130.0100.05311.93
5.2.120.0070.02311.93
5.2.110.0030.04011.93
5.2.100.0030.03011.93
5.2.90.0070.06011.93
5.2.80.0030.05711.93
5.2.70.0000.03011.93
5.2.60.0070.02311.93
5.2.50.0000.03311.93
5.2.40.0070.03011.93
5.2.30.0000.03011.93
5.2.20.0030.05011.93
5.2.10.0030.02711.93
5.2.00.0000.06711.93
5.1.60.0100.02311.93
5.1.50.0000.02711.93
5.1.40.0000.04711.93
5.1.30.0100.03311.93
5.1.20.0100.05311.93
5.1.10.0000.04311.93
5.1.00.0070.05711.93
5.0.50.0000.02011.93
5.0.40.0030.04311.93
5.0.30.0000.03711.93
5.0.20.0000.02711.93
5.0.10.0030.01711.93
5.0.00.0030.03011.93
4.4.90.0030.03311.93
4.4.80.0070.01311.93
4.4.70.0000.02311.93
4.4.60.0070.01011.93
4.4.50.0000.02311.93
4.4.40.0000.02311.93
4.4.30.0030.01711.93
4.4.20.0070.00711.93
4.4.10.0000.02311.93
4.4.00.0030.05711.93
4.3.110.0000.01711.93
4.3.100.0100.01711.93
4.3.90.0000.02011.93
4.3.80.0030.02311.93
4.3.70.0030.01311.93
4.3.60.0070.02311.93
4.3.50.0000.02011.93
4.3.40.0100.03011.93
4.3.30.0070.03011.93
4.3.20.0030.01711.93
4.3.10.0030.01311.93
4.3.00.0000.02711.93

preferences:
46.66 ms | 401 KiB | 5 Q