3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "Apple1Crab2"; $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.0180.00318.67
8.3.50.0150.00921.21
8.3.40.0140.00418.92
8.3.30.0100.00718.92
8.3.20.0080.00020.38
8.3.10.0080.00021.73
8.3.00.0030.00619.38
8.2.180.0040.01116.63
8.2.170.0170.00022.96
8.2.160.0140.00720.53
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00322.25
8.2.110.0070.00322.32
8.2.100.0110.00017.88
8.2.90.0030.00619.17
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00420.13
8.2.30.0050.00218.11
8.2.20.0040.00417.84
8.2.10.0040.00418.12
8.2.00.0040.00417.89
8.1.280.0210.00025.92
8.1.270.0060.00322.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0120.00019.02
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.13
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00818.41
8.1.160.0000.00721.95
8.1.150.0000.00718.82
8.1.140.0000.00717.54
8.1.130.0000.00717.85
8.1.120.0080.00017.54
8.1.110.0030.00517.62
8.1.100.0070.00017.56
8.1.90.0030.00517.50
8.1.80.0040.00417.49
8.1.70.0040.00417.57
8.1.60.0080.00017.63
8.1.50.0030.00617.70
8.1.40.0040.00417.66
8.1.30.0040.00417.67
8.1.20.0030.00517.67
8.1.10.0040.00417.53
8.1.00.0000.00817.59
8.0.300.0050.00318.77
8.0.290.0020.00516.88
8.0.280.0080.00018.39
8.0.270.0030.00317.24
8.0.260.0000.00817.18
8.0.250.0030.00317.11
8.0.240.0070.00017.21
8.0.230.0040.00417.09
8.0.220.0030.00317.04
8.0.210.0070.00017.17
8.0.200.0000.00617.26
8.0.190.0070.00317.26
8.0.180.0040.00417.23
8.0.170.0040.00417.08
8.0.160.0000.00717.03
8.0.150.0070.00017.07
8.0.140.0040.00417.09
8.0.130.0030.00313.68
8.0.120.0050.00317.15
8.0.110.0000.00817.21
8.0.100.0000.00817.18
8.0.90.0020.00516.99
8.0.80.0090.00617.18
8.0.70.0050.00217.22
8.0.60.0060.00317.19
8.0.50.0040.00417.16
8.0.30.0060.01517.28
8.0.20.0120.00917.41
8.0.10.0030.00617.28
8.0.00.0100.00816.83
7.4.330.0060.00015.00
7.4.320.0050.00216.80
7.4.300.0060.00016.86
7.4.290.0000.00816.79
7.4.280.0040.00416.74
7.4.270.0000.00716.76
7.4.260.0030.00316.83
7.4.250.0000.00716.78
7.4.240.0030.00516.70
7.4.230.0000.00716.40
7.4.220.0070.01116.78
7.4.210.0060.01316.61
7.4.200.0030.00316.64
7.4.160.0080.00816.63
7.4.150.0090.01617.40
7.4.140.0100.01117.86
7.4.130.0120.00716.76
7.4.120.0090.00816.73
7.4.110.0090.00916.56
7.4.100.0120.00616.48
7.4.90.0070.01016.84
7.4.80.0100.00619.39
7.4.70.0160.00316.68
7.4.60.0030.01516.67
7.4.50.0050.00316.64
7.4.40.0090.00916.66
7.4.30.0060.00916.66
7.4.10.0030.00715.21
7.4.00.0070.00715.09
7.3.330.0000.00513.43
7.3.320.0020.00213.30
7.3.310.0070.00016.63
7.3.300.0070.00016.55
7.3.290.0100.00516.55
7.3.280.0130.00316.58
7.3.270.0160.00917.40
7.3.260.0080.00816.77
7.3.250.0100.00616.60
7.3.240.0120.00916.89
7.3.230.0070.01016.71
7.3.210.0070.01016.50
7.3.200.0160.00719.39
7.3.190.0060.01016.68
7.3.180.0130.00316.42
7.3.170.0130.00416.71
7.3.160.0190.00316.71
7.3.130.0030.01315.01
7.3.120.0030.01014.91
7.3.110.0100.00314.54
7.3.100.0120.00314.72
7.3.90.0070.00714.84
7.3.80.0080.00515.01
7.3.70.0110.00615.28
7.3.60.0090.00614.75
7.3.50.0100.00614.93
7.3.40.0030.01315.03
7.3.30.0060.00914.83
7.3.20.0080.00416.84
7.3.10.0060.00616.85
7.3.00.0030.01016.98
7.2.330.0100.00716.77
7.2.320.0070.01016.80
7.2.310.0090.00916.91
7.2.300.0090.00816.82
7.2.290.0190.00316.77
7.2.260.0030.01415.05
7.2.250.0060.00614.96
7.2.240.0000.01315.37
7.2.230.0120.00315.38
7.2.220.0090.00614.91
7.2.210.0070.00715.23
7.2.200.0080.00315.02
7.2.190.0040.01115.36
7.2.180.0000.01115.23
7.2.170.0100.00715.32
7.2.160.0030.00714.95
7.2.150.0030.01017.02
7.2.140.0060.00916.78
7.2.130.0080.00816.99
7.2.120.0040.01117.13
7.2.110.0040.00917.11
7.2.100.0090.00417.11
7.2.90.0090.00517.13
7.2.80.0030.00817.11
7.2.70.0050.00917.02
7.2.60.0050.01117.17
7.2.50.0110.00216.96
7.2.40.0060.00817.21
7.2.30.0060.00917.05
7.2.20.0050.00817.05
7.2.10.0080.00717.07
7.2.00.0070.01117.94
7.1.330.0030.00816.16
7.1.320.0090.00615.83
7.1.310.0000.01415.98
7.1.300.0070.00715.66
7.1.290.0090.00315.93
7.1.280.0120.00315.96
7.1.270.0060.00615.98
7.1.260.0120.00315.89
7.1.250.0050.00915.83
7.1.240.0040.00615.82
7.1.230.0050.01015.90
7.1.220.0050.00915.77
7.1.210.0050.00515.90
7.1.200.0070.00515.82
7.1.190.0060.00416.06
7.1.180.0040.00915.91
7.1.170.0030.00815.83
7.1.160.0050.00715.69
7.1.150.0060.00816.01
7.1.140.0030.01116.03
7.1.130.0030.01015.75
7.1.120.0060.00715.91
7.1.110.0020.01415.99
7.1.100.0040.00516.85
7.1.90.0030.01015.84
7.1.80.0020.01515.77
7.1.70.0050.00916.41
7.1.60.0090.00616.96
7.1.50.0080.00916.24
7.1.40.0050.01116.15
7.1.30.0070.00815.84
7.1.20.0040.00816.03
7.1.10.0070.00615.97
7.1.00.0040.03118.24
7.0.330.0060.00615.42
7.0.320.0050.00515.67
7.0.310.0030.00615.46
7.0.300.0030.01015.56
7.0.290.0050.00715.75
7.0.280.0070.01015.67
7.0.270.0060.00615.67
7.0.260.0050.01115.74
7.0.250.0060.00815.60
7.0.240.0080.00215.67
7.0.230.0050.00715.56
7.0.220.0050.01015.62
7.0.210.0050.00815.43
7.0.200.0020.00915.97
7.0.190.0050.00915.70
7.0.180.0060.00915.43
7.0.170.0130.00215.57
7.0.160.0050.01015.52
7.0.150.0050.00915.63
7.0.140.0060.02917.77
7.0.130.0050.00615.41
7.0.120.0050.00715.58
7.0.110.0060.00715.72
7.0.100.0060.00815.63
7.0.90.0030.00715.45
7.0.80.0090.00715.50
7.0.70.0100.00315.35
7.0.60.0070.02917.04
7.0.50.0050.01516.42
7.0.40.0070.03215.78
7.0.30.0120.03015.88
7.0.20.0110.03015.68
7.0.10.0040.03315.86
7.0.00.0110.02515.96
5.6.400.0000.01614.20
5.6.390.0000.01414.61
5.6.380.0060.00614.44
5.6.370.0050.00314.10
5.6.360.0070.00414.39
5.6.350.0020.01114.45
5.6.340.0060.00714.29
5.6.330.0070.00814.25
5.6.320.0050.01114.35
5.6.310.0030.01014.48
5.6.300.0070.00414.42
5.6.290.0060.00614.36
5.6.280.0080.02316.54
5.6.270.0060.00614.38
5.6.260.0000.01314.30
5.6.250.0050.00614.31
5.6.240.0090.00214.53
5.6.230.0050.00714.26
5.6.220.0030.00914.38
5.6.210.0080.02316.51
5.6.200.0070.03015.53
5.6.190.0080.01916.38
5.6.180.0110.01916.38
5.6.170.0470.02116.42
5.6.160.0080.03016.40
5.6.150.0070.02715.56
5.6.140.0030.02515.65
5.6.130.0040.02815.67
5.6.120.0050.02416.54
5.6.110.0080.03116.52
5.6.100.0080.01616.78
5.6.90.0040.02916.54
5.6.80.0050.02216.42
5.6.70.0030.00914.17
5.6.60.0040.00714.20
5.6.50.0050.00614.28
5.6.40.0090.00714.19
5.6.30.0100.00314.16
5.6.20.0060.01014.18
5.6.10.0100.00514.24
5.6.00.0000.01714.14
5.5.380.0040.01012.84
5.5.370.0020.00912.77
5.5.360.0100.00312.57
5.5.350.0090.03215.25
5.5.340.0050.02314.44
5.5.330.0080.01815.22
5.5.320.0170.02215.31
5.5.310.0110.02815.13
5.5.300.0040.02114.51
5.5.290.0090.01914.34
5.5.280.0030.03115.33
5.5.270.0070.03115.28
5.5.260.0110.02715.38
5.5.250.0090.02715.31
5.5.240.0140.02315.03
5.5.230.0020.00812.61
5.5.220.0040.00512.82
5.5.210.0030.00512.71
5.5.200.0030.01212.46
5.5.190.0030.00712.52
5.5.180.0080.00212.63
5.5.170.0090.00412.70
5.5.160.0050.00712.64
5.5.150.0060.00412.76
5.5.140.0030.00512.59
5.5.130.0080.00512.75
5.5.120.0090.00212.48
5.5.110.0040.00912.63
5.5.100.0020.00812.54
5.5.90.0010.00812.73
5.5.80.0030.00812.54
5.5.70.0030.00912.59
5.5.60.0040.00512.52
5.5.50.0030.00812.52
5.5.40.0030.00812.41
5.5.30.0060.00312.50
5.5.20.0050.00812.58
5.5.10.0090.00412.60
5.5.00.0060.00612.52
5.4.450.0270.02514.28
5.4.440.0310.01914.07
5.4.430.0280.02114.05
5.4.420.0240.00414.15
5.4.410.0240.00514.17
5.4.400.0240.00313.99
5.4.390.0210.00514.06
5.4.380.0230.00413.97
5.4.370.0230.00514.02
5.4.360.0300.00414.03
5.4.350.0220.00614.11
5.4.340.0040.01711.66
5.4.330.0030.00811.53
5.4.320.0050.01711.75
5.4.310.0040.01611.83
5.4.300.0040.01811.87
5.4.290.0080.01411.80
5.4.280.0110.01411.75
5.4.270.0040.01911.76
5.4.260.0070.01711.75
5.4.250.0010.01911.85
5.4.240.0060.01711.77
5.4.230.0050.01811.69
5.4.220.0040.01711.80
5.4.210.0040.01711.73
5.4.200.0040.01711.70
5.4.190.0040.01611.84
5.4.180.0060.01711.71
5.4.170.0060.01511.68
5.4.160.0060.01611.83
5.4.150.0020.01711.75
5.4.140.0040.01611.65
5.4.130.0030.01511.68
5.4.120.0070.01311.55
5.4.110.0050.01511.67
5.4.100.0030.01511.63
5.4.90.0050.01611.65
5.4.80.0080.01511.61
5.4.70.0060.01511.65
5.4.60.0080.01311.53
5.4.50.0080.01311.64
5.4.40.0060.01511.68
5.4.30.0030.01711.64
5.4.20.0040.01411.69
5.4.10.0050.01511.65
5.4.00.0050.01511.47
5.3.290.0110.02011.67
5.3.280.0020.02311.58
5.3.270.0050.02111.48
5.3.260.0070.02311.62
5.3.250.0040.02111.62
5.3.240.0090.01911.57
5.3.230.0030.02211.51
5.3.220.0030.02011.54
5.3.210.0050.03411.55
5.3.200.0050.02011.57
5.3.190.0050.02611.64
5.3.180.0060.02311.58
5.3.170.0060.02011.58
5.3.160.0040.02211.52
5.3.150.0060.02111.55
5.3.140.0060.02211.54
5.3.130.0080.02111.48
5.3.120.0070.02111.50
5.3.110.0080.01811.63
5.3.100.0050.02011.32
5.3.90.0040.02211.33
5.3.80.0040.02211.17
5.3.70.0030.02011.10
5.3.60.0030.02211.23
5.3.50.0020.02411.16
5.3.40.0030.02511.22
5.3.30.0020.02411.12
5.3.20.0100.01811.11
5.3.10.0100.01810.89
5.3.00.0060.02210.98
5.2.170.0020.0209.31
5.2.160.0050.0189.39
5.2.150.0050.0189.26
5.2.140.0100.0149.27
5.2.130.0050.0199.29
5.2.120.0060.0169.30
5.2.110.0040.0189.32
5.2.100.0050.0159.33
5.2.90.0100.0169.25
5.2.80.0040.0189.28
5.2.70.0060.0159.25
5.2.60.0040.0169.25
5.2.50.0050.0179.21
5.2.40.0020.0189.25
5.2.30.0100.0179.18
5.2.20.0060.0169.18
5.2.10.0030.0179.14
5.2.00.0080.0149.07
5.1.60.0050.0138.71
5.1.50.0060.0148.71
5.1.40.0030.0178.70
5.1.30.0020.0188.87
5.1.20.0030.0168.88
5.1.10.0050.0148.75
5.1.00.0040.0168.75
5.0.50.0020.0137.98
5.0.40.0030.0117.91
5.0.30.0030.0167.82
5.0.20.0050.0097.80
5.0.10.0040.0107.80
5.0.00.0020.0177.79
4.4.90.0010.0117.07
4.4.80.0050.0097.05
4.4.70.0030.0087.05
4.4.60.0010.0107.05
4.4.50.0040.0107.06
4.4.40.0020.0157.03
4.4.30.0020.0107.05
4.4.20.0050.0097.10
4.4.10.0020.0107.10
4.4.00.0040.0147.05
4.3.110.0040.0077.01
4.3.100.0020.0087.01
4.3.90.0030.0086.99
4.3.80.0020.0156.97
4.3.70.0020.0096.99
4.3.60.0020.0096.99
4.3.50.0040.0106.99
4.3.40.0030.0146.94
4.3.30.0000.0116.32
4.3.20.0030.0106.31
4.3.10.0030.0096.29
4.3.00.0070.0148.43

preferences:
40.81 ms | 400 KiB | 5 Q