3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "11@1 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("/(?=.*[\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.0070.01116.61
8.3.50.0110.01022.20
8.3.40.0120.00318.88
8.3.30.0150.00618.97
8.3.20.0040.00420.30
8.3.10.0040.00421.79
8.3.00.0080.00019.38
8.2.180.0090.00616.75
8.2.170.0110.00422.96
8.2.160.0110.00419.18
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0070.00022.37
8.2.110.0100.00020.52
8.2.100.0110.00018.03
8.2.90.0000.00819.18
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0090.00317.68
8.2.50.0090.00018.07
8.2.40.0030.00619.94
8.2.30.0050.00218.14
8.2.20.0030.00618.02
8.2.10.0040.00418.10
8.2.00.0040.00417.90
8.1.280.0070.00725.92
8.1.270.0030.00622.31
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.77
8.1.230.0120.00022.76
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00518.76
8.1.160.0000.00722.13
8.1.150.0020.00518.95
8.1.140.0000.00717.59
8.1.130.0050.00317.64
8.1.120.0000.00717.54
8.1.110.0000.00717.55
8.1.100.0000.00817.57
8.1.90.0000.01117.53
8.1.80.0000.00817.64
8.1.70.0000.00717.65
8.1.60.0040.00417.80
8.1.50.0000.00817.63
8.1.40.0040.00417.75
8.1.30.0000.00917.73
8.1.20.0030.00617.74
8.1.10.0030.00617.74
8.1.00.0050.00317.57
8.0.300.0070.00018.77
8.0.290.0020.00517.13
8.0.280.0040.00418.50
8.0.270.0040.00417.31
8.0.260.0040.00416.98
8.0.250.0030.00317.13
8.0.240.0070.00017.19
8.0.230.0050.00317.16
8.0.220.0040.00417.16
8.0.210.0000.00717.13
8.0.200.0030.00317.23
8.0.190.0000.01017.16
8.0.180.0040.00417.19
8.0.170.0000.00817.11
8.0.160.0040.00417.05
8.0.150.0000.00717.10
8.0.140.0040.00416.97
8.0.130.0000.00613.54
8.0.120.0030.00517.00
8.0.110.0040.00417.03
8.0.100.0040.00416.92
8.0.90.0000.00717.14
8.0.80.0100.00717.14
8.0.70.0000.00716.97
8.0.60.0040.00417.12
8.0.50.0040.00417.14
8.0.30.0150.00917.21
8.0.20.0130.00517.40
8.0.10.0040.00416.96
8.0.00.0060.01217.10
7.4.330.0020.00215.02
7.4.320.0000.00616.73
7.4.300.0060.00016.85
7.4.290.0030.00316.73
7.4.280.0040.00416.86
7.4.270.0000.00716.85
7.4.260.0030.00316.80
7.4.250.0020.00516.82
7.4.240.0040.00416.78
7.4.230.0070.00016.89
7.4.220.0030.01316.75
7.4.210.0100.01016.71
7.4.200.0000.00716.62
7.4.160.0130.00316.61
7.4.150.0110.00817.40
7.4.140.0130.01017.86
7.4.130.0120.00816.70
7.4.120.0140.00316.71
7.4.110.0060.01216.59
7.4.100.0170.00016.64
7.4.90.0140.00316.74
7.4.80.0110.00619.39
7.4.70.0040.01216.78
7.4.60.0030.01316.78
7.4.50.0000.00516.77
7.4.40.0060.00916.52
7.4.30.0130.00316.55
7.4.00.0070.01115.17
7.3.330.0000.00513.42
7.3.320.0050.00013.30
7.3.310.0000.00716.44
7.3.300.0040.00416.41
7.3.290.0080.00716.51
7.3.280.0110.00516.48
7.3.270.0070.01117.40
7.3.260.0000.01716.67
7.3.250.0110.00816.48
7.3.240.0150.00716.41
7.3.230.0040.01216.73
7.3.210.0090.00916.48
7.3.200.0180.00019.39
7.3.190.0070.01116.79
7.3.180.0140.00316.44
7.3.170.0080.00816.81
7.3.160.0070.01116.72
7.3.120.0030.01314.81
7.3.110.0060.01215.00
7.3.100.0090.00914.99
7.3.90.0040.01115.30
7.3.80.0040.01415.11
7.3.70.0000.01615.00
7.3.60.0030.01215.10
7.3.50.0030.01014.91
7.3.40.0110.00014.92
7.3.30.0040.00415.03
7.3.20.0070.00316.85
7.3.10.0030.01016.78
7.3.00.0100.00316.89
7.2.330.0040.01416.91
7.2.320.0090.00916.80
7.2.310.0130.01016.79
7.2.300.0130.00316.82
7.2.290.0090.00916.77
7.2.250.0080.01115.24
7.2.240.0070.01115.16
7.2.230.0000.01415.30
7.2.220.0100.00715.25
7.2.210.0070.01015.34
7.2.200.0070.00315.08
7.2.190.0040.01215.41
7.2.180.0070.01015.22
7.2.170.0110.00015.23
7.2.160.0000.01015.18
7.2.150.0000.01417.05
7.2.140.0060.00917.20
7.2.130.0060.00317.14
7.2.120.0030.01017.13
7.2.110.0000.00916.77
7.2.100.0080.00316.99
7.2.90.0100.00717.09
7.2.80.0030.00616.93
7.2.70.0000.01616.87
7.2.60.0030.01017.17
7.2.50.0040.01117.25
7.2.40.0040.01117.02
7.2.30.0060.01017.19
7.2.20.0130.00017.24
7.2.10.0110.00417.08
7.2.00.0070.01017.18
7.1.330.0070.01115.95
7.1.320.0090.00615.97
7.1.310.0060.01015.53
7.1.300.0040.00716.11
7.1.290.0030.00515.97
7.1.280.0090.00315.68
7.1.270.0050.00516.04
7.1.260.0000.01615.72
7.1.250.0000.01015.65
7.1.240.0030.01316.09
7.1.230.0040.00916.08
7.1.220.0040.00815.86
7.1.210.0070.00715.98
7.1.200.0030.00915.75
7.1.190.0080.00415.66
7.1.180.0080.00415.66
7.1.170.0070.00715.91
7.1.160.0100.00016.04
7.1.150.0070.01016.04
7.1.140.0050.00815.88
7.1.130.0120.00315.93
7.1.120.0040.01116.02
7.1.110.0040.01215.60
7.1.100.0030.01016.01
7.1.90.0040.01116.14
7.1.80.0060.00615.70
7.1.70.0040.00916.83
7.1.60.0080.01317.50
7.1.50.0070.01216.64
7.1.40.0000.01315.98
7.1.30.0070.00715.95
7.1.20.0030.00616.00
7.1.10.0060.00916.10
7.1.00.0070.03819.13
7.0.330.0060.00315.62
7.0.320.0030.00715.62
7.0.310.0160.00015.43
7.0.300.0070.00415.63
7.0.290.0030.01315.77
7.0.280.0070.00715.50
7.0.270.0000.00815.53
7.0.260.0110.00315.34
7.0.250.0060.00315.64
7.0.240.0090.00315.57
7.0.230.0030.00715.77
7.0.220.0030.00615.54
7.0.210.0070.00415.71
7.0.200.0080.00316.36
7.0.190.0000.01315.57
7.0.180.0040.00815.68
7.0.170.0090.00315.73
7.0.160.0070.01015.71
7.0.150.0040.00815.80
7.0.140.0050.03818.66
7.0.130.0030.00515.70
7.0.120.0000.01215.55
7.0.110.0090.00615.75
7.0.100.0030.00615.73
7.0.90.0140.00015.55
7.0.80.0000.01115.60
7.0.70.0060.00615.46
7.0.60.0070.04717.79
7.0.50.0050.02716.57
7.0.40.0100.03816.80
7.0.30.0130.03117.06
7.0.20.0210.02416.91
7.0.10.0020.03416.78
7.0.00.0120.03916.70
5.6.400.0090.00614.63
5.6.390.0040.01114.19
5.6.380.0100.00714.36
5.6.370.0110.00414.14
5.6.360.0040.00713.91
5.6.350.0030.01514.45
5.6.340.0060.01214.45
5.6.330.0030.00914.71
5.6.320.0060.00314.36
5.6.310.0120.00314.07
5.6.300.0030.00914.42
5.6.290.0040.00413.99
5.6.280.0050.03917.75
5.6.270.0100.00314.48
5.6.260.0070.01014.53
5.6.250.0070.00414.60
5.6.240.0080.00414.27
5.6.230.0080.00314.50
5.6.220.0030.00714.17
5.6.210.0050.02717.53
5.6.200.0050.03016.10
5.6.190.0070.02717.44
5.6.180.0190.02317.44
5.6.170.0580.02317.56
5.6.160.0070.02517.34
5.6.150.0070.04216.28
5.6.140.0070.04116.05
5.6.130.0060.04516.38
5.6.120.0100.04217.75
5.6.110.0120.04517.74
5.6.100.0080.04517.62
5.6.90.0080.04217.66
5.6.80.0020.03517.41
5.6.70.0060.00914.30
5.6.60.0100.00314.27
5.6.50.0000.01114.11
5.6.40.0080.00814.07
5.6.30.0080.00414.13
5.6.20.0100.00314.56
5.6.10.0110.00314.35
5.6.00.0070.00714.29
5.5.380.0090.00014.03
5.5.370.0030.01014.19
5.5.360.0030.01314.13
5.5.350.0100.04517.44
5.5.340.0050.03716.22
5.5.330.0050.04717.47
5.5.320.0230.03917.36
5.5.310.0160.02017.34
5.5.300.0050.02716.03
5.5.290.0070.02316.06
5.5.280.0110.02417.55
5.5.270.0060.03217.40
5.5.260.0040.02617.72
5.5.250.0050.02517.50
5.5.240.0190.03317.04
5.5.230.0030.00714.18
5.5.220.0040.00814.34
5.5.210.0000.00814.33
5.5.200.0030.01013.97
5.5.190.0000.01014.10
5.5.180.0060.00614.38
5.5.170.0040.00714.29
5.5.160.0080.00514.09
5.5.150.0030.00614.34
5.5.140.0090.00614.36
5.5.130.0060.00614.24
5.5.120.0060.00614.11
5.5.110.0080.00414.36
5.5.100.0040.01113.85
5.5.90.0000.01413.85
5.5.80.0040.00814.20
5.5.70.0000.01214.42
5.5.60.0060.00614.33
5.5.50.0060.00314.23
5.5.40.0100.00314.39
5.5.30.0070.00714.16
5.5.20.0000.01114.02
5.5.10.0040.00414.18
5.5.00.0060.00614.41
5.4.450.0350.03215.23
5.4.440.0370.03715.01
5.4.430.0410.02715.17
5.4.420.0360.00315.18
5.4.410.0330.00315.19
5.4.400.0350.00315.09
5.4.390.0350.00315.16
5.4.380.0330.00514.93
5.4.370.0330.00215.12
5.4.360.0400.00015.14
5.4.350.0370.00515.01
5.4.340.0070.02011.45
5.4.330.0030.00311.02
5.4.320.0080.01911.69
5.4.310.0030.02311.60
5.4.300.0040.02111.71
5.4.290.0080.01811.73
5.4.280.0040.02311.59
5.4.270.0060.02411.83
5.4.260.0040.02611.74
5.4.250.0050.02211.60
5.4.240.0030.02511.61
5.4.230.0050.02411.64
5.4.220.0070.02011.76
5.4.210.0060.02111.66
5.4.200.0070.02111.54
5.4.190.0050.02211.64
5.4.180.0040.02211.73
5.4.170.0060.02111.59
5.4.160.0020.02911.72
5.4.150.0040.02611.72
5.4.140.0060.02611.38
5.4.130.0060.02011.51
5.4.120.0040.02211.49
5.4.110.0040.02211.48
5.4.100.0060.02311.39
5.4.90.0090.01911.45
5.4.80.0070.02211.55
5.4.70.0050.02211.45
5.4.60.0080.02011.55
5.4.50.0020.02111.43
5.4.40.0030.02111.44
5.4.30.0040.02111.39
5.4.20.0040.02211.47
5.4.10.0050.02311.37
5.4.00.0060.02011.27
5.3.290.0070.04012.80
5.3.280.0040.04012.71
5.3.270.0060.03912.72
5.3.260.0050.04012.72
5.3.250.0040.04212.72
5.3.240.0040.04012.72
5.3.230.0070.03812.71
5.3.220.0060.04412.68
5.3.210.0030.04612.68
5.3.200.0060.04212.68
5.3.190.0050.03912.68
5.3.180.0040.03912.68
5.3.170.0060.03812.67
5.3.160.0090.04212.67
5.3.150.0050.04712.67
5.3.140.0040.04012.66
5.3.130.0090.03912.66
5.3.120.0080.04012.65
5.3.110.0110.03712.66
5.3.100.0070.03712.11
5.3.90.0110.03012.09
5.3.80.0050.03812.07
5.3.70.0050.03812.08
5.3.60.0090.03412.06
5.3.50.0080.03612.00
5.3.40.0060.04012.00
5.3.30.0040.03811.95
5.3.20.0050.03911.74
5.3.10.0060.05011.70
5.3.00.0070.04011.69
5.2.170.0040.0329.19
5.2.160.0050.0299.20
5.2.150.0070.0319.19
5.2.140.0050.0339.18
5.2.130.0010.0339.15
5.2.120.0080.0309.14
5.2.110.0050.0309.15
5.2.100.0040.0339.15
5.2.90.0060.0289.15
5.2.80.0050.0299.15
5.2.70.0030.0319.14
5.2.60.0040.0309.11
5.2.50.0030.0319.07
5.2.40.0060.0349.05
5.2.30.0040.0319.02
5.2.20.0040.0329.02
5.2.10.0040.0298.94
5.2.00.0040.0318.80
5.1.60.0030.0268.08
5.1.50.0010.0288.07
5.1.40.0050.0238.06
5.1.30.0050.0258.40
5.1.20.0040.0308.43
5.1.10.0020.0278.16
5.1.00.0070.0368.16
5.0.50.0030.0206.64
5.0.40.0040.0236.51
5.0.30.0040.0326.32
5.0.20.0050.0176.28
5.0.10.0040.0216.27
5.0.00.0030.0306.25
4.4.90.0020.0164.78
4.4.80.0050.0164.75
4.4.70.0010.0174.76
4.4.60.0060.0164.75
4.4.50.0050.0144.77
4.4.40.0020.0274.71
4.4.30.0040.0134.76
4.4.20.0020.0184.84
4.4.10.0050.0164.85
4.4.00.0050.0234.75
4.3.110.0030.0164.67
4.3.100.0040.0194.66
4.3.90.0050.0164.63
4.3.80.0030.0264.59
4.3.70.0050.0124.63
4.3.60.0030.0184.63
4.3.50.0030.0154.62
4.3.40.0030.0244.54
4.3.30.0040.0243.30
4.3.20.0020.0163.28
4.3.10.0010.0173.23
4.3.00.0070.0307.48

preferences:
48.59 ms | 401 KiB | 5 Q