3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "1p1Z_1"; $letterStart = preg_match("/^[A-Za-z]/", $pswd); // start with a letter $specialChar= preg_match("/(?=.*[!@#&*%]+)/", $pswd); // at least one $numberChar= preg_match("/(?=.*\d{2,})/", $pswd); //two or more digits $upperChar= preg_match("/(?=.*[A-Z]\w[^_]{2,})/", $pswd); //two or more upper case letters $lowerChar= preg_match("/(?=.*[a-z]\w[^_]{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.0130.00617.00
8.3.50.0060.01422.26
8.3.40.0100.00518.92
8.3.30.0070.01018.92
8.3.20.0070.00020.16
8.3.10.0040.00421.94
8.3.00.0050.00319.19
8.2.180.0100.01016.50
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00922.31
8.2.110.0030.00621.15
8.2.100.0090.00317.88
8.2.90.0030.00519.27
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0000.00819.97
8.2.30.0000.00718.02
8.2.20.0000.00917.97
8.2.10.0040.00418.08
8.2.00.0000.01018.05
8.1.280.0070.00725.92
8.1.270.0080.00022.31
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0070.00417.48
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.01017.47
8.1.190.0080.00017.60
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00821.99
8.1.150.0050.00218.89
8.1.140.0040.00417.51
8.1.130.0030.00317.87
8.1.120.0000.00817.58
8.1.110.0040.00417.58
8.1.100.0050.00217.64
8.1.90.0070.00317.64
8.1.80.0070.00017.62
8.1.70.0000.00717.67
8.1.60.0030.00517.75
8.1.50.0080.00017.68
8.1.40.0000.00817.75
8.1.30.0060.00317.79
8.1.20.0000.00817.80
8.1.10.0040.00417.68
8.1.00.0040.00417.50
8.0.300.0080.00018.77
8.0.290.0040.00417.00
8.0.280.0030.00318.55
8.0.270.0000.00717.31
8.0.260.0060.00017.32
8.0.250.0000.00717.09
8.0.240.0000.00617.27
8.0.230.0040.00417.15
8.0.220.0000.00717.14
8.0.210.0040.00417.08
8.0.200.0030.00317.25
8.0.190.0040.00817.16
8.0.180.0000.00717.15
8.0.170.0050.00317.09
8.0.160.0080.00017.16
8.0.150.0070.00017.05
8.0.140.0040.00416.99
8.0.130.0000.00613.64
8.0.120.0000.00816.96
8.0.110.0040.00417.21
8.0.100.0070.00017.07
8.0.90.0040.00417.04
8.0.80.0070.01017.08
8.0.70.0050.00217.04
8.0.60.0000.00717.21
8.0.50.0070.00016.96
8.0.30.0150.00717.35
8.0.20.0110.00817.43
8.0.10.0040.00417.18
8.0.00.0070.01017.01
7.4.330.0000.00515.17
7.4.320.0030.00316.85
7.4.300.0050.00216.84
7.4.290.0080.00016.84
7.4.280.0000.00816.84
7.4.270.0000.00716.68
7.4.260.0000.00716.73
7.4.250.0000.00716.74
7.4.240.0040.00316.76
7.4.230.0000.00716.68
7.4.220.0030.01416.86
7.4.210.0060.00916.63
7.4.200.0000.00716.67
7.4.160.0060.00916.72
7.4.150.0190.00617.40
7.4.140.0070.01717.86
7.4.130.0120.00816.77
7.4.120.0100.00916.73
7.4.110.0190.00416.79
7.4.100.0090.01216.59
7.4.90.0090.00816.45
7.4.80.0090.01219.39
7.4.70.0150.00316.54
7.4.60.0090.00916.75
7.4.50.0040.00416.71
7.4.40.0130.00316.64
7.4.30.0160.00316.75
7.4.00.0100.00515.22
7.3.330.0000.00513.25
7.3.320.0050.00013.40
7.3.310.0080.00016.58
7.3.300.0050.00216.52
7.3.290.0130.00516.49
7.3.280.0060.01116.51
7.3.270.0120.00617.40
7.3.260.0090.00916.44
7.3.250.0120.00616.63
7.3.240.0130.00616.66
7.3.230.0190.00316.50
7.3.210.0070.01016.66
7.3.200.0160.00619.39
7.3.190.0100.00716.41
7.3.180.0090.00616.47
7.3.170.0040.01216.38
7.3.160.0080.00816.66
7.3.120.0100.00614.81
7.3.110.0070.00914.91
7.3.100.0050.00915.10
7.3.90.0120.00014.89
7.3.80.0080.00614.90
7.3.70.0050.00915.09
7.3.60.0020.01215.01
7.3.50.0110.00215.10
7.3.40.0050.00814.98
7.3.30.0060.00514.89
7.3.20.0030.01016.90
7.3.10.0070.00616.82
7.3.00.0080.00616.91
7.2.330.0070.01016.89
7.2.320.0050.01616.61
7.2.310.0120.01316.80
7.2.300.0100.00616.86
7.2.290.0130.01016.80
7.2.250.0120.00615.10
7.2.240.0050.00715.37
7.2.230.0080.00615.21
7.2.220.0080.00815.35
7.2.210.0060.00815.28
7.2.200.0050.00515.28
7.2.190.0080.00615.17
7.2.180.0010.01115.23
7.2.170.0040.01015.36
7.2.160.0060.00615.27
7.2.150.0000.01317.09
7.2.140.0000.01317.01
7.2.130.0050.00817.06
7.2.120.0050.00817.05
7.2.110.0030.01216.99
7.2.100.0080.00817.10
7.2.90.0080.00816.79
7.2.80.0040.00916.93
7.2.70.0050.01017.01
7.2.60.0080.00917.18
7.2.50.0070.00717.03
7.2.40.0030.00716.98
7.2.30.0030.01017.23
7.2.20.0020.01117.06
7.2.10.0030.01017.11
7.2.00.0050.01017.06
7.1.330.0030.00815.93
7.1.320.0050.00816.09
7.1.310.0050.00716.13
7.1.300.0070.00515.83
7.1.290.0070.00515.89
7.1.280.0070.00715.90
7.1.270.0020.00915.93
7.1.260.0040.00915.81
7.1.250.0070.00515.92
7.1.200.0000.01315.93
7.1.70.0050.00217.50
7.1.60.0070.01819.11
7.1.50.0040.01817.21
7.1.00.0030.07722.32
7.0.200.0040.01416.68
7.0.140.0030.07322.01
7.0.60.0070.09720.10
7.0.50.0070.05317.93
7.0.40.0130.05020.08
7.0.30.0270.06020.21
7.0.20.0270.07720.18
7.0.10.0070.06020.21
7.0.00.0030.04320.04
5.6.280.0130.06321.10
5.6.210.0070.08020.47
5.6.200.0070.08318.15
5.6.190.0070.04320.32
5.6.180.0230.08320.62
5.6.170.0230.04020.48
5.6.160.0030.08020.49
5.6.150.0030.04318.22
5.6.140.0000.05318.11
5.6.130.0030.06718.11
5.6.120.0100.08320.98
5.6.110.0130.06720.98
5.6.100.0070.08021.07
5.6.90.0100.06721.11
5.6.80.0000.05320.49
5.5.350.3470.05020.43
5.5.340.0130.07717.96
5.5.330.0130.06320.43
5.5.320.0230.06020.24
5.5.310.0230.05720.13
5.5.300.0130.08018.02
5.5.290.0100.05017.95
5.5.280.0100.08020.96
5.5.270.0130.08020.77
5.5.260.0070.07720.84
5.5.250.0030.07720.68
5.5.240.0130.08020.15
5.4.450.0800.06319.44
5.4.440.0830.05719.24
5.4.430.0130.05319.46
5.4.420.0670.00019.35
5.4.410.0630.00019.34
5.4.400.0600.00018.86
5.4.390.0600.00018.96
5.4.380.0630.00018.94
5.4.370.0600.00018.99
5.4.360.0600.00019.08
5.4.350.0630.00019.16
5.4.340.0040.03811.97
5.4.320.0070.03512.45
5.4.310.0030.04012.45
5.4.300.0060.03612.46
5.4.290.0050.03812.45
5.4.280.0030.03712.35
5.4.270.0040.03712.35
5.4.260.0050.04012.35
5.4.250.0060.04512.35
5.4.240.0040.03612.35
5.4.230.0050.03812.34
5.4.220.0040.03812.34
5.4.210.0070.03912.34
5.4.200.0030.04012.34
5.4.190.0040.03812.34
5.4.180.0110.03412.34
5.4.170.0050.04112.35
5.4.160.0090.04712.34
5.4.150.0070.03712.34
5.4.140.0050.03912.02
5.4.130.0040.04012.01
5.4.120.0080.03711.97
5.4.110.0090.04711.97
5.4.100.0070.03611.96
5.4.90.0060.03611.97
5.4.80.0060.04011.96
5.4.70.0090.04311.96
5.4.60.0090.03211.96
5.4.50.0080.03211.96
5.4.40.0080.03911.95
5.4.30.0030.03711.95
5.4.20.0040.03611.95
5.4.10.0070.03311.95
5.4.00.0050.03611.44
5.3.290.0080.04212.80
5.3.280.0080.03412.71
5.3.270.0040.04012.72
5.3.260.0050.03912.72
5.3.250.0060.03712.72
5.3.240.0040.04312.72
5.3.230.0070.03612.71
5.3.220.0050.03612.68
5.3.210.0050.04012.68
5.3.200.0050.03712.68
5.3.190.0060.03712.68
5.3.180.0030.03812.67
5.3.170.0060.03512.66
5.3.160.0060.03612.67
5.3.150.0100.03212.67
5.3.140.0060.03512.66
5.3.130.0040.04412.66
5.3.120.0040.04012.66
5.3.110.0060.03812.66
5.3.100.0050.03712.12
5.3.90.0090.03312.08
5.3.80.0040.03712.07
5.3.70.0040.03812.07
5.3.60.0050.03712.07
5.3.50.0040.04112.00
5.3.40.0060.03912.00
5.3.30.0060.03911.96
5.3.20.0010.04311.73
5.3.10.0020.03811.70
5.3.00.0090.04011.69
5.2.170.0040.0319.19
5.2.160.0040.0319.19
5.2.150.0070.0299.19
5.2.140.0040.0339.19
5.2.130.0050.0329.14
5.2.120.0030.0329.14
5.2.110.0060.0279.15
5.2.100.0040.0349.15
5.2.90.0030.0309.15
5.2.80.0050.0309.15
5.2.70.0060.0289.14
5.2.60.0020.0329.10
5.2.50.0070.0279.07
5.2.40.0060.0279.05
5.2.30.0060.0289.03
5.2.20.0010.0329.02
5.2.10.0030.0308.93
5.2.00.0060.0278.79
5.1.60.0020.0268.08
5.1.50.0070.0248.07
5.1.40.0070.0228.06
5.1.30.0040.0268.41
5.1.20.0030.0288.43
5.1.10.0020.0288.15
5.1.00.0070.0238.16
5.0.50.0040.0206.64
5.0.40.0020.0216.51
5.0.30.0020.0336.31
5.0.20.0020.0206.29
5.0.10.0020.0216.26
5.0.00.0050.0316.25
4.4.90.0060.0134.78
4.4.80.0030.0154.75
4.4.70.0040.0144.76
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0020.0294.71
4.4.30.0060.0124.75
4.4.20.0000.0184.84
4.4.10.0020.0164.85
4.4.00.0030.0294.76
4.3.110.0040.0154.67
4.3.100.0030.0144.66
4.3.90.0040.0134.63
4.3.80.0010.0254.58
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0050.0194.63
4.3.40.0030.0284.53
4.3.30.0030.0153.30
4.3.20.0010.0173.29
4.3.10.0030.0203.23
4.3.00.0070.0277.48

preferences:
56.15 ms | 401 KiB | 5 Q