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.0070.00718.43
8.3.50.0090.00821.16
8.3.40.0070.00718.79
8.3.30.0070.01019.12
8.3.20.0000.00720.33
8.3.10.0110.00721.95
8.3.00.0050.00319.38
8.2.180.0100.01316.38
8.2.170.0080.00822.96
8.2.160.0070.01320.47
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.31
8.2.110.0060.00322.20
8.2.100.0030.01017.75
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0030.00517.75
8.2.60.0070.00317.91
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0000.00718.03
8.2.20.0030.00517.78
8.2.10.0080.00018.20
8.2.00.0050.00317.91
8.1.280.0030.01225.92
8.1.270.0060.00322.06
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00724.03
8.1.230.0060.00618.98
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0040.00418.77
8.1.160.0040.00421.98
8.1.150.0000.00818.82
8.1.140.0050.00317.65
8.1.130.0030.00317.79
8.1.120.0050.00217.66
8.1.110.0000.00817.63
8.1.100.0040.00417.63
8.1.90.0040.00417.52
8.1.80.0000.00817.68
8.1.70.0030.00317.57
8.1.60.0080.00017.77
8.1.50.0050.00317.57
8.1.40.0050.00517.63
8.1.30.0080.00017.76
8.1.20.0000.00817.85
8.1.10.0000.00717.69
8.1.00.0000.00917.61
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.46
8.0.270.0030.00517.17
8.0.260.0030.00317.20
8.0.250.0030.00317.23
8.0.240.0000.00717.15
8.0.230.0000.00717.18
8.0.220.0000.00717.04
8.0.210.0040.00416.97
8.0.200.0060.00017.05
8.0.190.0060.00617.18
8.0.180.0040.00417.16
8.0.170.0000.00717.14
8.0.160.0030.00317.07
8.0.150.0000.00916.95
8.0.140.0000.00716.95
8.0.130.0060.00013.46
8.0.120.0000.00717.02
8.0.110.0050.00317.10
8.0.100.0000.00717.00
8.0.90.0040.00417.14
8.0.80.0040.01117.03
8.0.70.0000.00817.22
8.0.60.0070.00016.99
8.0.50.0000.00716.96
8.0.30.0100.01517.35
8.0.20.0120.01017.45
8.0.10.0000.01017.15
8.0.00.0060.01117.00
7.4.330.0020.00215.00
7.4.320.0030.00316.83
7.4.300.0040.00416.66
7.4.290.0030.00316.58
7.4.280.0030.00516.70
7.4.270.0070.00016.62
7.4.260.0030.00316.66
7.4.250.0050.00216.82
7.4.240.0020.00516.74
7.4.230.0040.00416.74
7.4.220.0040.01416.76
7.4.210.0120.00316.80
7.4.200.0040.00416.69
7.4.160.0030.01216.73
7.4.150.0150.00317.40
7.4.140.0110.01417.86
7.4.130.0110.00816.64
7.4.120.0110.01016.75
7.4.110.0070.01016.63
7.4.100.0170.00016.58
7.4.90.0060.01216.71
7.4.80.0110.00619.39
7.4.70.0100.00716.48
7.4.60.0040.01416.59
7.4.50.0000.00916.51
7.4.40.0060.01216.70
7.4.30.0110.00516.66
7.4.00.0130.00315.22
7.3.330.0050.00013.31
7.3.320.0030.00313.41
7.3.310.0030.00316.45
7.3.300.0000.00716.53
7.3.290.0110.00316.54
7.3.280.0060.01216.45
7.3.270.0120.00617.40
7.3.260.0040.01316.37
7.3.250.0100.00816.50
7.3.240.0150.00616.43
7.3.230.0070.01016.50
7.3.210.0060.01216.65
7.3.200.0090.01019.39
7.3.190.0070.01116.46
7.3.180.0030.01316.74
7.3.170.0160.00016.75
7.3.160.0120.00316.65
7.2.330.0120.00616.82
7.2.320.0060.01316.82
7.2.310.0080.00916.79
7.2.300.0100.01016.77
7.2.290.0090.01616.83
7.2.00.0030.01419.59
7.1.100.0000.01218.39
7.1.70.0000.00917.24
7.1.60.0060.01919.11
7.1.50.0100.01016.85
7.1.00.0030.07722.32
7.0.200.0000.00716.67
7.0.140.0030.07322.15
7.0.60.0070.08319.85
7.0.50.0070.05717.86
7.0.40.0070.09019.98
7.0.30.0300.06020.11
7.0.20.0300.07320.22
7.0.10.0130.08020.11
7.0.00.0030.07320.10
5.6.280.0170.06021.11
5.6.210.0200.06720.74
5.6.200.0070.08018.21
5.6.190.0000.05020.49
5.6.180.0230.03720.37
5.6.170.1270.05720.52
5.6.160.0100.08020.49
5.6.150.0100.07718.14
5.6.140.0130.04018.11
5.6.130.0130.07318.10
5.6.120.0170.07020.79
5.6.110.0130.08321.13
5.6.100.0330.06721.04
5.6.90.0170.07321.00
5.6.80.0030.05720.41
5.5.350.0070.05020.49
5.5.340.0030.08717.96
5.5.330.0100.05020.21
5.5.320.0430.06720.33
5.5.310.0230.07020.34
5.5.300.0070.03317.91
5.5.290.0030.04018.01
5.5.280.0130.08320.88
5.5.270.0030.08720.74
5.5.260.0130.06020.83
5.5.250.0170.07720.65
5.5.240.0200.07720.14
5.4.450.0600.06319.63
5.4.440.0770.05319.59
5.4.430.0970.05319.63
5.4.420.0670.00019.29
5.4.410.0830.00019.19
5.4.400.0630.00019.02
5.4.390.0630.00018.96
5.4.380.0630.00019.26
5.4.370.0630.00019.00
5.4.360.0630.00019.09
5.4.350.0670.00019.10
5.4.340.0050.04011.96
5.4.320.0050.04312.45
5.4.310.0090.03412.45
5.4.300.0040.03812.45
5.4.290.0080.03612.45
5.4.280.0080.03212.34
5.4.270.0060.03712.34
5.4.260.0060.04912.34
5.4.250.0060.03912.35
5.4.240.0050.03712.34
5.4.230.0050.04012.34
5.4.220.0120.03712.34
5.4.210.0050.03612.34
5.4.200.0050.03812.34
5.4.190.0040.04112.34
5.4.180.0050.03612.33
5.4.170.0050.03712.34
5.4.160.0090.04212.34
5.4.150.0050.03512.34
5.4.140.0060.04612.02
5.4.130.0060.03512.01
5.4.120.0040.03611.96
5.4.110.0070.03311.97
5.4.100.0050.03411.96
5.4.90.0050.03711.96
5.4.80.0050.03711.96
5.4.70.0040.03511.96
5.4.60.0070.04211.96
5.4.50.0070.03311.96
5.4.40.0100.03011.95
5.4.30.0090.03111.94
5.4.20.0090.03511.95
5.4.10.0070.03311.95
5.4.00.0060.04111.44
5.3.290.0070.03712.80
5.3.280.0050.03812.71
5.3.270.0060.04412.72
5.3.260.0060.03812.71
5.3.250.0100.03912.72
5.3.240.0040.04112.72
5.3.230.0060.03912.71
5.3.220.0060.03612.68
5.3.210.0050.04112.68
5.3.200.0070.03512.68
5.3.190.0090.04612.68
5.3.180.0050.04712.68
5.3.170.0020.04312.67
5.3.160.0080.03512.67
5.3.150.0090.03512.68
5.3.140.0080.03512.66
5.3.130.0070.03912.66
5.3.120.0070.04212.66
5.3.110.0050.04412.66
5.3.100.0030.04012.12
5.3.90.0030.03912.09
5.3.80.0040.03812.07
5.3.70.0030.04012.08
5.3.60.0090.03412.06
5.3.50.0090.03312.00
5.3.40.0060.03612.00
5.3.30.0080.03311.94
5.3.20.0060.03511.72
5.3.10.0030.03711.69
5.3.00.0050.03611.68
5.2.170.0050.0319.18
5.2.160.0040.0309.18
5.2.150.0050.0319.18
5.2.140.0060.0299.18
5.2.130.0090.0279.14
5.2.120.0050.0319.13
5.2.110.0050.0299.14
5.2.100.0050.0289.14
5.2.90.0070.0269.13
5.2.80.0030.0329.13
5.2.70.0040.0319.14
5.2.60.0040.0319.09
5.2.50.0040.0319.06
5.2.40.0040.0299.04
5.2.30.0030.0319.01
5.2.20.0030.0309.00
5.2.10.0020.0318.94
5.2.00.0070.0268.80
5.1.60.0060.0228.08
5.1.50.0010.0278.08
5.1.40.0040.0248.06
5.1.30.0040.0268.41
5.1.20.0070.0278.43
5.1.10.0070.0308.16
5.1.00.0030.0338.16
5.0.50.0030.0206.63
5.0.40.0010.0216.49
5.0.30.0030.0316.30
5.0.20.0040.0186.27
5.0.10.0030.0196.25
5.0.00.0040.0296.25
4.4.90.0010.0164.78
4.4.80.0040.0144.76
4.4.70.0050.0134.75
4.4.60.0040.0214.75
4.4.50.0040.0204.77
4.4.40.0030.0244.71
4.4.30.0010.0184.76
4.4.20.0030.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0244.76
4.3.110.0020.0174.67
4.3.100.0030.0134.66
4.3.90.0020.0204.63
4.3.80.0020.0244.58
4.3.70.0040.0264.63
4.3.60.0050.0134.63
4.3.50.0020.0164.63
4.3.40.0040.0244.54
4.3.30.0020.0153.29
4.3.20.0010.0213.27
4.3.10.0040.0203.23
4.3.00.0000.0237.51

preferences:
50.46 ms | 401 KiB | 5 Q