3v4l.org

run code in 300+ PHP versions simultaneously
<?php // SHOULD PASS. Passes all 5.0.5 and thereafter. $passwordTestArray[] = 'Aa'; // SHOULD PASS. Passes all 5.0.5 and thereafter. $passwordTestArray[] = 'Æa'; // SHOULD PASS. Fails after 5.2.10. Passes 5.0.5 - 5.2.9 $passwordTestArray[] = 'Aæ'; // SHOULD PASS. Fails after 5.2.10. Passes 5.0.5 - 5.2.9 $passwordTestArray[] = 'Ææ'; // SHOULD FAIL because ß does not have an uppercase equiv. But it passses anyway in 5.0.5 - 5.2.9 $passwordTestArray[] = 'Aß'; // SHOULD FAIL because there is no uppercase ß. // It fails for the wrong reasons in 5.0.5 - 5.2.9 // It passes in 5.2.10 and beyond. $passwordTestArray[] = 'aß'; class PCREFail { static public function verifyComplexity($plainTextPassword) { $re = "/(?=.*[\\p{Ll}])(?=.*[\\p{Lu}]).{2,}/"; $found = preg_match_all($re, $plainTextPassword, $matches); if ($found) { return $matches; } return $found; } } foreach ($passwordTestArray as $passwordToTest) { var_dump(PCREFail::verifyComplexity($passwordToTest)); }

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.0050.01018.81
8.3.50.0150.00318.53
8.3.40.0070.00718.96
8.3.30.0110.01118.85
8.3.20.0070.00719.96
8.3.10.0050.00321.78
8.3.00.0080.00019.63
8.2.180.0180.00316.88
8.2.170.0110.00422.96
8.2.160.0120.00319.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.35
8.2.120.0040.00426.35
8.2.110.0090.00020.57
8.2.100.0090.00317.97
8.2.90.0030.00620.42
8.2.80.0040.00418.05
8.2.70.0000.00917.93
8.2.60.0000.01117.79
8.2.50.0040.00418.10
8.2.40.0080.00019.72
8.2.30.0050.00219.32
8.2.20.0040.00417.90
8.2.10.0040.00418.14
8.2.00.0040.00418.02
8.1.280.0040.01125.92
8.1.270.0040.00424.02
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0030.00622.03
8.1.230.0040.00720.98
8.1.220.0090.00017.77
8.1.210.0080.00018.97
8.1.200.0080.00317.48
8.1.190.0030.00617.48
8.1.180.0060.00618.10
8.1.170.0040.00418.78
8.1.160.0030.00322.17
8.1.150.0040.00420.76
8.1.140.0050.00219.65
8.1.130.0080.00017.79
8.1.120.0000.00717.63
8.1.110.0090.00317.65
8.1.100.0040.00417.63
8.1.90.0080.00017.57
8.1.80.0000.00817.63
8.1.70.0040.00417.51
8.1.60.0030.00617.63
8.1.50.0040.00417.68
8.1.40.0000.00917.68
8.1.30.0040.00417.71
8.1.20.0040.00417.80
8.1.10.0000.00717.75
8.1.00.0040.00417.73
8.0.300.0050.00319.98
8.0.290.0030.00516.75
8.0.280.0050.00218.33
8.0.270.0030.00317.23
8.0.260.0040.00417.35
8.0.250.0000.00717.14
8.0.240.0000.00717.14
8.0.230.0060.00317.01
8.0.220.0000.00717.03
8.0.210.0030.00316.98
8.0.200.0070.00017.13
8.0.190.0030.00716.99
8.0.180.0050.00217.02
8.0.170.0000.00817.13
8.0.160.0040.00417.08
8.0.150.0000.00816.89
8.0.140.0070.00017.01
8.0.130.0060.00013.49
8.0.120.0040.00417.11
8.0.110.0040.00417.02
8.0.100.0000.00717.04
8.0.90.0000.00717.00
8.0.80.0120.00617.11
8.0.70.0000.00816.91
8.0.60.0040.00417.21
8.0.50.0040.00416.97
8.0.30.0100.00817.35
8.0.20.0110.01017.41
8.0.10.0040.00417.05
8.0.00.0080.00816.90
7.4.330.0060.00016.90
7.4.320.0030.00316.78
7.4.300.0030.00316.78
7.4.290.0070.00016.79
7.4.280.0000.00816.84
7.4.270.0070.00016.79
7.4.260.0000.00916.83
7.4.250.0000.00716.73
7.4.240.0000.00716.89
7.4.230.0040.00416.68
7.4.220.0120.00816.99
7.4.210.0080.00516.81
7.4.200.0000.00716.53
7.4.160.0090.00616.71
7.4.150.0150.00817.40
7.4.140.0130.00517.86
7.4.130.0130.00416.73
7.4.120.0120.00816.70
7.4.110.0100.00716.51
7.4.100.0140.00816.76
7.4.90.0040.01416.74
7.4.80.0140.00419.39
7.4.70.0150.00616.65
7.4.60.0150.00316.89
7.4.50.0060.00816.72
7.4.40.0090.01516.80
7.4.30.0030.01316.50
7.4.00.0060.00915.24
7.3.330.0030.00313.31
7.3.320.0050.00013.45
7.3.310.0060.00316.32
7.3.300.0070.00016.41
7.3.290.0050.00916.49
7.3.280.0100.00816.43
7.3.270.0150.00317.40
7.3.260.0080.01016.54
7.3.250.0130.00716.50
7.3.240.0110.00716.63
7.3.230.0090.00816.75
7.3.210.0040.01316.59
7.3.200.0070.01416.72
7.3.190.0070.01016.62
7.3.180.0130.00316.80
7.3.170.0080.00816.55
7.3.160.0040.02016.45
7.2.330.0090.00916.87
7.2.320.0220.01516.83
7.2.310.0030.01516.64
7.2.300.0110.00816.91
7.2.290.0090.00916.97
7.2.80.0030.00917.03
7.2.60.0030.00717.03
7.1.200.0130.00515.73
7.1.70.0000.00817.27
7.1.60.0110.00019.79
7.1.00.0030.07722.47
7.0.200.0410.00414.88
7.0.80.0200.05319.94
7.0.70.0100.06320.21
7.0.60.0200.05319.98
7.0.50.0070.06320.37
7.0.40.0200.05020.41
7.0.30.0170.06020.38
7.0.20.0270.04720.38
7.0.10.0100.05720.45
7.0.00.0030.07020.32
5.6.280.0030.07020.93
5.6.230.0200.05020.67
5.6.220.0100.06320.71
5.6.210.0130.05720.67
5.6.200.0170.05720.99
5.6.190.0100.08021.11
5.6.180.0130.06721.02
5.6.170.0030.06721.09
5.6.160.0230.05021.18
5.6.150.0100.06321.18
5.6.140.0130.05721.08
5.6.130.0070.06721.17
5.6.120.0170.06321.20
5.6.110.0130.07021.05
5.6.100.0130.06321.09
5.6.90.0070.07021.05
5.6.80.0170.07720.59
5.6.70.0030.06320.47
5.6.60.0000.06720.46
5.6.50.0130.05720.40
5.6.40.0170.05320.42
5.6.30.0100.06020.39
5.6.20.0100.05720.45
5.6.10.0200.05020.43
5.6.00.0230.06020.49
5.5.370.0230.04720.53
5.5.360.0170.05720.44
5.5.350.0070.06720.46
5.5.340.0130.06020.84
5.5.330.0270.06320.94
5.5.320.0030.06720.90
5.5.310.0170.06020.89
5.5.300.0100.06020.95
5.5.290.0070.06720.93
5.5.280.0130.06020.95
5.5.270.0130.05720.95
5.5.260.0100.06020.89
5.5.250.0100.06020.68
5.5.240.0100.06020.34
5.5.230.0130.05720.27
5.5.220.0070.06020.34
5.5.210.0000.07020.30
5.5.200.0070.06020.29
5.5.190.0100.06020.29
5.5.180.0170.05720.19
5.5.160.0130.06320.29
5.5.150.0130.05320.13
5.5.140.0100.05720.29
5.5.130.0070.07020.23
5.5.120.0200.06320.28
5.5.110.0270.06020.28
5.5.100.0200.07320.11
5.5.90.0100.05720.16
5.5.80.0200.06020.14
5.5.70.0230.05720.07
5.5.60.0170.05320.13
5.5.50.0130.05020.18
5.5.40.0070.05720.09
5.5.30.0230.06320.21
5.5.20.0170.07320.06
5.5.10.0130.06020.19
5.5.00.0070.06020.06
5.4.450.0100.06319.41
5.4.440.0130.07319.35
5.4.430.0100.05719.47
5.4.420.0130.06019.47
5.4.410.0200.07019.34
5.4.400.0100.07319.19
5.4.390.0130.06019.24
5.4.380.0130.05319.14
5.4.370.0070.06018.93
5.4.360.0170.05019.11
5.4.350.0100.07719.08
5.4.340.0030.06719.09
5.4.320.0130.05719.02
5.4.310.0200.04719.07
5.4.300.0170.05019.14
5.4.290.0030.07019.15
5.4.280.0230.06018.93
5.4.270.0230.05019.08
5.4.260.0170.06719.15
5.4.250.0100.06319.02
5.4.240.0100.05719.16
5.4.230.0000.07019.24
5.4.220.0200.05019.15
5.4.210.0130.05319.16
5.4.200.0030.05719.16
5.4.190.0230.05319.07
5.4.180.0100.05719.07
5.4.170.0130.05718.92
5.4.160.0200.04719.13
5.4.150.0200.06719.16
5.4.140.0070.06016.45
5.4.130.0100.05316.52
5.4.120.0030.06316.36
5.4.110.0000.06316.60
5.4.100.0100.06316.60
5.4.90.0100.05016.57
5.4.80.0100.05316.55
5.4.70.0230.04016.25
5.4.60.0100.05016.31
5.4.50.0130.04316.54
5.4.40.0070.05716.58
5.4.30.0100.05016.24
5.4.20.0170.04316.53
5.4.10.0200.04016.25
5.4.00.0070.05015.77
5.3.290.0130.05714.73
5.3.280.0130.06714.80
5.3.270.0130.05014.79
5.3.260.0230.03714.66
5.3.250.0200.06314.68
5.3.240.0130.05014.67
5.3.230.0070.06314.84
5.3.220.0200.06014.63
5.3.210.0200.05714.72
5.3.200.0130.05014.62
5.3.190.0130.05314.72
5.3.180.0100.05314.56
5.3.170.0070.05714.55
5.3.160.0100.05014.59
5.3.150.0070.05314.59
5.3.140.0100.05014.42
5.3.130.0070.05714.55
5.3.120.0100.05314.69
5.3.110.0100.05714.56
5.3.100.0170.04313.90
5.3.90.0100.05014.01
5.3.80.0130.04314.01
5.3.70.0200.04013.92
5.3.60.0130.04713.97
5.3.50.0130.04314.06
5.3.40.0070.05313.92
5.3.30.0130.05313.91
5.3.20.0100.04713.82
5.3.10.0130.04313.63
5.3.00.0000.05713.67
5.2.170.0100.03711.12
5.2.160.0100.03711.11
5.2.150.0100.04311.09
5.2.140.0170.04311.14
5.2.130.0100.03711.10
5.2.120.0100.03711.21
5.2.110.0030.05011.05
5.2.100.0100.03711.11
5.2.90.0070.04011.13
5.2.80.0070.04311.20
5.2.70.0130.03711.04
5.2.60.0100.04011.04
5.2.50.0030.04711.12
5.2.40.0130.03311.11
5.2.30.0070.04310.90
5.2.20.0170.03310.88
5.2.10.0100.03710.91
5.2.00.0130.03310.78
5.1.60.0070.03310.08
5.1.50.0070.03310.07
5.1.40.0100.03310.06
5.1.30.0130.03010.43
5.1.20.0100.03710.51
5.1.10.0000.04310.22
5.1.00.0130.03010.19
5.0.50.0100.0238.46
5.0.40.0130.0208.49
5.0.30.0000.0508.22
5.0.20.0070.0338.28
5.0.10.0070.0278.17
5.0.00.0070.0408.06
4.4.90.0030.0205.88
4.4.80.0000.0275.86
4.4.70.0030.0235.86
4.4.60.0030.0235.84
4.4.50.0070.0175.88
4.4.40.0030.0335.80
4.4.30.0100.0175.80
4.4.20.0030.0235.87
4.4.10.0030.0235.89
4.4.00.0070.0335.86
4.3.110.0070.0205.78
4.3.100.0000.0275.75
4.3.90.0030.0235.71
4.3.80.0030.0335.74
4.3.70.0070.0175.71
4.3.60.0100.0135.72
4.3.50.0070.0175.73
4.3.40.0100.0275.71
4.3.30.0030.0275.22
4.3.20.0000.0235.22
4.3.10.0000.0235.22
4.3.00.0070.0205.22

preferences:
63.46 ms | 400 KiB | 5 Q