3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "A1@pa2Q"; $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]\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.0100.01016.75
8.3.50.0140.00521.38
8.3.40.0060.01218.82
8.3.30.0140.00019.01
8.3.20.0080.00020.25
8.3.10.0040.00423.58
8.3.00.0000.00819.50
8.2.180.0040.01116.88
8.2.170.0090.00622.96
8.2.160.0110.00420.37
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00019.63
8.2.110.0030.00622.43
8.2.100.0080.00417.88
8.2.90.0090.00019.23
8.2.80.0070.00317.97
8.2.70.0040.00417.75
8.2.60.0050.00517.93
8.2.50.0040.00718.07
8.2.40.0030.00619.82
8.2.30.0050.00318.13
8.2.20.0070.00017.78
8.2.10.0060.00318.23
8.2.00.0000.00817.86
8.1.280.0090.01225.92
8.1.270.0000.01022.31
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0080.00319.61
8.1.220.0080.00018.02
8.1.210.0040.00418.77
8.1.200.0070.00317.48
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0060.00318.71
8.1.160.0000.00822.13
8.1.150.0040.00418.91
8.1.140.0040.00417.59
8.1.130.0000.00717.82
8.1.120.0000.00817.65
8.1.110.0080.00017.69
8.1.100.0070.00017.60
8.1.90.0040.00417.70
8.1.80.0000.00717.50
8.1.70.0030.00317.49
8.1.60.0100.00017.80
8.1.50.0060.00317.60
8.1.40.0040.00417.72
8.1.30.0040.00417.86
8.1.20.0000.00717.77
8.1.10.0030.00617.71
8.1.00.0000.00717.66
8.0.300.0000.00718.77
8.0.290.0040.00417.13
8.0.280.0040.00418.50
8.0.270.0050.00217.18
8.0.260.0000.00617.42
8.0.250.0070.00017.18
8.0.240.0040.00417.09
8.0.230.0000.00817.09
8.0.220.0000.00717.03
8.0.210.0030.00317.18
8.0.200.0030.00317.07
8.0.190.0070.00317.20
8.0.180.0060.00317.16
8.0.170.0000.00817.21
8.0.160.0040.00417.05
8.0.150.0040.00317.03
8.0.140.0000.00717.09
8.0.130.0000.00613.52
8.0.120.0000.00817.08
8.0.110.0050.00317.04
8.0.100.0040.00417.24
8.0.90.0040.00417.20
8.0.80.0120.00417.20
8.0.70.0000.00817.08
8.0.60.0070.00017.20
8.0.50.0000.00716.98
8.0.30.0120.01017.29
8.0.20.0120.00717.40
8.0.10.0040.00417.14
8.0.00.0100.00716.97
7.4.330.0060.00015.02
7.4.320.0030.00316.77
7.4.300.0040.00416.83
7.4.290.0030.00316.75
7.4.280.0030.00516.75
7.4.270.0030.00316.69
7.4.260.0030.00516.84
7.4.250.0070.00016.71
7.4.240.0000.00716.83
7.4.230.0030.00316.79
7.4.220.0090.00916.77
7.4.210.0140.00416.89
7.4.200.0020.00516.76
7.4.160.0160.00016.84
7.4.150.0090.00917.40
7.4.140.0150.00417.86
7.4.130.0120.00916.71
7.4.120.0090.01116.57
7.4.110.0100.00716.76
7.4.100.0100.00716.82
7.4.90.0120.00816.79
7.4.80.0070.01019.39
7.4.70.0070.01016.78
7.4.60.0110.00716.61
7.4.50.0080.00016.49
7.4.40.0100.00716.66
7.4.30.0100.00616.77
7.4.10.0030.01515.17
7.4.00.0080.01015.09
7.3.330.0000.00513.23
7.3.320.0030.00313.29
7.3.310.0030.00316.58
7.3.300.0030.00316.47
7.3.290.0100.00416.53
7.3.280.0100.00716.54
7.3.270.0090.00917.40
7.3.260.0180.00616.75
7.3.250.0140.00916.55
7.3.240.0100.01116.74
7.3.230.0070.01116.71
7.3.210.0060.01016.79
7.3.200.0070.01419.39
7.3.190.0060.01216.73
7.3.180.0120.00316.33
7.3.170.0060.01016.79
7.3.160.0080.00816.63
7.3.130.0070.01014.84
7.3.120.0040.01014.94
7.3.110.0140.00315.01
7.3.100.0060.00914.94
7.3.90.0070.00715.25
7.3.80.0030.00615.23
7.3.70.0100.00714.93
7.3.60.0120.00915.17
7.3.50.0030.01715.07
7.3.40.0030.01015.12
7.3.30.0060.00315.03
7.3.20.0000.01816.59
7.3.10.0100.00716.68
7.3.00.0030.00516.63
7.2.330.0060.01116.82
7.2.320.0110.01116.96
7.2.310.0080.01116.93
7.2.300.0070.01016.62
7.2.290.0090.01216.88
7.2.260.0120.00615.32
7.2.250.0170.00315.19
7.2.240.0040.01215.27
7.2.230.0080.00315.23
7.2.220.0070.01015.14
7.2.210.0030.00915.29
7.2.200.0030.01315.05
7.2.190.0030.01715.02
7.2.180.0030.01014.82
7.2.170.0030.01014.86
7.2.160.0030.00915.29
7.2.150.0030.01417.15
7.2.140.0130.00017.00
7.2.130.0040.00717.15
7.2.120.0070.00716.80
7.2.110.0120.00317.14
7.2.100.0040.01117.14
7.2.90.0070.00717.00
7.2.80.0000.01317.27
7.2.70.0000.01517.21
7.2.60.0000.01117.16
7.2.50.0060.00317.11
7.2.40.0080.00517.13
7.2.30.0060.00617.18
7.2.20.0070.00717.05
7.2.10.0120.00316.99
7.2.00.0030.01118.41
7.1.330.0080.00415.83
7.1.320.0060.00615.62
7.1.310.0000.00915.96
7.1.300.0070.01115.64
7.1.290.0020.01316.05
7.1.280.0060.00616.05
7.1.270.0120.00315.82
7.1.260.0080.00415.95
7.1.250.0050.00516.12
7.1.240.0060.00615.91
7.1.230.0120.00015.89
7.1.220.0090.00315.82
7.1.210.0040.00715.92
7.1.200.0070.00616.05
7.1.190.0090.00016.09
7.1.180.0030.01016.06
7.1.170.0000.01315.98
7.1.160.0080.00415.85
7.1.150.0060.00616.09
7.1.140.0060.00915.74
7.1.130.0080.00615.83
7.1.120.0030.01015.96
7.1.110.0030.01215.90
7.1.100.0040.00417.25
7.1.90.0060.00615.91
7.1.80.0040.00416.07
7.1.70.0070.00116.63
7.1.60.0060.01417.52
7.1.50.0100.01016.63
7.1.40.0090.00616.03
7.1.30.0040.01115.80
7.1.20.0070.00715.97
7.1.10.0070.00415.93
7.1.00.0080.04319.11
7.0.330.0040.01115.49
7.0.320.0100.00315.41
7.0.310.0060.01015.70
7.0.300.0030.00915.55
7.0.290.0060.00315.27
7.0.280.0070.00715.58
7.0.270.0030.00815.57
7.0.260.0000.01315.61
7.0.250.0000.00815.41
7.0.240.0050.00315.67
7.0.230.0030.01015.39
7.0.220.0040.00415.75
7.0.210.0000.01315.77
7.0.200.0030.00916.22
7.0.190.0070.00715.76
7.0.180.0000.01315.35
7.0.170.0030.00915.52
7.0.160.0110.00415.78
7.0.150.0070.00315.68
7.0.140.0070.04018.76
7.0.130.0060.00915.45
7.0.120.0060.00915.71
7.0.110.0060.00615.70
7.0.100.0140.00015.78
7.0.90.0030.00715.28
7.0.80.0100.00715.19
7.0.70.0060.00615.29
7.0.60.0060.03217.55
7.0.50.0000.02916.76
7.0.40.0130.03716.90
7.0.30.0200.04516.88
7.0.20.0150.04116.85
7.0.10.0080.04716.99
7.0.00.0010.02916.88
5.6.400.0030.00614.57
5.6.390.0030.00914.66
5.6.380.0060.00614.17
5.6.370.0030.00614.33
5.6.360.0030.01414.02
5.6.350.0040.00814.28
5.6.340.0030.01014.51
5.6.330.0100.00014.36
5.6.320.0070.00714.62
5.6.310.0030.00914.50
5.6.300.0030.01314.45
5.6.290.0070.00714.62
5.6.280.0020.04317.84
5.6.270.0030.01014.58
5.6.260.0130.00314.42
5.6.250.0120.00314.30
5.6.240.0100.00314.23
5.6.230.0070.00714.38
5.6.220.0000.01214.50
5.6.210.0100.04217.54
5.6.200.0040.02216.26
5.6.190.0040.04817.54
5.6.180.0180.03017.57
5.6.170.0820.02817.52
5.6.160.0100.04017.32
5.6.150.0100.03716.24
5.6.140.0030.02416.39
5.6.130.0120.03716.24
5.6.120.0030.02617.75
5.6.110.0070.04717.66
5.6.100.0070.04517.77
5.6.90.0070.04517.62
5.6.80.0040.03817.50
5.6.70.0040.01414.27
5.6.60.0040.00814.36
5.6.50.0040.01114.11
5.6.40.0030.01014.34
5.6.30.0030.00614.56
5.6.20.0070.00314.48
5.6.10.0070.00714.24
5.6.00.0090.00314.46
5.5.380.0070.00714.49
5.5.370.0090.00314.39
5.5.360.0100.00314.34
5.5.350.0070.02017.12
5.5.340.0100.03815.97
5.5.330.0050.02917.15
5.5.320.0200.02817.19
5.5.310.0210.03817.16
5.5.300.0030.04215.91
5.5.290.0080.02616.17
5.5.280.0110.04217.59
5.5.270.0050.03017.63
5.5.260.0120.04317.64
5.5.250.0050.03717.39
5.5.240.0130.04417.29
5.5.230.0070.01014.23
5.5.220.0050.00314.41
5.5.210.0090.00614.05
5.5.200.0100.00014.30
5.5.190.0000.01314.38
5.5.180.0060.00614.13
5.5.170.0070.00314.09
5.5.160.0030.00614.24
5.5.150.0100.00714.07
5.5.140.0030.01314.47
5.5.130.0090.00314.44
5.5.120.0030.00714.27
5.5.110.0000.01114.15
5.5.100.0030.01314.23
5.5.90.0030.01014.18
5.5.80.0040.00714.34
5.5.70.0040.00714.41
5.5.60.0090.00313.92
5.5.50.0030.01214.16
5.5.40.0060.00614.05
5.5.30.0070.00714.53
5.5.20.0060.00614.15
5.5.10.0110.00314.05
5.5.00.0040.00714.16
5.4.450.0440.03215.10
5.4.440.0450.02815.34
5.4.430.0050.03515.18
5.4.420.0350.00315.25
5.4.410.0340.00315.15
5.4.400.0320.00615.06
5.4.390.0320.00515.12
5.4.380.0330.00415.07
5.4.370.0350.00215.22
5.4.360.0320.00315.04
5.4.350.0340.00115.13
5.4.340.0050.02511.57
5.4.330.0000.00811.19
5.4.320.0070.02311.77
5.4.310.0040.02911.77
5.4.300.0070.02211.86
5.4.290.0040.02811.83
5.4.280.0050.02711.74
5.4.270.0110.02411.72
5.4.260.0050.02511.76
5.4.250.0080.02211.72
5.4.240.0040.02311.72
5.4.230.0020.02611.72
5.4.220.0020.02511.71
5.4.210.0080.01911.82
5.4.200.0060.02011.73
5.4.190.0060.02111.71
5.4.180.0050.02511.71
5.4.170.0080.02311.72
5.4.160.0030.02811.79
5.4.150.0050.02311.71
5.4.140.0050.02411.55
5.4.130.0070.02011.56
5.4.120.0050.02311.53
5.4.110.0070.01811.53
5.4.100.0090.02511.53
5.4.90.0050.02911.53
5.4.80.0050.02911.53
5.4.70.0030.02811.54
5.4.60.0050.02911.53
5.4.50.0120.01911.52
5.4.40.0020.02811.52
5.4.30.0090.01811.52
5.4.20.0080.01811.52
5.4.10.0050.01911.54
5.4.00.0050.02011.26
5.3.290.0090.03712.80
5.3.280.0060.03812.70
5.3.270.0080.03712.72
5.3.260.0070.03812.72
5.3.250.0070.03712.72
5.3.240.0050.03912.72
5.3.230.0090.03512.71
5.3.220.0090.04012.68
5.3.210.0070.03812.68
5.3.200.0060.04312.68
5.3.190.0110.03512.68
5.3.180.0060.04112.67
5.3.170.0040.03812.67
5.3.160.0040.03812.67
5.3.150.0070.03712.67
5.3.140.0050.03812.66
5.3.130.0100.04012.66
5.3.120.0080.03612.66
5.3.110.0070.03812.65
5.3.100.0020.04112.12
5.3.90.0060.03812.08
5.3.80.0070.03512.07
5.3.70.0050.03712.08
5.3.60.0090.03312.07
5.3.50.0110.03312.00
5.3.40.0090.03512.00
5.3.30.0050.03711.96
5.3.20.0050.03711.75
5.3.10.0060.03611.70
5.3.00.0070.04311.69
5.2.170.0050.0339.18
5.2.160.0040.0309.19
5.2.150.0030.0329.19
5.2.140.0060.0339.18
5.2.130.0020.0319.15
5.2.120.0060.0279.14
5.2.110.0030.0309.15
5.2.100.0070.0269.15
5.2.90.0090.0259.15
5.2.80.0030.0339.14
5.2.70.0060.0299.15
5.2.60.0060.0309.10
5.2.50.0030.0319.07
5.2.40.0080.0259.05
5.2.30.0040.0309.02
5.2.20.0040.0289.02
5.2.10.0060.0278.94
5.2.00.0030.0318.79
5.1.60.0040.0268.08
5.1.50.0010.0308.07
5.1.40.0060.0228.05
5.1.30.0060.0248.41
5.1.20.0040.0268.43
5.1.10.0000.0308.16
5.1.00.0040.0258.15
5.0.50.0050.0196.64
5.0.40.0050.0176.50
5.0.30.0040.0306.32
5.0.20.0020.0206.28
5.0.10.0010.0226.27
5.0.00.0050.0296.25
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0194.76
4.4.60.0040.0144.76
4.4.50.0030.0154.77
4.4.40.0020.0304.71
4.4.30.0040.0164.76
4.4.20.0040.0234.84
4.4.10.0020.0164.84
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0204.66
4.3.90.0040.0154.63
4.3.80.0000.0344.58
4.3.70.0020.0224.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0244.54
4.3.30.0000.0183.30
4.3.20.0010.0173.28
4.3.10.0030.0143.23
4.3.00.0030.0277.55

preferences:
39.66 ms | 401 KiB | 5 Q