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]{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.60.0150.00916.99
8.3.50.0110.00822.13
8.3.40.0070.01018.96
8.3.30.0070.00719.14
8.3.20.0000.00820.34
8.3.10.0000.00823.50
8.3.00.0030.00519.50
8.2.180.0120.00618.54
8.2.170.0100.00722.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0120.00322.28
8.2.110.0060.00322.37
8.2.100.0090.00317.75
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0090.00018.03
8.2.50.0060.00318.07
8.2.40.0060.00320.01
8.2.30.0000.00718.12
8.2.20.0070.00018.00
8.2.10.0030.00518.11
8.2.00.0050.00517.91
8.1.280.0090.00625.92
8.1.270.0070.00422.09
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0080.00417.50
8.1.220.0040.00417.91
8.1.210.0080.00018.77
8.1.200.0000.00917.48
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0000.00818.80
8.1.160.0000.00722.01
8.1.150.0040.00418.98
8.1.140.0050.00217.59
8.1.130.0080.00017.74
8.1.120.0050.00217.61
8.1.110.0060.00317.54
8.1.100.0000.00717.63
8.1.90.0030.00617.66
8.1.80.0050.00217.63
8.1.70.0040.00417.66
8.1.60.0040.00717.80
8.1.50.0030.00617.69
8.1.40.0040.00417.66
8.1.30.0000.00817.87
8.1.20.0000.00717.77
8.1.10.0070.00017.58
8.1.00.0030.00617.63
8.0.300.0060.00318.77
8.0.290.0040.00417.13
8.0.280.0000.00718.39
8.0.270.0030.00317.36
8.0.260.0000.00617.18
8.0.250.0030.00317.16
8.0.240.0030.00317.28
8.0.230.0080.00017.12
8.0.220.0000.00717.23
8.0.210.0080.00017.20
8.0.200.0030.00317.13
8.0.190.0060.00617.21
8.0.180.0000.00817.13
8.0.170.0040.00417.12
8.0.160.0040.00417.31
8.0.150.0040.00417.03
8.0.140.0040.00417.09
8.0.130.0030.00313.61
8.0.120.0070.00017.21
8.0.110.0040.00417.25
8.0.100.0050.00217.26
8.0.90.0040.00417.07
8.0.80.0030.01417.16
8.0.70.0040.00417.21
8.0.60.0050.00217.00
8.0.50.0000.00717.22
8.0.30.0140.00917.28
8.0.20.0150.00817.42
8.0.10.0000.00717.04
8.0.00.0120.00617.00
7.4.330.0050.00015.02
7.4.320.0000.00616.89
7.4.300.0060.00016.74
7.4.290.0040.00416.75
7.4.280.0040.00416.65
7.4.270.0000.00716.80
7.4.260.0000.00716.67
7.4.250.0060.00316.82
7.4.240.0020.00516.81
7.4.230.0030.00316.79
7.4.220.0140.00616.73
7.4.210.0110.00416.64
7.4.200.0040.00416.55
7.4.160.0120.00416.79
7.4.150.0090.00917.40
7.4.140.0150.00917.86
7.4.130.0120.00816.74
7.4.120.0070.01016.82
7.4.110.0070.01016.91
7.4.100.0100.00716.82
7.4.90.0130.00416.73
7.4.80.0060.01319.39
7.4.70.0090.01216.61
7.4.60.0080.00916.62
7.4.50.0030.00516.63
7.4.40.0070.01016.82
7.4.30.0090.00916.70
7.4.00.0040.01015.20
7.3.330.0030.00313.44
7.3.320.0050.00013.32
7.3.310.0070.00016.42
7.3.300.0030.00316.61
7.3.290.0110.00616.53
7.3.280.0070.00916.61
7.3.270.0070.01017.40
7.3.260.0120.00616.48
7.3.250.0120.00516.61
7.3.240.0140.01116.78
7.3.230.0090.00916.52
7.3.210.0100.00716.44
7.3.200.0100.01319.39
7.3.190.0100.01316.85
7.3.180.0100.00716.75
7.3.170.0100.00716.79
7.3.160.0030.01816.51
7.3.120.0060.01314.99
7.3.110.0070.01114.76
7.3.100.0030.01415.08
7.3.90.0060.01015.25
7.3.80.0060.01014.92
7.3.70.0040.00714.70
7.3.60.0040.01114.78
7.3.50.0030.00915.13
7.3.40.0090.00314.81
7.3.30.0030.00714.81
7.3.20.0030.01016.76
7.3.10.0120.00616.56
7.3.00.0100.00316.64
7.2.330.0000.01716.84
7.2.320.0070.01016.84
7.2.310.0040.02116.80
7.2.300.0130.00616.67
7.2.290.0120.00616.93
7.2.250.0090.00915.13
7.2.240.0100.01015.14
7.2.230.0030.01715.31
7.2.220.0120.00615.32
7.2.210.0070.01015.11
7.2.200.0040.01015.24
7.2.190.0110.00415.11
7.2.180.0060.00615.26
7.2.170.0100.00314.98
7.1.330.0030.01016.12
7.1.320.0150.00316.04
7.1.310.0030.01415.88
7.1.300.0000.01416.00
7.1.290.0090.00615.84
7.1.280.0110.00616.00
7.1.270.0070.00315.76
7.1.260.0100.00315.83
7.1.70.0040.00417.26
7.1.60.0100.01419.11
7.1.50.0100.01417.07
7.1.00.0070.07322.44
7.0.200.0040.00416.99
7.0.140.0030.07322.07
7.0.60.0000.04319.92
7.0.50.0000.04317.89
7.0.40.0200.03720.14
7.0.30.0570.07720.20
7.0.20.0300.05720.18
7.0.10.0070.05320.02
7.0.00.0230.03720.18
5.6.280.0000.07721.10
5.6.210.0030.05720.66
5.6.200.0100.03318.19
5.6.190.0070.08020.58
5.6.180.0330.06320.35
5.6.170.1600.04320.50
5.6.160.0070.07320.37
5.6.150.0100.07018.21
5.6.140.0170.06018.15
5.6.130.0070.08018.18
5.6.120.0000.05320.75
5.6.110.0100.06721.04
5.6.100.0030.08020.98
5.6.90.0070.07720.96
5.6.80.0030.04020.36
5.5.350.0170.06720.33
5.5.340.0100.07317.96
5.5.330.0170.07320.57
5.5.320.0400.05320.43
5.5.310.0230.08020.31
5.5.300.0070.08017.98
5.5.290.0100.07717.91
5.5.280.0000.06020.87
5.5.270.0030.09020.86
5.5.260.0030.04020.87
5.5.250.0170.06320.47
5.5.240.0300.06320.12
5.4.450.0900.05319.57
5.4.440.0930.05019.46
5.4.430.1030.05719.32
5.4.420.0670.00019.29
5.4.410.0870.00019.21
5.4.400.0630.00019.05
5.4.390.0700.00019.16
5.4.380.0630.00019.26
5.4.370.0630.00019.08
5.4.360.0600.00019.18
5.4.350.0630.00019.09
5.4.340.0050.03611.97
5.4.320.0070.03812.46
5.4.310.0060.04412.45
5.4.300.0060.03712.46
5.4.290.0050.04612.45
5.4.280.0060.04112.35
5.4.270.0090.03612.35
5.4.260.0060.03812.35
5.4.250.0050.03812.35
5.4.240.0070.03412.35
5.4.230.0050.03912.34
5.4.220.0040.04212.34
5.4.210.0040.03712.34
5.4.200.0050.04712.34
5.4.190.0050.04212.34
5.4.180.0100.03312.34
5.4.170.0040.03812.35
5.4.160.0070.03512.34
5.4.150.0060.03512.34
5.4.140.0050.03812.02
5.4.130.0030.03812.02
5.4.120.0070.03411.97
5.4.110.0040.03611.96
5.4.100.0060.03411.97
5.4.90.0020.04311.97
5.4.80.0070.03711.96
5.4.70.0060.03511.97
5.4.60.0050.03511.97
5.4.50.0060.03511.96
5.4.40.0040.03611.95
5.4.30.0070.03311.95
5.4.20.0060.03611.95
5.4.10.0050.03611.95
5.4.00.0050.03711.44
5.3.290.0060.03912.80
5.3.280.0050.03912.71
5.3.270.0080.03712.72
5.3.260.0030.04312.72
5.3.250.0070.03612.72
5.3.240.0040.03912.72
5.3.230.0050.03812.70
5.3.220.0110.03212.68
5.3.210.0080.04112.68
5.3.200.0050.03712.68
5.3.190.0070.03712.68
5.3.180.0110.03212.67
5.3.170.0060.03612.67
5.3.160.0050.03812.67
5.3.150.0040.03812.67
5.3.140.0070.03812.66
5.3.130.0060.03812.66
5.3.120.0060.04212.66
5.3.110.0090.03412.66
5.3.100.0090.03312.12
5.3.90.0060.03612.09
5.3.80.0050.03712.08
5.3.70.0060.03512.08
5.3.60.0050.03612.07
5.3.50.0080.04412.00
5.3.40.0070.03412.00
5.3.30.0040.03711.96
5.3.20.0070.03411.73
5.3.10.0030.03811.70
5.3.00.0040.03811.69
5.2.170.0060.0289.19
5.2.160.0040.0309.19
5.2.150.0070.0289.19
5.2.140.0060.0319.19
5.2.130.0060.0329.14
5.2.120.0040.0299.15
5.2.110.0030.0309.15
5.2.100.0050.0289.15
5.2.90.0030.0309.15
5.2.80.0040.0319.14
5.2.70.0070.0299.15
5.2.60.0060.0289.10
5.2.50.0030.0319.07
5.2.40.0050.0379.05
5.2.30.0040.0309.03
5.2.20.0030.0309.02
5.2.10.0050.0278.94
5.2.00.0050.0288.79
5.1.60.0060.0228.08
5.1.50.0020.0268.08
5.1.40.0020.0268.05
5.1.30.0040.0258.41
5.1.20.0040.0268.43
5.1.10.0030.0288.16
5.1.00.0030.0268.15
5.0.50.0010.0236.64
5.0.40.0030.0206.51
5.0.30.0060.0296.31
5.0.20.0020.0206.29
5.0.10.0070.0166.27
5.0.00.0080.0316.25
4.4.90.0000.0184.78
4.4.80.0050.0124.75
4.4.70.0030.0154.75
4.4.60.0040.0134.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0164.85
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0164.66
4.3.90.0030.0144.63
4.3.80.0040.0234.59
4.3.70.0010.0164.63
4.3.60.0040.0134.63
4.3.50.0020.0174.62
4.3.40.0040.0234.54
4.3.30.0040.0143.31
4.3.20.0020.0163.29
4.3.10.0020.0163.23
4.3.00.0170.0237.56

preferences:
45.98 ms | 401 KiB | 5 Q