3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "Ap"; $specialChar= preg_match("/(?=.*[!@#&*%]+)/", $pswd); // at least one $numberChar= preg_match("/(?=.*\d{2,})/", $pswd); //two or more digits $upperChar= preg_match("/(?=.*[A-Z]){2,})/", $pswd); //two or more upper case letters $lowerChar= preg_match("/(?=.*[a-z]{2,})/", $pswd); //two or more lower case letters $pswdLength = preg_match("/(?=^.{6,20}$)/", $pswd); //length of pswd between min and max echo $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.0090.00918.68
8.3.50.0200.00221.20
8.3.40.0150.00018.92
8.3.30.0150.00318.90
8.3.20.0070.00020.34
8.3.10.0150.00321.72
8.3.00.0040.00419.38
8.2.180.0110.00316.50
8.2.170.0140.00722.96
8.2.160.0120.00620.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.30
8.2.110.0000.01022.38
8.2.100.0040.00817.75
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00017.88
8.2.60.0030.00617.92
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0040.00418.04
8.2.20.0090.00017.88
8.2.10.0040.00418.05
8.2.00.0080.00017.95
8.1.280.0040.01125.92
8.1.270.0050.00522.19
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.80
8.1.230.0040.00719.01
8.1.220.0050.00317.80
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0070.00021.95
8.1.150.0040.00418.89
8.1.140.0040.00417.52
8.1.130.0070.00017.87
8.1.120.0000.00717.51
8.1.110.0000.00817.61
8.1.100.0070.00017.67
8.1.90.0020.00517.61
8.1.80.0000.00717.50
8.1.70.0030.00317.50
8.1.60.0080.00017.71
8.1.50.0030.00517.70
8.1.40.0040.00417.69
8.1.30.0030.00617.63
8.1.20.0000.00817.83
8.1.10.0020.00517.63
8.1.00.0000.00817.58
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.51
8.0.270.0000.00717.18
8.0.260.0000.00617.32
8.0.250.0040.00417.17
8.0.240.0060.00017.20
8.0.230.0000.00717.07
8.0.220.0030.00317.00
8.0.210.0000.00717.12
8.0.200.0050.00217.20
8.0.190.0110.00017.20
8.0.180.0040.00417.08
8.0.170.0000.00817.16
8.0.160.0060.00317.08
8.0.150.0000.00717.02
8.0.140.0040.00416.98
8.0.130.0000.00513.54
8.0.120.0040.00416.97
8.0.110.0000.00717.01
8.0.100.0040.00417.21
8.0.90.0000.00716.88
8.0.80.0070.01017.05
8.0.70.0040.00417.14
8.0.60.0000.00717.14
8.0.50.0000.00717.14
8.0.30.0090.01117.13
8.0.20.0080.01117.40
8.0.10.0040.00417.16
8.0.00.0140.00616.93
7.4.330.0020.00215.00
7.4.320.0000.00616.83
7.4.300.0000.00616.72
7.4.290.0070.00016.82
7.4.280.0040.00416.75
7.4.270.0000.00716.67
7.4.260.0000.00716.71
7.4.250.0080.00016.76
7.4.240.0020.00616.75
7.4.230.0000.00716.55
7.4.220.0000.01716.68
7.4.210.0060.01316.63
7.4.200.0000.00716.68
7.4.160.0080.00816.61
7.4.150.0100.01017.40
7.4.140.0120.01017.86
7.4.130.0090.01116.68
7.4.120.0050.01316.71
7.4.110.0120.00616.71
7.4.100.0030.01416.64
7.4.90.0070.01016.60
7.4.80.0070.01419.39
7.4.70.0060.01016.85
7.4.60.0070.01116.67
7.4.50.0030.00316.49
7.4.40.0110.00616.75
7.4.30.0030.01416.61
7.4.10.0090.00915.20
7.4.00.0040.01115.15
7.3.330.0030.00313.31
7.3.320.0000.00513.45
7.3.310.0050.00316.62
7.3.300.0030.00316.37
7.3.290.0050.01116.51
7.3.280.0070.00816.51
7.3.270.0030.01617.40
7.3.260.0070.01016.70
7.3.250.0110.00816.46
7.3.240.0120.00616.67
7.3.230.0140.00616.75
7.3.210.0110.00716.55
7.3.200.0060.01319.39
7.3.190.0100.01016.66
7.3.180.0100.00616.37
7.3.170.0120.00916.63
7.3.160.0030.01816.56
7.3.130.0160.00315.02
7.3.120.0070.01015.09
7.3.110.0030.01415.14
7.3.100.0060.00814.97
7.3.90.0080.01015.10
7.3.80.0050.00915.11
7.3.70.0050.01115.08
7.3.60.0050.01014.91
7.3.50.0030.00914.83
7.3.40.0120.00214.91
7.3.30.0040.00815.00
7.3.20.0060.00816.95
7.3.10.0040.00716.86
7.3.00.0050.00516.89
7.2.330.0040.01816.65
7.2.320.0050.01216.89
7.2.310.0080.00816.74
7.2.300.0040.01216.74
7.2.290.0170.00716.76
7.2.260.0060.01315.18
7.2.250.0090.00615.11
7.2.240.0030.01415.22
7.2.230.0080.00715.17
7.2.220.0060.01115.26
7.2.210.0020.01115.12
7.2.200.0030.00915.23
7.2.190.0070.00715.14
7.2.180.0050.01115.28
7.2.170.0060.00815.17
7.2.160.0070.00314.98
7.2.150.0030.01017.28
7.2.140.0040.00817.12
7.2.130.0030.01016.90
7.2.120.0030.00917.13
7.2.110.0040.01116.83
7.2.100.0040.01517.19
7.2.90.0000.01217.24
7.2.80.0120.00316.82
7.2.70.0080.00417.14
7.2.60.0030.00617.15
7.2.50.0100.00017.02
7.2.40.0120.00617.03
7.2.30.0070.00317.11
7.2.20.0040.01117.04
7.2.10.0020.01017.06
7.2.00.0070.00818.46
7.1.330.0050.01015.97
7.1.320.0050.00716.01
7.1.310.0070.00915.96
7.1.300.0060.00715.90
7.1.290.0040.00715.89
7.1.280.0100.00616.07
7.1.270.0050.00915.88
7.1.260.0060.00315.86
7.1.250.0070.00715.89
7.1.240.0060.00615.74
7.1.230.0040.01415.65
7.1.220.0080.00015.98
7.1.210.0070.00715.80
7.1.200.0070.00316.00
7.1.190.0000.00816.01
7.1.180.0030.01016.07
7.1.170.0040.00415.93
7.1.160.0060.00315.97
7.1.150.0000.01315.94
7.1.140.0000.01215.92
7.1.130.0090.00316.00
7.1.120.0040.01115.78
7.1.110.0070.00316.03
7.1.100.0030.00817.24
7.1.90.0040.01115.74
7.1.80.0000.01516.16
7.1.70.0030.01116.65
7.1.60.0120.00517.60
7.1.50.0050.01516.54
7.1.40.0120.00315.91
7.1.30.0070.00716.03
7.1.20.0000.00815.70
7.1.10.0030.01015.97
7.1.00.0090.03519.07
7.0.330.0090.00015.62
7.0.320.0000.01215.42
7.0.310.0030.00515.21
7.0.300.0060.00315.39
7.0.290.0030.01015.58
7.0.280.0040.00815.49
7.0.270.0070.00715.64
7.0.260.0060.00615.57
7.0.250.0070.00715.46
7.0.240.0000.01315.60
7.0.230.0070.00715.63
7.0.220.0070.00715.33
7.0.210.0030.01015.67
7.0.200.0000.01216.26
7.0.190.0000.00915.48
7.0.180.0040.01115.55
7.0.170.0030.01015.68
7.0.160.0090.00015.43
7.0.150.0000.00815.50
7.0.140.0070.04018.91
7.0.130.0000.00915.69
7.0.120.0030.00615.38
7.0.110.0080.00415.29
7.0.100.0060.00615.59
7.0.90.0090.00315.25
7.0.80.0030.01015.11
7.0.70.0040.00815.25
7.0.60.0050.04517.82
7.0.50.0050.02516.75
7.0.40.0130.04216.81
7.0.30.0150.03617.01
7.0.20.0150.04216.88
7.0.10.0080.02216.77
7.0.00.0060.02816.85
5.6.400.0000.01314.36
5.6.390.0070.00714.46
5.6.380.0060.00914.48
5.6.370.0040.00814.14
5.6.360.0070.00714.32
5.6.350.0000.01114.16
5.6.340.0030.01014.34
5.6.330.0040.00814.40
5.6.320.0000.01014.61
5.6.310.0060.00614.45
5.6.300.0060.00613.95
5.6.290.0070.00813.98
5.6.280.0030.03817.51
5.6.270.0060.00914.48
5.6.260.0040.00414.21
5.6.250.0000.00914.51
5.6.240.0060.00314.25
5.6.230.0090.00614.43
5.6.220.0030.00914.39
5.6.210.0080.04017.42
5.6.200.0030.02816.10
5.6.190.0050.04917.33
5.6.180.0180.02017.42
5.6.170.0660.01917.56
5.6.160.0080.03517.36
5.6.150.0030.05016.32
5.6.140.0070.02416.24
5.6.130.0090.03816.24
5.6.120.0070.02517.46
5.6.110.0050.03317.68
5.6.100.0030.03317.56
5.6.90.0060.04717.74
5.6.80.0080.03017.37
5.6.70.0000.01614.07
5.6.60.0040.00714.42
5.6.50.0050.00514.02
5.6.40.0100.00714.12
5.6.30.0040.00414.21
5.6.20.0030.01114.22
5.6.10.0040.01114.37
5.6.00.0040.01114.40
5.5.380.0070.00714.03
5.5.370.0050.00514.37
5.5.360.0040.00714.56
5.5.350.0100.02617.17
5.5.340.0050.04816.02
5.5.330.0120.04217.20
5.5.320.0170.03517.10
5.5.310.0120.02917.30
5.5.300.0030.02516.15
5.5.290.0070.02216.20
5.5.280.0120.03817.55
5.5.270.0030.03417.29
5.5.260.0030.04117.39
5.5.250.0030.04617.48
5.5.240.0120.04917.18
5.5.230.0040.01214.30
5.5.220.0000.01414.21
5.5.210.0060.00614.28
5.5.200.0030.01013.98
5.5.190.0060.00314.41
5.5.180.0040.00814.43
5.5.170.0070.00714.48
5.5.160.0000.01314.36
5.5.150.0110.00014.32
5.5.140.0080.00814.01
5.5.130.0030.01414.01
5.5.120.0030.01014.19
5.5.110.0050.00514.04
5.5.100.0030.01014.14
5.5.90.0060.00614.27
5.5.80.0000.00814.32
5.5.70.0040.01114.00
5.5.60.0080.00014.31
5.5.50.0060.00314.02
5.5.40.0110.00413.84
5.5.30.0090.00613.99
5.5.20.0000.00913.98
5.5.10.0060.00314.32
5.5.00.0100.00314.46
5.4.450.0420.04515.33
5.4.440.0510.02515.27
5.4.430.0470.03715.23
5.4.420.0330.00215.31
5.4.410.0350.00315.30
5.4.400.0320.00214.94
5.4.390.0340.00114.93
5.4.380.0340.00215.08
5.4.370.0330.00215.06
5.4.360.0300.00315.07
5.4.350.0330.00314.96
5.4.340.0020.02311.52
5.4.330.0000.01111.14
5.4.320.0050.02211.66
5.4.310.0050.02111.69
5.4.300.0040.02311.73
5.4.290.0040.02511.79
5.4.280.0030.02011.67
5.4.270.0060.02011.62
5.4.260.0050.02311.52
5.4.250.0030.02511.77
5.4.240.0060.02011.78
5.4.230.0040.02411.64
5.4.220.0050.02111.62
5.4.210.0050.02011.61
5.4.200.0040.02311.60
5.4.190.0070.02411.68
5.4.180.0040.02211.56
5.4.170.0060.02211.55
5.4.160.0060.02411.73
5.4.150.0050.02311.56
5.4.140.0040.02111.71
5.4.130.0030.02111.53
5.4.120.0070.02111.33
5.4.110.0040.02111.48
5.4.100.0060.02011.46
5.4.90.0040.01911.46
5.4.80.0060.01811.32
5.4.70.0040.02011.37
5.4.60.0060.02011.49
5.4.50.0050.01811.49
5.4.40.0070.01911.47
5.4.30.0040.02111.53
5.4.20.0050.01911.39
5.4.10.0020.02311.53
5.4.00.0050.02111.26
5.3.290.0050.04012.80
5.3.280.0040.04012.71
5.3.270.0070.03712.72
5.3.260.0060.03812.72
5.3.250.0090.03312.72
5.3.240.0050.03712.72
5.3.230.0060.03612.71
5.3.220.0060.04112.68
5.3.210.0070.03812.68
5.3.200.0060.03512.68
5.3.190.0050.03612.68
5.3.180.0070.03512.67
5.3.170.0050.03612.67
5.3.160.0100.03612.67
5.3.150.0060.04112.68
5.3.140.0050.03612.66
5.3.130.0050.03812.66
5.3.120.0080.04212.66
5.3.110.0060.04112.66
5.3.100.0030.03812.12
5.3.90.0040.04312.08
5.3.80.0040.03812.07
5.3.70.0090.03812.08
5.3.60.0060.03512.06
5.3.50.0030.05212.00
5.3.40.0050.04412.00
5.3.30.0050.03611.95
5.3.20.0050.03511.72
5.3.10.0090.03111.69
5.3.00.0060.03511.68
5.2.170.0060.0289.18
5.2.160.0040.0309.18
5.2.150.0030.0329.18
5.2.140.0070.0289.17
5.2.130.0070.0269.14
5.2.120.0060.0279.13
5.2.110.0060.0349.14
5.2.100.0030.0339.14
5.2.90.0050.0289.14
5.2.80.0060.0279.14
5.2.70.0050.0319.13
5.2.60.0090.0269.09
5.2.50.0080.0279.05
5.2.40.0030.0299.04
5.2.30.0070.0369.01
5.2.20.0050.0299.00
5.2.10.0100.0318.94
5.2.00.0040.0318.80
5.1.60.0030.0268.08
5.1.50.0020.0268.08
5.1.40.0020.0258.05
5.1.30.0050.0268.41
5.1.20.0040.0278.43
5.1.10.0110.0268.15
5.1.00.0050.0308.15
5.0.50.0020.0216.63
5.0.40.0050.0196.49
5.0.30.0030.0316.30
5.0.20.0030.0196.27
5.0.10.0030.0206.25
5.0.00.0020.0326.25
4.4.90.0040.0144.78
4.4.80.0030.0154.75
4.4.70.0030.0164.75
4.4.60.0020.0174.76
4.4.50.0050.0134.77
4.4.40.0030.0294.71
4.4.30.0000.0224.76
4.4.20.0010.0194.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0040.0134.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0020.0274.58
4.3.70.0030.0134.63
4.3.60.0010.0154.63
4.3.50.0040.0244.63
4.3.40.0020.0244.54
4.3.30.0010.0173.29
4.3.20.0040.0143.27
4.3.10.0010.0163.23
4.3.00.0130.0237.51

preferences:
64.48 ms | 401 KiB | 5 Q