3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "A1Q21@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]{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.70.0140.00716.75
8.3.60.0180.00016.75
8.3.50.0050.01322.15
8.3.40.0000.01519.05
8.3.30.0100.00418.92
8.3.20.0080.00020.21
8.3.10.0040.00423.50
8.3.00.0060.00319.51
8.2.180.0120.00616.73
8.2.170.0070.01022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00622.05
8.2.110.0040.00422.20
8.2.100.0120.00017.97
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0070.00317.80
8.2.50.0060.00318.07
8.2.40.0030.00620.19
8.2.30.0000.00818.16
8.2.20.0060.00318.04
8.2.10.0090.00018.11
8.2.00.0000.00717.86
8.1.280.0090.00625.92
8.1.270.0030.00622.31
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00723.64
8.1.230.0110.00019.22
8.1.220.0080.00017.91
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0000.00817.60
8.1.180.0000.00718.10
8.1.170.0040.00418.70
8.1.160.0050.00222.07
8.1.150.0000.00718.94
8.1.140.0000.00817.55
8.1.130.0030.00317.88
8.1.120.0030.00517.61
8.1.110.0040.00417.49
8.1.100.0080.00017.56
8.1.90.0110.00017.55
8.1.80.0030.00317.61
8.1.70.0000.00817.59
8.1.60.0070.00317.76
8.1.50.0080.00017.75
8.1.40.0080.00017.63
8.1.30.0000.00817.87
8.1.20.0040.00417.85
8.1.10.0070.00017.58
8.1.00.0040.00417.52
8.0.300.0050.00218.77
8.0.290.0040.00417.00
8.0.280.0030.00318.50
8.0.270.0030.00317.23
8.0.260.0000.00717.37
8.0.250.0070.00017.09
8.0.240.0030.00317.07
8.0.230.0050.00217.18
8.0.220.0030.00317.07
8.0.210.0070.00017.05
8.0.200.0000.00717.21
8.0.190.0030.00717.07
8.0.180.0060.00317.22
8.0.170.0000.00817.06
8.0.160.0040.00317.21
8.0.150.0080.00017.05
8.0.140.0040.00417.09
8.0.130.0060.00013.55
8.0.120.0030.00517.13
8.0.110.0000.00817.04
8.0.100.0040.00417.09
8.0.90.0030.00516.97
8.0.80.0040.01217.14
8.0.70.0000.00717.13
8.0.60.0000.00717.18
8.0.50.0070.00016.97
8.0.30.0110.01117.26
8.0.20.0100.01217.45
8.0.10.0040.00416.96
8.0.00.0080.00916.83
7.4.330.0000.00515.02
7.4.320.0030.00316.74
7.4.300.0060.00016.86
7.4.290.0030.00316.77
7.4.280.0050.00316.73
7.4.270.0080.00016.84
7.4.260.0030.00316.69
7.4.250.0000.00716.79
7.4.240.0020.00516.81
7.4.230.0070.00016.76
7.4.220.0070.01116.73
7.4.210.0060.00916.72
7.4.200.0050.00216.68
7.4.160.0080.00816.36
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0050.01516.85
7.4.120.0090.01016.68
7.4.110.0120.00616.86
7.4.100.0100.00716.46
7.4.90.0120.00916.71
7.4.80.0090.01219.39
7.4.70.0030.01416.83
7.4.60.0070.01016.75
7.4.50.0000.00816.69
7.4.40.0100.00616.56
7.4.30.0140.00316.73
7.4.10.0070.01115.30
7.4.00.0060.01115.28
7.3.330.0000.00513.34
7.3.320.0060.00013.47
7.3.310.0060.00316.56
7.3.300.0000.00716.50
7.3.290.0050.01216.57
7.3.280.0110.00816.53
7.3.270.0170.00017.40
7.3.260.0060.01316.74
7.3.250.0060.01216.66
7.3.240.0120.00916.61
7.3.230.0100.00716.39
7.3.210.0110.01116.79
7.3.200.0090.01419.39
7.3.190.0160.00016.79
7.3.180.0120.00316.72
7.3.170.0130.00316.86
7.3.160.0040.01416.40
7.3.130.0090.01014.93
7.3.120.0060.01214.68
7.3.110.0110.00814.91
7.3.100.0070.00714.74
7.3.90.0030.01215.32
7.3.80.0030.00914.84
7.3.70.0060.01214.78
7.3.60.0000.01715.14
7.3.50.0070.01014.91
7.3.40.0030.00715.02
7.3.30.0080.00415.07
7.3.20.0030.00716.77
7.3.10.0050.01016.80
7.3.00.0090.00516.76
7.2.330.0100.00717.00
7.2.320.0120.00916.59
7.2.310.0040.01516.78
7.2.300.0060.01516.82
7.2.290.0070.01716.72
7.2.260.0040.01415.28
7.2.250.0090.00415.41
7.2.240.0030.01415.43
7.2.230.0070.00715.31
7.2.220.0060.01015.18
7.2.210.0040.01514.96
7.2.200.0110.00315.39
7.2.190.0080.00315.27
7.2.180.0030.00914.97
7.2.170.0030.00915.22
7.2.160.0070.01015.40
7.2.150.0070.00717.29
7.2.140.0070.01117.13
7.2.130.0090.00716.93
7.2.120.0050.00817.02
7.2.110.0060.01217.05
7.2.100.0080.00316.83
7.2.90.0120.00617.02
7.2.80.0060.01016.98
7.2.70.0110.00617.17
7.2.60.0090.00816.94
7.2.50.0170.00217.14
7.2.40.0080.00816.96
7.2.30.0130.00517.08
7.2.20.0010.01217.09
7.2.10.0000.01416.96
7.2.00.0080.00817.04
7.1.330.0060.00615.82
7.1.320.0000.01315.84
7.1.310.0120.00315.69
7.1.300.0080.00516.18
7.1.290.0060.00615.72
7.1.280.0070.00716.02
7.1.270.0060.00815.91
7.1.260.0090.00615.91
7.1.250.0030.00716.00
7.1.240.0090.00615.96
7.1.230.0040.01116.09
7.1.220.0070.00715.89
7.1.210.0040.00415.80
7.1.200.0090.00615.93
7.1.190.0030.01015.88
7.1.180.0060.00615.91
7.1.170.0110.00315.75
7.1.160.0030.01215.57
7.1.150.0090.00915.93
7.1.140.0090.00616.04
7.1.130.0000.01415.75
7.1.120.0030.00615.86
7.1.110.0030.01215.98
7.1.100.0040.01115.86
7.1.90.0030.01015.66
7.1.80.0060.00615.77
7.1.70.0070.00416.72
7.1.60.0120.00517.48
7.1.50.0090.01116.59
7.1.40.0000.01115.96
7.1.30.0050.00515.89
7.1.20.0000.01315.79
7.1.10.0000.01615.78
7.1.00.0020.04519.12
7.0.330.0070.00415.45
7.0.320.0070.00715.57
7.0.310.0060.01315.61
7.0.300.0030.00715.56
7.0.290.0100.00315.55
7.0.280.0100.00615.50
7.0.270.0060.00915.28
7.0.260.0060.00615.71
7.0.250.0090.00615.71
7.0.240.0070.00715.66
7.0.230.0030.00715.82
7.0.220.0040.01115.74
7.0.210.0060.00615.31
7.0.200.0000.01016.31
7.0.190.0120.00415.47
7.0.180.0100.00315.52
7.0.170.0060.00315.70
7.0.160.0030.01015.77
7.0.150.0000.00815.57
7.0.140.0060.03918.89
7.0.130.0000.01415.61
7.0.120.0070.00415.70
7.0.110.0040.00415.75
7.0.100.0040.01115.69
7.0.90.0110.00715.45
7.0.80.0100.00715.54
7.0.70.0090.00915.71
7.0.60.0180.03417.76
7.0.50.0060.04016.79
7.0.40.0050.02616.77
7.0.30.0200.04016.90
7.0.20.0180.02716.91
7.0.10.0030.03116.93
7.0.00.0100.02716.88
5.6.400.0060.00614.48
5.6.390.0000.00914.44
5.6.380.0060.00614.05
5.6.370.0040.01214.69
5.6.360.0000.01314.27
5.6.350.0080.00614.63
5.6.340.0000.01414.42
5.6.330.0060.00914.32
5.6.320.0000.01114.56
5.6.310.0040.00814.50
5.6.300.0030.00714.38
5.6.290.0070.00714.27
5.6.280.0020.04417.62
5.6.270.0040.00814.59
5.6.260.0060.00314.28
5.6.250.0030.01014.30
5.6.240.0070.00714.31
5.6.230.0100.00714.37
5.6.220.0070.01014.48
5.6.210.0080.04217.42
5.6.200.0080.05216.26
5.6.190.0030.02717.44
5.6.180.0170.02717.29
5.6.170.0600.02517.57
5.6.160.0080.04317.52
5.6.150.0080.03316.21
5.6.140.0030.02916.24
5.6.130.0050.04716.29
5.6.120.0080.04017.75
5.6.110.0020.04517.52
5.6.100.0040.02817.62
5.6.90.0050.04517.66
5.6.80.0080.03717.40
5.6.70.0000.00914.14
5.6.60.0100.00614.10
5.6.50.0060.00914.13
5.6.40.0000.01014.44
5.6.30.0060.00314.40
5.6.20.0050.00514.08
5.6.10.0090.00614.38
5.6.00.0040.01114.31
5.5.380.0110.00414.18
5.5.370.0060.00914.31
5.5.360.0070.00714.28
5.5.350.0120.03717.34
5.5.340.0050.02816.32
5.5.330.0090.04017.29
5.5.320.0200.04117.30
5.5.310.0120.04117.13
5.5.300.0060.02416.11
5.5.290.0130.02416.33
5.5.280.0030.03017.51
5.5.270.0110.02517.59
5.5.260.0050.04817.32
5.5.250.0050.03717.33
5.5.240.0150.03217.27
5.5.230.0120.00314.16
5.5.220.0000.01314.36
5.5.210.0030.00914.36
5.5.200.0060.00914.20
5.5.190.0060.00614.16
5.5.180.0060.00614.27
5.5.170.0070.00714.29
5.5.160.0040.00714.23
5.5.150.0090.00414.31
5.5.140.0130.00014.29
5.5.130.0120.00014.37
5.5.120.0030.00914.34
5.5.110.0030.00814.11
5.5.100.0100.00314.18
5.5.90.0030.01014.21
5.5.80.0000.00914.40
5.5.70.0030.00614.42
5.5.60.0060.00814.41
5.5.50.0070.00714.20
5.5.40.0090.00614.36
5.5.30.0030.00514.33
5.5.20.0000.01414.24
5.5.10.0000.01613.97
5.5.00.0110.00014.19
5.4.450.0380.03615.21
5.4.440.0460.02915.20
5.4.430.0520.02515.26
5.4.420.0380.00315.30
5.4.410.0350.00415.08
5.4.400.0350.00215.03
5.4.390.0350.00214.96
5.4.380.0350.00315.04
5.4.370.0340.00215.04
5.4.360.0330.00315.04
5.4.350.0330.00315.13
5.4.340.0040.02011.47
5.4.330.0110.00011.05
5.4.320.0020.02311.61
5.4.310.0020.02511.80
5.4.300.0040.02311.63
5.4.290.0040.02311.75
5.4.280.0070.01911.77
5.4.270.0020.02511.65
5.4.260.0070.02011.66
5.4.250.0040.02311.60
5.4.240.0040.02211.77
5.4.230.0040.02511.58
5.4.220.0050.02511.70
5.4.210.0030.02411.74
5.4.200.0070.01911.74
5.4.190.0040.02411.77
5.4.180.0040.02411.59
5.4.170.0040.02611.73
5.4.160.0050.02111.76
5.4.150.0020.02411.79
5.4.140.0060.02111.46
5.4.130.0080.02011.41
5.4.120.0070.02211.46
5.4.110.0020.02211.50
5.4.100.0040.02111.60
5.4.90.0060.02211.38
5.4.80.0060.02011.41
5.4.70.0070.01811.46
5.4.60.0040.02211.47
5.4.50.0070.01811.53
5.4.40.0020.02111.31
5.4.30.0040.02111.47
5.4.20.0030.02111.44
5.4.10.0060.02111.39
5.4.00.0030.02211.18
5.3.290.0040.04112.80
5.3.280.0030.04512.71
5.3.270.0040.04112.73
5.3.260.0010.04412.72
5.3.250.0080.03512.72
5.3.240.0080.04012.72
5.3.230.0090.03412.71
5.3.220.0040.03812.68
5.3.210.0050.04112.68
5.3.200.0070.03612.68
5.3.190.0050.03912.68
5.3.180.0070.03812.67
5.3.170.0050.03812.67
5.3.160.0040.03812.68
5.3.150.0070.03612.68
5.3.140.0050.03612.66
5.3.130.0060.03912.66
5.3.120.0070.03612.66
5.3.110.0060.04312.66
5.3.100.0100.03212.12
5.3.90.0060.03812.08
5.3.80.0100.03112.07
5.3.70.0050.04212.07
5.3.60.0060.03612.06
5.3.50.0090.03312.00
5.3.40.0030.04712.00
5.3.30.0080.03211.96
5.3.20.0080.03211.74
5.3.10.0060.03411.70
5.3.00.0040.03811.69
5.2.170.0040.0319.19
5.2.160.0070.0309.19
5.2.150.0060.0379.19
5.2.140.0030.0329.19
5.2.130.0040.0319.14
5.2.120.0040.0299.14
5.2.110.0050.0289.16
5.2.100.0070.0269.15
5.2.90.0090.0259.16
5.2.80.0080.0319.14
5.2.70.0050.0299.15
5.2.60.0080.0269.11
5.2.50.0040.0299.07
5.2.40.0030.0309.05
5.2.30.0040.0329.03
5.2.20.0070.0299.01
5.2.10.0050.0278.93
5.2.00.0100.0268.79
5.1.60.0050.0298.08
5.1.50.0030.0248.08
5.1.40.0040.0248.06
5.1.30.0070.0238.41
5.1.20.0050.0278.43
5.1.10.0090.0278.16
5.1.00.0040.0258.16
5.0.50.0070.0236.64
5.0.40.0030.0196.50
5.0.30.0060.0286.31
5.0.20.0040.0206.28
5.0.10.0050.0256.26
5.0.00.0020.0316.25
4.4.90.0050.0264.78
4.4.80.0040.0134.76
4.4.70.0040.0184.76
4.4.60.0020.0264.76
4.4.50.0040.0154.77
4.4.40.0040.0304.71
4.4.30.0020.0164.76
4.4.20.0070.0114.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0060.0144.67
4.3.100.0030.0144.67
4.3.90.0030.0144.63
4.3.80.0000.0264.59
4.3.70.0020.0154.63
4.3.60.0030.0214.63
4.3.50.0020.0154.63
4.3.40.0050.0224.54
4.3.30.0040.0173.31
4.3.20.0010.0173.29
4.3.10.0010.0163.25
4.3.00.0170.0237.55

preferences:
41.94 ms | 401 KiB | 5 Q