3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "A1Q1@1pa"; $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("/(?=.*\d{2,})/", $pswd); //two or more digits x $upperChar= preg_match("/(?=.*[A-Z]\w\S{2,})/", $pswd); //two or more upper case letters $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.0080.01218.68
8.3.50.0250.00622.26
8.3.40.0040.01118.92
8.3.30.0100.00719.10
8.3.20.0050.00220.35
8.3.10.0040.00423.43
8.3.00.0080.00019.50
8.2.180.0070.01116.63
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0070.00722.12
8.2.110.0040.00422.28
8.2.100.0000.01118.03
8.2.90.0050.00319.07
8.2.80.0050.00517.97
8.2.70.0070.00317.75
8.2.60.0100.00017.80
8.2.50.0090.00018.07
8.2.40.0050.00519.88
8.2.30.0040.00418.05
8.2.20.0000.00817.97
8.2.10.0030.00618.25
8.2.00.0030.00518.00
8.1.280.0040.01425.92
8.1.270.0090.00022.21
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.77
8.1.230.0080.00419.28
8.1.220.0030.00617.89
8.1.210.0040.00418.77
8.1.200.0030.00717.25
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0060.00318.75
8.1.160.0070.00022.05
8.1.150.0040.00419.01
8.1.140.0000.00717.63
8.1.130.0000.00717.88
8.1.120.0050.00217.57
8.1.110.0000.00817.63
8.1.100.0040.00417.59
8.1.90.0030.00817.65
8.1.80.0000.00717.54
8.1.70.0070.00017.64
8.1.60.0120.00017.75
8.1.50.0040.00417.68
8.1.40.0040.00417.68
8.1.30.0040.00417.84
8.1.20.0020.00517.86
8.1.10.0000.00817.64
8.1.00.0000.00717.56
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0070.00018.41
8.0.270.0070.00017.36
8.0.260.0040.00418.51
8.0.250.0030.00317.22
8.0.240.0030.00317.18
8.0.230.0000.00717.04
8.0.220.0000.00717.05
8.0.210.0000.00717.18
8.0.200.0000.00717.16
8.0.190.0070.00417.21
8.0.180.0000.00717.08
8.0.170.0000.00817.15
8.0.160.0040.00417.07
8.0.150.0040.00417.16
8.0.140.0040.00417.06
8.0.130.0030.00313.54
8.0.120.0050.00317.04
8.0.110.0000.00817.11
8.0.100.0080.00017.04
8.0.90.0050.00317.08
8.0.80.0080.00817.13
8.0.70.0040.00417.02
8.0.60.0040.00416.94
8.0.50.0040.00416.93
8.0.30.0130.01017.32
8.0.20.0060.01617.40
8.0.10.0000.00817.19
8.0.00.0120.00717.04
7.4.330.0000.00615.02
7.4.320.0030.00316.77
7.4.300.0030.00316.66
7.4.290.0070.00016.82
7.4.280.0040.00416.79
7.4.270.0040.00416.83
7.4.260.0070.00016.79
7.4.250.0070.00016.64
7.4.240.0000.00716.78
7.4.230.0070.00016.54
7.4.220.0100.01316.68
7.4.210.0160.00316.63
7.4.200.0000.00716.53
7.4.160.0110.00616.86
7.4.150.0170.00617.40
7.4.140.0100.01017.86
7.4.130.0060.01816.68
7.4.120.0070.00916.72
7.4.110.0140.00416.84
7.4.100.0060.01316.75
7.4.90.0170.00316.75
7.4.80.0220.00319.39
7.4.70.0100.00716.74
7.4.60.0090.00916.62
7.4.50.0040.00416.70
7.4.40.0060.00916.75
7.4.30.0120.00916.53
7.4.00.0090.00915.21
7.3.330.0000.00513.42
7.3.320.0000.00613.25
7.3.310.0030.00316.55
7.3.300.0000.00716.49
7.3.290.0060.00916.48
7.3.280.0060.01016.51
7.3.270.0100.00717.40
7.3.260.0090.00916.68
7.3.250.0060.01516.63
7.3.240.0090.00916.47
7.3.230.0100.00716.73
7.3.210.0180.00616.73
7.3.200.0130.01019.39
7.3.190.0120.00616.90
7.3.180.0090.01316.34
7.3.170.0030.01516.76
7.3.160.0040.01616.50
7.2.330.0070.01016.65
7.2.320.0030.01316.89
7.2.310.0030.01416.62
7.2.300.0060.01316.71
7.2.290.0070.01016.83
7.2.60.0060.00917.09
7.1.200.0090.00415.80
7.1.70.0040.00417.01
7.1.60.0090.01219.11
7.1.50.0070.01717.23
7.1.00.0030.07322.33
7.0.200.0000.01016.96
7.0.140.0000.08022.00
7.0.60.0130.06320.01
7.0.50.0270.06017.91
7.0.40.0100.08020.26
7.0.30.0270.08320.06
7.0.20.0200.04720.22
7.0.10.0070.06720.03
7.0.00.0100.08720.13
5.6.210.0070.03720.68
5.6.200.0100.07318.22
5.6.190.0100.03720.63
5.6.180.0400.06720.35
5.6.170.1000.04720.52
5.6.160.0030.04720.47
5.6.150.0170.06018.19
5.6.140.0070.05018.17
5.6.130.0100.07318.16
5.6.120.0100.08020.80
5.6.110.0070.09021.09
5.6.100.0070.04321.04
5.6.90.0130.07320.96
5.6.80.0070.04320.35
5.5.350.0070.05020.41
5.5.340.0070.07717.92
5.5.330.0130.04720.19
5.5.320.0430.05020.31
5.5.310.0230.05320.29
5.5.300.0030.04017.90
5.5.290.0070.05017.90
5.5.280.0030.05720.98
5.5.270.0100.04720.73
5.5.260.0070.04020.68
5.5.250.0030.04720.55
5.5.240.0230.07020.18
5.4.450.0200.05719.11
5.4.440.0730.06019.46
5.4.430.0100.06319.46
5.4.420.0630.00019.42
5.4.410.0630.00019.41
5.4.400.0630.00019.21
5.4.390.0600.00019.09
5.4.380.0630.00019.05
5.4.370.0630.00018.91
5.4.360.0630.00019.08
5.4.350.0670.00019.18
5.4.340.0070.03311.97
5.4.320.0070.03712.46
5.4.310.0080.03612.45
5.4.300.0060.03612.46
5.4.290.0040.04712.45
5.4.280.0080.03912.35
5.4.270.0070.04412.35
5.4.260.0060.03712.35
5.4.250.0070.04012.35
5.4.240.0050.03912.34
5.4.230.0090.03512.34
5.4.220.0050.03712.34
5.4.210.0060.04212.34
5.4.200.0090.03812.34
5.4.190.0080.03712.34
5.4.180.0060.03712.34
5.4.170.0110.03812.35
5.4.160.0080.03412.35
5.4.150.0060.03812.34
5.4.140.0050.03912.03
5.4.130.0050.03812.02
5.4.120.0090.03711.97
5.4.110.0060.03811.96
5.4.100.0040.04011.97
5.4.90.0050.04111.97
5.4.80.0060.04411.97
5.4.70.0050.03611.96
5.4.60.0070.03711.97
5.4.50.0050.04011.96
5.4.40.0100.03411.95
5.4.30.0070.03411.94
5.4.20.0070.04411.95
5.4.10.0050.04011.95
5.4.00.0090.03511.44
5.3.290.0050.04812.80
5.3.280.0060.04112.71
5.3.270.0060.03912.73
5.3.260.0070.03812.72
5.3.250.0060.03712.71
5.3.240.0060.03712.72
5.3.230.0040.03912.71
5.3.220.0070.03412.68
5.3.210.0060.04112.68
5.3.200.0110.03512.68
5.3.190.0060.03712.68
5.3.180.0060.03712.68
5.3.170.0050.03712.67
5.3.160.0040.04012.68
5.3.150.0040.03912.67
5.3.140.0040.03812.66
5.3.130.0060.03812.65
5.3.120.0040.04112.66
5.3.110.0030.04212.65
5.3.100.0060.03612.12
5.3.90.0070.03512.08
5.3.80.0050.04112.08
5.3.70.0070.04012.07
5.3.60.0080.03612.06
5.3.50.0050.03812.00
5.3.40.0090.03612.00
5.3.30.0040.03711.96
5.3.20.0080.03311.73
5.3.10.0060.03611.70
5.3.00.0050.03711.69
5.2.170.0080.0339.19
5.2.160.0040.0319.19
5.2.150.0040.0319.19
5.2.140.0070.0359.18
5.2.130.0020.0329.14
5.2.120.0030.0309.14
5.2.110.0050.0309.16
5.2.100.0040.0309.15
5.2.90.0050.0289.15
5.2.80.0060.0289.14
5.2.70.0040.0319.14
5.2.60.0030.0319.10
5.2.50.0040.0319.07
5.2.40.0070.0269.05
5.2.30.0060.0289.03
5.2.20.0060.0279.01
5.2.10.0050.0288.93
5.2.00.0050.0288.79
5.1.60.0040.0258.08
5.1.50.0030.0258.08
5.1.40.0040.0248.06
5.1.30.0020.0288.41
5.1.20.0060.0258.43
5.1.10.0040.0288.16
5.1.00.0040.0258.16
5.0.50.0060.0186.64
5.0.40.0030.0196.51
5.0.30.0030.0316.31
5.0.20.0050.0186.29
5.0.10.0020.0216.27
5.0.00.0050.0296.26
4.4.90.0020.0164.78
4.4.80.0050.0134.75
4.4.70.0040.0184.75
4.4.60.0060.0214.75
4.4.50.0030.0214.77
4.4.40.0040.0254.71
4.4.30.0020.0184.76
4.4.20.0030.0164.85
4.4.10.0020.0174.84
4.4.00.0050.0234.75
4.3.110.0040.0144.67
4.3.100.0030.0154.66
4.3.90.0050.0124.64
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0010.0173.30
4.3.20.0010.0163.28
4.3.10.0020.0153.23
4.3.00.0130.0237.48

preferences:
44.54 ms | 401 KiB | 5 Q