3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "@a2Qr1A"; $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 $upperChar= preg_match("/(?=.*[A-Z].*[A-Z])/", $pswd); //two or more upper case letters x $lowerChar= preg_match("/(?=.*[a-z].*[a-z])/", $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.0040.01118.54
8.3.50.0100.00721.35
8.3.40.0170.00318.97
8.3.30.0090.00618.90
8.3.20.0050.00320.16
8.3.10.0000.00823.42
8.3.00.0040.00419.50
8.2.180.0140.00716.50
8.2.170.0180.00022.96
8.2.160.0030.01320.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00320.42
8.2.110.0180.00422.18
8.2.100.0060.00617.88
8.2.90.0030.00519.11
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0070.00418.07
8.2.40.0000.00820.00
8.2.30.0040.00418.04
8.2.20.0040.00417.84
8.2.10.0000.00818.18
8.2.00.0030.00517.90
8.1.280.0140.00725.92
8.1.270.0000.01022.04
8.1.260.0040.01126.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0040.00719.20
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.61
8.1.190.0000.00817.48
8.1.180.0000.00918.10
8.1.170.0050.00318.74
8.1.160.0000.00722.07
8.1.150.0000.00718.93
8.1.140.0000.00717.63
8.1.130.0030.00317.88
8.1.120.0070.00017.70
8.1.110.0030.00417.68
8.1.100.0000.00717.70
8.1.90.0000.00817.67
8.1.80.0040.00417.60
8.1.70.0040.00417.67
8.1.60.0030.00717.66
8.1.50.0000.00917.72
8.1.40.0000.00817.62
8.1.30.0000.00817.88
8.1.20.0040.00417.86
8.1.10.0050.00317.72
8.1.00.0000.00817.65
8.0.300.0080.00018.77
8.0.290.0030.00517.13
8.0.280.0070.00018.48
8.0.270.0000.00717.31
8.0.260.0030.00317.30
8.0.250.0040.00417.22
8.0.240.0000.00717.22
8.0.230.0030.00317.20
8.0.220.0070.00017.02
8.0.210.0030.00317.13
8.0.200.0030.00317.25
8.0.190.0000.01017.17
8.0.180.0040.00417.14
8.0.170.0060.00317.04
8.0.160.0000.00817.09
8.0.150.0070.00017.11
8.0.140.0050.00217.01
8.0.130.0000.00513.60
8.0.120.0040.00417.13
8.0.110.0050.00317.03
8.0.100.0040.00417.18
8.0.90.0080.00017.10
8.0.80.0100.00717.16
8.0.70.0070.00017.00
8.0.60.0040.00417.04
8.0.50.0070.00017.17
8.0.30.0080.01117.28
8.0.20.0180.00817.40
8.0.10.0050.00317.02
8.0.00.0090.00916.96
7.4.330.0000.00415.02
7.4.320.0000.00616.86
7.4.300.0060.00016.85
7.4.290.0000.00716.68
7.4.280.0040.00416.75
7.4.270.0030.00316.86
7.4.260.0000.00816.73
7.4.250.0040.00416.78
7.4.240.0010.00616.81
7.4.230.0040.00416.81
7.4.220.0090.00916.55
7.4.210.0090.01216.86
7.4.200.0040.00416.60
7.4.160.0120.00316.76
7.4.150.0090.00917.40
7.4.140.0120.01117.86
7.4.130.0110.00816.70
7.4.120.0070.01216.77
7.4.110.0120.00616.76
7.4.100.0100.01416.50
7.4.90.0100.01016.63
7.4.80.0060.01219.39
7.4.70.0100.00716.70
7.4.60.0070.01016.88
7.4.50.0000.00816.59
7.4.40.0090.00916.84
7.4.30.0130.00316.64
7.4.00.0050.01215.01
7.3.330.0000.00513.39
7.3.320.0040.00413.37
7.3.310.0000.00716.47
7.3.300.0070.00016.41
7.3.290.0080.01116.52
7.3.280.0070.00916.49
7.3.270.0140.01017.40
7.3.260.0120.00616.60
7.3.250.0070.01016.71
7.3.240.0130.01116.81
7.3.230.0090.00816.71
7.3.210.0130.00316.36
7.3.200.0130.01019.39
7.3.190.0120.00616.42
7.3.180.0070.00716.67
7.3.170.0080.00816.50
7.3.160.0110.00816.84
7.3.120.0100.00914.99
7.3.110.0030.01314.85
7.3.100.0080.00815.11
7.3.90.0070.00814.81
7.3.80.0080.00815.14
7.3.70.0080.00414.98
7.3.60.0070.00714.98
7.3.50.0080.00514.89
7.3.40.0060.00714.99
7.3.30.0020.01215.02
7.3.20.0070.00816.70
7.3.10.0070.00716.89
7.3.00.0050.00816.79
7.2.330.0080.00816.85
7.2.320.0090.00916.73
7.2.310.0080.01116.73
7.2.300.0030.01316.77
7.2.290.0090.01216.91
7.2.250.0050.01315.37
7.2.240.0070.00815.19
7.2.230.0070.00715.09
7.2.220.0030.01115.06
7.2.210.0050.00715.21
7.2.200.0070.01015.22
7.2.190.0040.01115.26
7.2.180.0040.00815.02
7.2.170.0070.00615.21
7.2.160.0050.00815.34
7.2.150.0050.01016.91
7.2.140.0130.00317.06
7.2.130.0050.00717.06
7.2.120.0040.00917.02
7.2.110.0050.00817.17
7.2.100.0050.00917.06
7.2.90.0070.00717.04
7.2.80.0080.00517.10
7.2.70.0080.00316.94
7.2.60.0080.00717.15
7.2.50.0040.01217.12
7.2.40.0030.01217.16
7.2.30.0060.00717.21
7.2.20.0070.00817.04
7.2.10.0050.00817.00
7.2.00.0050.00817.07
7.1.330.0080.00715.92
7.1.320.0020.00915.84
7.1.310.0020.01315.97
7.1.300.0060.00715.94
7.1.290.0030.00715.87
7.1.280.0070.00615.90
7.1.270.0040.00915.91
7.1.260.0060.00915.96
7.1.250.0060.00715.84
7.1.240.0010.01215.86
7.1.230.0080.00616.04
7.1.220.0050.00715.97
7.1.210.0090.00515.70
7.1.200.0040.00815.85
7.1.190.0030.00915.78
7.1.180.0070.00915.66
7.1.170.0060.00815.96
7.1.160.0090.00915.90
7.1.150.0050.00815.74
7.1.140.0050.00915.88
7.1.130.0050.00715.78
7.1.120.0070.00916.00
7.1.110.0070.00816.04
7.1.100.0070.00415.73
7.1.90.0020.00815.75
7.1.80.0050.00816.03
7.1.70.0060.00716.50
7.1.60.0100.00916.77
7.1.50.0080.01016.40
7.1.40.0050.00915.90
7.1.30.0030.00815.83
7.1.20.0060.00816.07
7.1.10.0030.00915.85
7.1.00.0030.03218.02
7.0.330.0070.00515.60
7.0.320.0040.00815.45
7.0.310.0050.00815.62
7.0.300.0050.00815.48
7.0.290.0070.00715.46
7.0.280.0070.00415.54
7.0.270.0050.00515.47
7.0.260.0080.00615.64
7.0.250.0050.01215.52
7.0.240.0030.01315.60
7.0.230.0020.00915.62
7.0.220.0040.00815.70
7.0.210.0060.00815.40
7.0.200.0060.00416.13
7.0.190.0010.01115.31
7.0.180.0020.01215.58
7.0.170.0020.01015.62
7.0.160.0050.00715.58
7.0.150.0080.00515.75
7.0.140.0090.02817.70
7.0.130.0110.00315.44
7.0.120.0080.00515.62
7.0.110.0040.00815.58
7.0.100.0040.00915.59
7.0.90.0070.00615.80
7.0.80.0080.00615.59
7.0.70.0050.00815.51
7.0.60.0100.03017.01
7.0.50.0060.02916.46
7.0.40.0080.03215.99
7.0.30.0140.01615.82
7.0.20.0040.02315.75
7.0.10.0070.03215.77
7.0.00.0070.03215.74
5.6.400.0030.00914.50
5.6.390.0030.01214.47
5.6.380.0040.00914.37
5.6.370.0100.00514.46
5.6.360.0070.01014.58
5.6.350.0080.00814.22
5.6.340.0090.00514.59
5.6.330.0030.01114.27
5.6.320.0020.01214.38
5.6.310.0050.00714.50
5.6.300.0070.00614.58
5.6.290.0050.00914.35
5.6.280.0060.03016.55
5.6.270.0050.00814.35
5.6.260.0030.00914.50
5.6.250.0080.00514.36
5.6.240.0100.00514.51
5.6.230.0030.00814.63
5.6.220.0090.00814.20
5.6.210.0070.03016.46
5.6.200.0080.01915.62
5.6.190.0080.03316.49
5.6.180.1300.02016.29
5.6.170.0240.02416.31
5.6.160.0070.01916.20
5.6.150.0040.02515.65
5.6.140.0070.02815.67
5.6.130.0050.01915.64
5.6.120.0080.02916.60
5.6.110.0090.02916.58
5.6.100.0070.03116.58
5.6.90.0060.03216.56
5.6.80.0090.02416.35
5.6.70.0750.01916.21
5.6.60.0030.00914.34
5.6.50.0080.00614.11
5.6.40.0060.00614.31
5.6.30.0050.00614.26
5.6.20.0030.00914.26
5.6.10.0050.00914.09
5.6.00.0090.00514.24
5.5.380.0060.00614.39
5.5.370.0050.00614.37
5.5.360.0080.00614.29
5.5.350.0040.02316.28
5.5.340.0060.03215.54
5.5.330.0070.02016.35
5.5.320.0130.03316.27
5.5.310.0120.01716.52
5.5.300.0080.01715.58
5.5.290.0030.02415.37
5.5.280.0080.03016.52
5.5.270.0060.03016.36
5.5.260.0040.02516.30
5.5.250.0030.02216.36
5.5.240.0150.02516.22
5.5.230.0060.00414.23
5.5.220.0050.01114.01
5.5.210.0030.00614.12
5.5.200.0060.00814.54
5.5.190.0070.00813.99
5.5.180.0050.01014.42
5.5.170.0020.01314.31
5.5.160.0060.00914.13
5.5.150.0050.00914.45
5.5.140.0080.00514.13
5.5.130.0030.01014.23
5.5.120.0050.00814.07
5.5.110.0050.00814.28
5.5.100.0030.00714.27
5.5.90.0050.00714.18
5.5.80.0030.00914.31
5.5.70.0050.00414.40
5.5.60.0090.00614.04
5.5.50.0030.00814.11
5.5.40.0040.00614.02
5.5.30.0050.00814.20
5.5.20.0090.00414.27
5.5.10.0080.00714.30
5.5.00.0050.00714.16
5.4.450.0320.02013.89
5.4.440.0300.02713.67
5.4.430.0280.02613.88
5.4.420.0240.00513.85
5.4.410.0300.00513.92
5.4.400.0220.00613.81
5.4.390.0240.00213.69
5.4.380.0290.00313.62
5.4.370.0220.00513.71
5.4.360.0210.00413.71
5.4.350.0310.00313.73
5.4.340.0050.01511.31
5.4.330.0070.00110.84
5.4.320.0030.02011.61
5.4.310.0090.01711.54
5.4.300.0050.01711.60
5.4.290.0070.02311.36
5.4.280.0040.01911.43
5.4.270.0070.01611.42
5.4.260.0040.01811.53
5.4.250.0050.01411.50
5.4.240.0050.01511.42
5.4.230.0030.01711.35
5.4.220.0050.01511.50
5.4.210.0030.01711.56
5.4.200.0030.01711.39
5.4.190.0050.01611.23
5.4.180.0020.01711.54
5.4.170.0050.01511.38
5.4.160.0040.01611.46
5.4.150.0050.01911.37
5.4.140.0040.02111.34
5.4.130.0050.01511.41
5.4.120.0060.01411.35
5.4.110.0040.01811.22
5.4.100.0050.01811.13
5.4.90.0060.01811.28
5.4.80.0040.01911.20
5.4.70.0060.01311.34
5.4.60.0050.01611.29
5.4.50.0090.01811.24
5.4.40.0030.01911.35
5.4.30.0070.01611.36
5.4.20.0070.01611.28
5.4.10.0040.01711.37
5.4.00.0040.01711.10
5.3.290.0070.04112.80
5.3.280.0060.04112.70
5.3.270.0050.04312.72
5.3.260.0070.04212.72
5.3.250.0080.03912.72
5.3.240.0060.03912.72
5.3.230.0110.04312.71
5.3.220.0120.03312.68
5.3.210.0090.04312.68
5.3.200.0080.04612.68
5.3.190.0050.03912.67
5.3.180.0080.03612.68
5.3.170.0050.04112.67
5.3.160.0050.05412.67
5.3.150.0060.05012.68
5.3.140.0070.05112.66
5.3.130.0050.04212.65
5.3.120.0070.03912.66
5.3.110.0090.03912.66
5.3.100.0080.03812.12
5.3.90.0070.03512.09
5.3.80.0070.03612.07
5.3.70.0030.04012.07
5.3.60.0040.03912.06
5.3.50.0050.03712.00
5.3.40.0080.03712.00
5.3.30.0070.03511.97
5.3.20.0070.03411.73
5.3.10.0090.03211.70
5.3.00.0050.03711.69
5.2.170.0020.0339.19
5.2.160.0050.0299.19
5.2.150.0020.0349.18
5.2.140.0070.0369.18
5.2.130.0080.0389.14
5.2.120.0060.0389.15
5.2.110.0050.0359.16
5.2.100.0050.0299.15
5.2.90.0060.0299.15
5.2.80.0070.0399.14
5.2.70.0070.0449.14
5.2.60.0040.0309.10
5.2.50.0060.0329.08
5.2.40.0080.0349.05
5.2.30.0060.0429.03
5.2.20.0060.0309.02
5.2.10.0030.0308.93
5.2.00.0050.0288.80
5.1.60.0020.0268.08
5.1.50.0050.0278.07
5.1.40.0060.0258.06
5.1.30.0050.0268.41
5.1.20.0050.0358.43
5.1.10.0040.0268.15
5.1.00.0040.0268.15
5.0.50.0030.0226.64
5.0.40.0050.0186.50
5.0.30.0050.0306.32
5.0.20.0020.0216.29
5.0.10.0040.0226.27
5.0.00.0030.0306.25
4.4.90.0040.0184.78
4.4.80.0010.0234.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0070.0184.76
4.4.20.0050.0214.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0030.0164.67
4.3.100.0030.0154.66
4.3.90.0050.0124.64
4.3.80.0050.0224.58
4.3.70.0030.0164.63
4.3.60.0040.0144.63
4.3.50.0010.0174.62
4.3.40.0030.0244.54
4.3.30.0030.0153.31
4.3.20.0040.0153.28
4.3.10.0040.0143.23
4.3.00.0000.0277.55

preferences:
44.73 ms | 401 KiB | 5 Q