3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "3@aQr1A"; $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.0110.00418.68
8.3.50.0030.01521.25
8.3.40.0090.00618.70
8.3.30.0060.00919.04
8.3.20.0040.00420.29
8.3.10.0040.00423.53
8.3.00.0040.00419.38
8.2.180.0110.00716.63
8.2.170.0120.00322.96
8.2.160.0130.00320.53
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0120.00020.47
8.2.110.0030.00622.32
8.2.100.0040.00817.75
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0050.00318.05
8.2.50.0000.01218.07
8.2.40.0030.00620.01
8.2.30.0060.00318.03
8.2.20.0000.00817.92
8.2.10.0030.00618.21
8.2.00.0000.00817.87
8.1.280.0090.01225.92
8.1.270.0060.00322.24
8.1.260.0030.00626.35
8.1.250.0050.00228.09
8.1.240.0030.00623.83
8.1.230.0060.00619.28
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0080.00017.48
8.1.180.0040.00418.10
8.1.170.0030.00518.87
8.1.160.0040.00422.06
8.1.150.0040.00419.01
8.1.140.0050.00217.60
8.1.130.0070.00017.84
8.1.120.0000.00717.67
8.1.110.0050.00217.68
8.1.100.0000.00817.66
8.1.90.0030.00517.63
8.1.80.0000.00717.64
8.1.70.0040.00417.57
8.1.60.0060.00617.65
8.1.50.0050.00317.75
8.1.40.0080.00017.66
8.1.30.0080.00017.73
8.1.20.0000.00817.82
8.1.10.0000.00717.69
8.1.00.0030.00517.53
8.0.300.0000.00818.77
8.0.290.0050.00317.13
8.0.280.0030.00318.50
8.0.270.0030.00317.32
8.0.260.0000.00617.33
8.0.250.0030.00317.24
8.0.240.0000.00617.18
8.0.230.0040.00417.19
8.0.220.0030.00317.18
8.0.210.0040.00417.08
8.0.200.0000.00717.04
8.0.190.0100.00017.23
8.0.180.0030.00617.05
8.0.170.0080.00017.22
8.0.160.0030.00517.10
8.0.150.0050.00217.09
8.0.140.0040.00417.06
8.0.130.0030.00313.52
8.0.120.0050.00317.08
8.0.110.0030.00817.15
8.0.100.0050.00317.01
8.0.90.0040.00417.10
8.0.80.0140.00717.10
8.0.70.0050.00217.18
8.0.60.0000.00717.09
8.0.50.0000.00717.05
8.0.30.0100.01017.30
8.0.20.0050.01517.40
8.0.10.0000.00817.00
8.0.00.0070.01016.94
7.4.330.0050.00015.02
7.4.320.0000.00616.76
7.4.300.0060.00016.67
7.4.290.0030.00316.84
7.4.280.0040.00416.84
7.4.270.0040.00416.82
7.4.260.0000.00716.74
7.4.250.0020.00516.63
7.4.240.0020.00516.80
7.4.230.0070.00016.68
7.4.220.0120.00816.66
7.4.210.0080.00816.87
7.4.200.0030.00316.82
7.4.160.0040.01216.80
7.4.150.0150.00917.40
7.4.140.0120.01017.86
7.4.130.0060.01216.61
7.4.120.0070.01516.74
7.4.110.0060.01616.69
7.4.100.0080.01316.64
7.4.90.0040.01416.59
7.4.80.0140.00619.39
7.4.70.0060.01016.52
7.4.60.0070.01416.48
7.4.50.0000.00816.69
7.4.40.0090.01316.44
7.4.30.0070.01016.69
7.4.00.0080.00915.14
7.3.330.0060.00013.23
7.3.320.0040.00413.34
7.3.310.0000.00816.52
7.3.300.0000.00716.39
7.3.290.0060.01016.51
7.3.280.0070.00816.53
7.3.270.0150.00917.40
7.3.260.0100.00716.40
7.3.250.0140.00316.52
7.3.240.0030.01416.47
7.3.230.0100.00716.48
7.3.210.0090.00616.82
7.3.200.0170.00019.39
7.3.190.0060.01216.65
7.3.180.0130.00316.60
7.3.170.0070.01116.82
7.3.160.0090.00616.46
7.3.120.0040.01114.96
7.3.110.0080.01114.91
7.3.100.0030.01314.77
7.3.90.0070.00315.18
7.3.80.0040.01114.93
7.3.70.0040.00714.95
7.3.60.0040.00415.18
7.3.50.0030.00715.00
7.3.40.0090.00614.98
7.3.30.0080.00815.00
7.3.20.0080.00416.69
7.3.10.0110.00816.38
7.3.00.0100.00716.42
7.2.330.0150.00616.59
7.2.320.0110.00716.88
7.2.310.0060.01616.87
7.2.300.0140.00316.56
7.2.290.0130.00716.85
7.2.250.0090.00914.94
7.2.240.0100.01015.39
7.2.230.0140.00015.04
7.2.220.0030.00715.18
7.2.210.0060.01215.20
7.2.200.0090.00615.36
7.2.190.0090.00315.18
7.2.180.0030.01015.27
7.2.170.0090.00615.04
7.2.130.0100.01116.60
7.2.120.0150.00816.64
7.2.110.0120.00916.66
7.2.100.0150.00716.61
7.2.90.0150.00817.03
7.2.80.0160.00716.55
7.2.70.0150.00616.96
7.2.60.0100.00816.84
7.2.50.0070.00716.93
7.2.40.0130.00716.75
7.2.30.0150.00716.66
7.2.20.0130.00816.53
7.2.10.0170.00816.53
7.2.00.0130.00816.90
7.1.330.0030.01015.74
7.1.320.0040.00416.12
7.1.310.0060.00315.97
7.1.300.0040.00415.92
7.1.290.0000.00915.61
7.1.280.0030.01015.79
7.1.270.0060.01016.13
7.1.260.0050.00515.99
7.1.250.0160.00515.48
7.1.200.0060.00615.75
7.1.70.0000.01017.52
7.1.60.0090.01619.11
7.1.50.0040.01417.14
7.1.00.0100.06322.33
7.0.200.0040.00416.90
7.0.140.0100.06722.09
7.0.60.0070.03719.92
7.0.50.0300.03017.92
7.0.40.0100.05020.26
7.0.30.0470.06020.15
7.0.20.0270.07720.11
7.0.10.0130.08020.14
7.0.00.0070.04020.19
5.6.280.0070.07020.89
5.6.210.0030.08720.52
5.6.200.0030.04018.22
5.6.190.0130.04720.49
5.6.180.0430.07020.67
5.6.170.1300.04320.49
5.6.160.0100.08020.71
5.6.150.0070.05018.21
5.6.140.0030.04018.16
5.6.130.0000.08718.17
5.6.120.0030.04020.79
5.6.110.0200.05720.98
5.6.100.0070.05020.98
5.6.90.0100.08021.07
5.6.80.0000.08720.41
5.5.350.0030.03720.46
5.5.340.0070.08017.91
5.5.330.0130.08020.23
5.5.320.0330.07020.29
5.5.310.0230.07320.28
5.5.300.0070.08317.96
5.5.290.0030.04317.89
5.5.280.0130.06020.88
5.5.270.0070.08320.86
5.5.260.0070.08320.73
5.5.250.0070.08720.58
5.5.240.0330.06720.32
5.4.450.1070.08019.44
5.4.440.1170.05019.52
5.4.430.0800.05719.45
5.4.420.0700.00019.48
5.4.410.0630.00019.52
5.4.400.0630.00019.01
5.4.390.0670.00019.05
5.4.380.0730.00019.26
5.4.370.0630.00019.06
5.4.360.0670.00019.15
5.4.350.0630.00019.16
5.4.340.0040.03711.97
5.4.320.0060.03612.45
5.4.310.0050.04412.45
5.4.300.0030.04012.45
5.4.290.0020.04312.45
5.4.280.0080.04112.35
5.4.270.0050.03912.35
5.4.260.0060.03812.35
5.4.250.0070.03612.35
5.4.240.0060.03612.35
5.4.230.0050.04112.34
5.4.220.0060.03712.34
5.4.210.0070.03612.34
5.4.200.0050.04212.34
5.4.190.0030.03912.34
5.4.180.0060.03612.34
5.4.170.0050.03712.35
5.4.160.0060.03812.35
5.4.150.0060.03812.34
5.4.140.0070.03612.02
5.4.130.0080.03412.02
5.4.120.0050.03711.98
5.4.110.0040.03711.97
5.4.100.0060.03511.97
5.4.90.0080.03511.97
5.4.80.0080.03511.97
5.4.70.0080.03311.96
5.4.60.0070.03411.96
5.4.50.0070.03511.96
5.4.40.0080.03311.95
5.4.30.0060.03611.95
5.4.20.0030.03811.95
5.4.10.0080.03311.95
5.4.00.0050.03711.44
5.3.290.0030.04312.80
5.3.280.0040.04012.71
5.3.270.0060.04112.73
5.3.260.0060.04012.72
5.3.250.0070.03812.72
5.3.240.0070.03712.72
5.3.230.0050.03812.71
5.3.220.0050.03712.68
5.3.210.0050.04012.68
5.3.200.0010.04112.68
5.3.190.0040.03912.68
5.3.180.0060.03612.68
5.3.170.0080.03512.67
5.3.160.0090.03412.67
5.3.150.0070.03612.67
5.3.140.0070.04412.66
5.3.130.0040.04212.66
5.3.120.0050.04012.66
5.3.110.0120.04012.66
5.3.100.0050.03812.12
5.3.90.0040.03712.08
5.3.80.0050.03812.07
5.3.70.0090.03312.07
5.3.60.0070.03412.06
5.3.50.0040.03812.00
5.3.40.0080.03512.00
5.3.30.0040.03711.96
5.3.20.0050.03511.74
5.3.10.0050.03511.70
5.3.00.0080.04411.69
5.2.170.0050.0369.19
5.2.160.0040.0309.19
5.2.150.0050.0339.18
5.2.140.0060.0299.18
5.2.130.0040.0299.14
5.2.120.0050.0289.15
5.2.110.0080.0269.16
5.2.100.0020.0329.15
5.2.90.0040.0369.15
5.2.80.0050.0309.15
5.2.70.0070.0339.14
5.2.60.0040.0349.10
5.2.50.0020.0339.07
5.2.40.0040.0299.06
5.2.30.0040.0309.02
5.2.20.0040.0299.01
5.2.10.0070.0268.94
5.2.00.0050.0298.80
5.1.60.0040.0248.08
5.1.50.0020.0268.07
5.1.40.0060.0228.05
5.1.30.0060.0248.41
5.1.20.0080.0228.43
5.1.10.0060.0248.16
5.1.00.0040.0268.15
5.0.50.0020.0226.64
5.0.40.0030.0196.50
5.0.30.0030.0326.32
5.0.20.0050.0176.28
5.0.10.0040.0196.27
5.0.00.0050.0296.26
4.4.90.0040.0144.78
4.4.80.0030.0144.75
4.4.70.0030.0154.75
4.4.60.0000.0184.76
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0040.0174.76
4.4.20.0030.0154.85
4.4.10.0020.0164.85
4.4.00.0050.0234.76
4.3.110.0030.0154.67
4.3.100.0030.0214.67
4.3.90.0000.0244.63
4.3.80.0040.0274.58
4.3.70.0020.0184.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0020.0223.31
4.3.20.0020.0163.29
4.3.10.0020.0163.23
4.3.00.0200.0277.55

preferences:
51.98 ms | 401 KiB | 5 Q