3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "1SZ1@1"; $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.0150.00616.63
8.3.50.0100.01022.08
8.3.40.0090.00618.84
8.3.30.0130.00719.01
8.3.20.0000.00820.30
8.3.10.0040.00421.86
8.3.00.0040.00419.35
8.2.180.0000.01418.41
8.2.170.0110.00722.96
8.2.160.0080.00520.57
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0050.00322.54
8.2.110.0030.00622.42
8.2.100.0040.00817.97
8.2.90.0040.00419.12
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00618.15
8.2.30.0040.00418.13
8.2.20.0000.00817.87
8.2.10.0050.00318.13
8.2.00.0050.00317.87
8.1.280.0110.01125.92
8.1.270.0030.00622.14
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00623.84
8.1.230.0080.00422.21
8.1.220.0030.00517.77
8.1.210.0030.00618.77
8.1.200.0060.00317.38
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0030.00518.80
8.1.160.0040.00421.98
8.1.150.0000.00718.90
8.1.140.0040.00417.59
8.1.130.0000.00717.88
8.1.120.0000.00717.69
8.1.110.0070.00017.61
8.1.100.0030.00517.56
8.1.90.0040.00717.67
8.1.80.0040.00417.61
8.1.70.0040.00417.59
8.1.60.0030.00617.74
8.1.50.0000.00817.74
8.1.40.0000.00717.62
8.1.30.0030.00517.79
8.1.20.0030.00517.82
8.1.10.0040.00417.74
8.1.00.0000.00817.58
8.0.300.0050.00318.77
8.0.290.0040.00417.00
8.0.280.0070.00018.44
8.0.270.0040.00417.30
8.0.260.0060.00017.32
8.0.250.0000.00717.11
8.0.240.0040.00417.21
8.0.230.0030.00317.08
8.0.220.0070.00017.14
8.0.210.0000.00817.01
8.0.200.0030.00317.15
8.0.190.0040.00717.04
8.0.180.0030.00617.09
8.0.170.0000.00817.15
8.0.160.0000.00817.18
8.0.150.0000.00716.98
8.0.140.0040.00417.14
8.0.130.0030.00313.50
8.0.120.0000.00817.09
8.0.110.0040.00417.18
8.0.100.0040.00417.09
8.0.90.0050.00316.99
8.0.80.0100.00717.18
8.0.70.0070.00017.01
8.0.60.0000.00817.16
8.0.50.0040.00417.25
8.0.30.0110.00917.19
8.0.20.0130.00717.49
8.0.10.0030.00517.20
8.0.00.0100.00916.93
7.4.330.0000.00515.03
7.4.320.0030.00316.76
7.4.300.0000.00616.79
7.4.290.0000.00716.75
7.4.280.0040.00416.64
7.4.270.0000.00716.76
7.4.260.0000.00716.63
7.4.250.0070.00016.72
7.4.240.0030.00416.70
7.4.230.0000.00716.58
7.4.220.0090.00916.88
7.4.210.0120.00316.81
7.4.200.0040.00416.77
7.4.160.0100.00716.65
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0150.00516.75
7.4.120.0120.00616.68
7.4.110.0160.00716.72
7.4.100.0110.00716.68
7.4.90.0110.00616.80
7.4.80.0110.00719.39
7.4.70.0080.00816.73
7.4.60.0060.01216.76
7.4.50.0090.00016.64
7.4.40.0100.00616.62
7.4.30.0160.00016.66
7.4.00.0040.01315.05
7.3.330.0060.00013.40
7.3.320.0000.00613.34
7.3.310.0030.00316.57
7.3.300.0000.00716.41
7.3.290.0060.00816.50
7.3.280.0080.00916.48
7.3.270.0030.01417.40
7.3.260.0080.00816.57
7.3.250.0100.01016.45
7.3.240.0110.01216.48
7.3.230.0100.00716.58
7.3.210.0060.01016.78
7.3.200.0070.01019.39
7.3.190.0110.00516.76
7.3.180.0090.00616.68
7.3.170.0140.00316.50
7.3.160.0060.00916.41
7.3.120.0070.01014.80
7.3.110.0090.00914.68
7.3.100.0070.01115.00
7.3.90.0000.01314.84
7.3.80.0070.01115.12
7.3.70.0070.00714.94
7.3.60.0100.00714.96
7.3.50.0120.00414.59
7.3.40.0030.01314.60
7.3.30.0030.01414.97
7.3.20.0000.01516.75
7.3.10.0080.00816.38
7.3.00.0030.01216.85
7.2.330.0060.01216.79
7.2.320.0070.01016.83
7.2.310.0060.01017.09
7.2.300.0030.01316.66
7.2.290.0060.01516.89
7.2.250.0080.00815.22
7.2.240.0050.01014.80
7.2.230.0030.01315.03
7.2.220.0040.01315.01
7.2.210.0120.00415.17
7.2.200.0170.00015.16
7.2.190.0110.00415.32
7.2.180.0110.00515.19
7.2.170.0070.01015.04
7.2.160.0090.00615.20
7.2.150.0030.01017.12
7.2.140.0120.00017.11
7.2.130.0110.00717.07
7.2.120.0040.00917.05
7.2.110.0040.01217.00
7.2.100.0070.01017.17
7.2.90.0110.00416.76
7.2.80.0000.01316.90
7.2.70.0000.01616.95
7.2.60.0070.01416.89
7.2.50.0070.00716.73
7.2.40.0070.01116.80
7.2.30.0130.00517.20
7.2.20.0040.01217.04
7.2.10.0000.01216.96
7.2.00.0040.00816.79
7.1.330.0070.01116.03
7.1.320.0060.01115.57
7.1.310.0100.00715.88
7.1.300.0090.00615.87
7.1.290.0130.00315.75
7.1.280.0000.01615.74
7.1.270.0070.00715.64
7.1.260.0030.01315.51
7.1.250.0100.00615.93
7.1.240.0040.00416.08
7.1.230.0110.00415.83
7.1.220.0110.00415.49
7.1.210.0040.01115.46
7.1.200.0060.00915.86
7.1.190.0150.00315.56
7.1.180.0000.01115.92
7.1.170.0100.00715.47
7.1.160.0040.01115.92
7.1.150.0060.01015.97
7.1.140.0040.01115.76
7.1.130.0120.00015.70
7.1.120.0040.00715.79
7.1.110.0090.00615.80
7.1.100.0080.00815.82
7.1.90.0060.00916.02
7.1.80.0060.00615.73
7.1.70.0050.00716.60
7.1.60.0080.01017.36
7.1.50.0030.01516.58
7.1.40.0070.01016.00
7.1.30.0030.00715.50
7.1.20.0060.00315.95
7.1.10.0030.00915.86
7.1.00.0070.03819.11
7.0.330.0080.00715.24
7.0.320.0090.00615.23
7.0.310.0000.01915.42
7.0.300.0000.01015.43
7.0.290.0090.00615.29
7.0.280.0120.00315.62
7.0.270.0080.00415.15
7.0.260.0070.00715.62
7.0.250.0090.00615.50
7.0.240.0070.00715.56
7.0.230.0060.00615.09
7.0.220.0030.00915.41
7.0.210.0070.01015.52
7.0.200.0050.00516.26
7.0.190.0100.00715.36
7.0.180.0110.00315.52
7.0.170.0070.00315.54
7.0.160.0070.00415.48
7.0.150.0080.00415.31
7.0.140.0030.04218.76
7.0.130.0080.00415.59
7.0.120.0030.01315.29
7.0.110.0040.00815.45
7.0.100.0060.00915.44
7.0.90.0030.01015.53
7.0.80.0030.00915.72
7.0.70.0060.01015.33
7.0.60.0090.04217.83
7.0.50.0120.02716.80
7.0.40.0030.03116.96
7.0.30.0130.04916.89
7.0.20.0160.03016.93
7.0.10.0080.04916.86
7.0.00.0070.05016.84
5.6.400.0040.01114.09
5.6.390.0110.00714.33
5.6.380.0060.00814.17
5.6.370.0120.00314.06
5.6.360.0080.00414.44
5.6.350.0040.00814.12
5.6.340.0000.01514.30
5.6.330.0030.01014.18
5.6.320.0080.00414.13
5.6.310.0050.00514.16
5.6.300.0070.01014.19
5.6.290.0060.00914.15
5.6.280.0010.04317.67
5.6.270.0030.01014.39
5.6.260.0040.00714.47
5.6.250.0040.01114.09
5.6.240.0030.01014.02
5.6.230.0040.00714.17
5.6.220.0030.01014.08
5.6.210.0020.02717.61
5.6.200.0020.04816.20
5.6.190.0030.02917.53
5.6.180.0170.03517.55
5.6.170.0570.02517.18
5.6.160.0070.02717.54
5.6.150.0020.02816.11
5.6.140.0070.02716.30
5.6.130.0080.03816.22
5.6.120.0100.02317.71
5.6.110.0100.04417.66
5.6.100.0060.03117.71
5.6.90.0100.04117.47
5.6.80.0060.02117.43
5.6.70.0040.00914.09
5.6.60.0140.00414.11
5.6.50.0030.00714.16
5.6.40.0070.00714.26
5.6.30.0070.01014.18
5.6.20.0110.00414.43
5.6.10.0110.00414.32
5.6.00.0130.00314.23
5.5.380.0000.01214.50
5.5.370.0110.00414.19
5.5.360.0050.00314.41
5.5.350.0120.04117.37
5.5.340.0130.03815.95
5.5.330.0080.04017.46
5.5.320.0170.03017.35
5.5.310.0140.02417.29
5.5.300.0020.02416.17
5.5.290.0080.02016.11
5.5.280.0080.02917.49
5.5.270.0050.03917.16
5.5.260.0020.02917.50
5.5.250.0030.03217.36
5.5.240.0140.03417.16
5.5.230.0130.00014.20
5.5.220.0110.00813.80
5.5.210.0070.01014.02
5.5.200.0050.01413.80
5.5.190.0120.00414.25
5.5.180.0130.00914.09
5.5.170.0050.01813.99
5.5.160.0120.00914.01
5.5.150.0140.00614.24
5.5.140.0060.01214.24
5.5.130.0080.01414.02
5.5.120.0140.00714.06
5.5.110.0060.00914.05
5.5.100.0060.00614.20
5.5.90.0030.00614.04
5.5.80.0130.00314.27
5.5.70.0030.01013.92
5.5.60.0070.00313.80
5.5.50.0040.00814.29
5.5.40.0030.00714.16
5.5.30.0040.01214.31
5.5.20.0060.00313.97
5.5.10.0000.01314.20
5.5.00.0060.01014.00
5.4.450.0450.03216.40
5.4.440.0390.02616.55
5.4.430.0400.03016.60
5.4.420.0350.00416.58
5.4.410.0320.00516.50
5.4.400.0340.00316.33
5.4.390.0370.00216.29
5.4.380.0340.00416.36
5.4.370.0350.00116.35
5.4.360.0370.00116.32
5.4.350.0350.00416.36
5.4.340.0090.01912.81
5.4.330.0060.01013.66
5.4.320.0070.02213.06
5.4.310.0060.02613.05
5.4.300.0060.02513.06
5.4.290.0070.02313.05
5.4.280.0040.02413.00
5.4.270.0080.02213.00
5.4.260.0060.02213.00
5.4.250.0090.01913.00
5.4.240.0050.02513.00
5.4.230.0060.02113.00
5.4.220.0060.02213.00
5.4.210.0040.02013.00
5.4.200.0030.02413.00
5.4.190.0050.02113.00
5.4.180.0030.02613.00
5.4.170.0050.02113.00
5.4.160.0050.02013.00
5.4.150.0040.02113.00
5.4.140.0040.02312.84
5.4.130.0070.01712.84
5.4.120.0020.02112.81
5.4.110.0060.02012.81
5.4.100.0040.02312.81
5.4.90.0030.02312.81
5.4.80.0080.02212.81
5.4.70.0050.02212.81
5.4.60.0070.02112.81
5.4.50.0050.02012.81
5.4.40.0030.02212.80
5.4.30.0040.02112.80
5.4.20.0010.02512.80
5.4.10.0060.01912.80
5.4.00.0060.02112.55
5.3.290.0060.03912.80
5.3.280.0090.03312.71
5.3.270.0080.04612.72
5.3.260.0080.03712.72
5.3.250.0050.04212.72
5.3.240.0080.03412.72
5.3.230.0040.04012.71
5.3.220.0040.03812.68
5.3.210.0040.04012.68
5.3.200.0060.03612.68
5.3.190.0070.03612.68
5.3.180.0070.03512.68
5.3.170.0070.03412.67
5.3.160.0050.03612.67
5.3.150.0080.04112.67
5.3.140.0040.04112.66
5.3.130.0050.03912.66
5.3.120.0050.03912.66
5.3.110.0050.03912.66
5.3.100.0080.03412.11
5.3.90.0050.03712.08
5.3.80.0060.03912.07
5.3.70.0050.03712.07
5.3.60.0030.03812.06
5.3.50.0060.03512.00
5.3.40.0070.03612.00
5.3.30.0060.04211.95
5.3.20.0080.03311.74
5.3.10.0050.03511.70
5.3.00.0040.03711.69
5.2.170.0040.0319.19
5.2.160.0050.0309.19
5.2.150.0040.0319.19
5.2.140.0070.0289.19
5.2.130.0020.0309.15
5.2.120.0040.0299.14
5.2.110.0050.0299.16
5.2.100.0040.0289.15
5.2.90.0030.0309.14
5.2.80.0060.0289.14
5.2.70.0090.0259.14
5.2.60.0080.0269.11
5.2.50.0080.0269.07
5.2.40.0050.0299.05
5.2.30.0050.0299.03
5.2.20.0050.0289.02
5.2.10.0060.0268.94
5.2.00.0030.0298.80
5.1.60.0050.0228.08
5.1.50.0040.0258.07
5.1.40.0000.0288.05
5.1.30.0030.0268.41
5.1.20.0020.0288.43
5.1.10.0040.0288.16
5.1.00.0010.0288.16
5.0.50.0020.0236.64
5.0.40.0040.0216.51
5.0.30.0030.0316.31
5.0.20.0030.0236.28
5.0.10.0060.0246.27
5.0.00.0030.0356.25
4.4.90.0030.0154.78
4.4.80.0010.0194.76
4.4.70.0040.0154.75
4.4.60.0010.0204.76
4.4.50.0020.0174.77
4.4.40.0050.0234.71
4.4.30.0040.0144.76
4.4.20.0030.0154.84
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0010.0174.67
4.3.100.0030.0174.67
4.3.90.0010.0154.63
4.3.80.0000.0274.59
4.3.70.0020.0154.63
4.3.60.0030.0134.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0030.0153.30
4.3.20.0000.0183.29
4.3.10.0020.0163.23
4.3.00.0100.0237.48

preferences:
46.6 ms | 401 KiB | 5 Q