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.0100.00716.75
8.3.50.0120.00622.12
8.3.40.0100.00718.96
8.3.30.0080.00818.92
8.3.20.0080.00020.08
8.3.10.0040.00423.56
8.3.00.0030.00619.51
8.2.180.0070.01117.00
8.2.170.0090.00622.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00022.24
8.2.110.0000.00922.13
8.2.100.0070.00418.03
8.2.90.0040.00419.10
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0040.00420.01
8.2.30.0000.00818.16
8.2.20.0000.00817.80
8.2.10.0030.00518.13
8.2.00.0050.00317.84
8.1.280.0090.00625.92
8.1.270.0060.00322.37
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00324.02
8.1.230.0040.00819.27
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.60
8.1.180.0040.00418.10
8.1.170.0000.00818.72
8.1.160.0040.00422.04
8.1.150.0030.00518.95
8.1.140.0000.00717.64
8.1.130.0030.00317.78
8.1.120.0000.00717.68
8.1.110.0000.00817.59
8.1.100.0000.00717.67
8.1.90.0060.00317.67
8.1.80.0000.00717.54
8.1.70.0030.00317.61
8.1.60.0100.00317.74
8.1.50.0040.00417.68
8.1.40.0000.00817.73
8.1.30.0040.00417.88
8.1.20.0000.00917.79
8.1.10.0030.00617.72
8.1.00.0000.00817.65
8.0.300.0090.00018.77
8.0.290.0070.00017.13
8.0.280.0040.00418.51
8.0.270.0050.00217.31
8.0.260.0080.00017.36
8.0.250.0030.00517.29
8.0.240.0030.00317.28
8.0.230.0070.00017.25
8.0.220.0070.00017.17
8.0.210.0030.00317.19
8.0.200.0000.00817.28
8.0.190.0040.00817.23
8.0.180.0000.00817.23
8.0.170.0000.00817.20
8.0.160.0030.00317.10
8.0.150.0040.00417.13
8.0.140.0040.00417.04
8.0.130.0000.00613.58
8.0.120.0040.00417.16
8.0.110.0030.00517.19
8.0.100.0040.00417.20
8.0.90.0040.00417.31
8.0.80.0170.00617.15
8.0.70.0050.00217.13
8.0.60.0040.00417.25
8.0.50.0040.00417.07
8.0.30.0130.00717.39
8.0.20.0130.00717.40
8.0.10.0000.00716.98
8.0.00.0150.00316.99
7.4.330.0050.00015.02
7.4.320.0060.00016.74
7.4.300.0000.00616.88
7.4.290.0030.00316.83
7.4.280.0040.00416.86
7.4.270.0040.00416.76
7.4.260.0070.00016.63
7.4.250.0050.00216.65
7.4.240.0020.00516.76
7.4.230.0040.00416.82
7.4.220.0100.00716.74
7.4.210.0100.01016.82
7.4.200.0040.00416.59
7.4.160.0100.00716.78
7.4.150.0170.00717.40
7.4.140.0110.00917.86
7.4.130.0110.01016.78
7.4.120.0090.00916.72
7.4.110.0030.01516.79
7.4.100.0100.00716.56
7.4.90.0120.00616.83
7.4.80.0110.00619.39
7.4.70.0140.00516.82
7.4.60.0120.01316.54
7.4.50.0000.00816.73
7.4.40.0030.01316.61
7.4.30.0070.01016.78
7.4.10.0060.01215.35
7.4.00.0050.01315.28
7.3.330.0030.00313.39
7.3.320.0000.00613.39
7.3.310.0000.00816.50
7.3.300.0030.00316.57
7.3.290.0090.00716.55
7.3.280.0070.01116.60
7.3.270.0060.01717.40
7.3.260.0100.00716.54
7.3.250.0130.00716.65
7.3.240.0040.01516.84
7.3.230.0100.00716.55
7.3.210.0100.00716.52
7.3.200.0070.01119.39
7.3.190.0090.00916.46
7.3.180.0130.00816.76
7.3.170.0110.00716.82
7.3.160.0100.00716.66
7.3.130.0100.01014.98
7.3.120.0110.00814.69
7.3.110.0060.00915.34
7.3.100.0080.00315.04
7.3.90.0000.01014.90
7.3.80.0080.00415.04
7.3.70.0070.00414.86
7.3.60.0030.01414.75
7.3.50.0000.00914.84
7.3.40.0040.00815.09
7.3.30.0000.01415.11
7.3.20.0100.00316.92
7.3.10.0040.00716.71
7.3.00.0130.00316.60
7.2.330.0150.00316.77
7.2.320.0060.01016.92
7.2.310.0070.01016.81
7.2.300.0130.00316.85
7.2.290.0100.01316.78
7.2.260.0100.01015.30
7.2.250.0070.01015.37
7.2.240.0090.00615.41
7.2.230.0090.00915.27
7.2.220.0130.00315.25
7.2.210.0030.01015.11
7.2.200.0040.00715.13
7.2.190.0060.00915.18
7.2.180.0070.00315.16
7.2.170.0070.00715.39
7.2.160.0030.00615.29
7.2.150.0100.00317.05
7.2.140.0030.01316.94
7.2.130.0080.00716.83
7.2.120.0070.01016.98
7.2.110.0070.01016.85
7.2.100.0050.01216.96
7.2.90.0080.00917.09
7.2.80.0120.00617.03
7.2.70.0070.00516.89
7.2.60.0050.01117.03
7.2.50.0040.01316.96
7.2.40.0040.00917.15
7.2.30.0030.01317.04
7.2.20.0120.00517.01
7.2.10.0050.01016.82
7.2.00.0030.01116.95
7.1.330.0000.01415.86
7.1.320.0070.01015.78
7.1.310.0070.00716.19
7.1.300.0050.00816.07
7.1.290.0060.00615.92
7.1.280.0130.00016.16
7.1.270.0000.01216.03
7.1.260.0100.00615.99
7.1.250.0090.00615.83
7.1.240.0120.00515.84
7.1.230.0100.00615.91
7.1.220.0110.00515.94
7.1.210.0040.01315.80
7.1.200.0060.00515.95
7.1.190.0050.00715.83
7.1.180.0040.01015.74
7.1.170.0080.00715.71
7.1.160.0090.00615.69
7.1.150.0090.00615.86
7.1.140.0060.00915.84
7.1.130.0080.01015.67
7.1.120.0080.00815.79
7.1.110.0080.00715.88
7.1.100.0040.01215.81
7.1.90.0060.00715.93
7.1.80.0110.00715.86
7.1.70.0090.00616.25
7.1.60.0060.01116.88
7.1.50.0140.00416.31
7.1.40.0060.00915.79
7.1.30.0070.01415.88
7.1.20.0090.00615.79
7.1.10.0080.00815.79
7.1.00.0060.03018.05
7.0.330.0090.00415.17
7.0.320.0120.00315.39
7.0.310.0070.00615.49
7.0.300.0080.00615.57
7.0.290.0100.00615.51
7.0.280.0090.00715.40
7.0.270.0050.01015.38
7.0.260.0080.00815.59
7.0.250.0110.00615.56
7.0.240.0100.00715.49
7.0.230.0050.00915.52
7.0.220.0120.00615.62
7.0.210.0080.00915.43
7.0.200.0050.00715.88
7.0.190.0040.01015.39
7.0.180.0110.00315.43
7.0.170.0110.00215.41
7.0.160.0100.00815.61
7.0.150.0090.01015.46
7.0.140.0070.03117.68
7.0.130.0120.00615.63
7.0.120.0080.00815.58
7.0.110.0070.00715.44
7.0.100.0050.01315.59
7.0.90.0070.00615.60
7.0.80.0090.00515.50
7.0.70.0080.00815.45
7.0.60.0060.02016.90
7.0.50.0100.01316.26
7.0.40.0070.03415.61
7.0.30.0240.03115.83
7.0.20.0130.02915.54
7.0.10.0060.02215.67
7.0.00.0010.03315.75
5.6.400.0090.00614.37
5.6.390.0080.00814.36
5.6.380.0050.00814.38
5.6.370.0080.00314.27
5.6.360.0060.00414.50
5.6.350.0050.00914.39
5.6.340.0080.00614.45
5.6.330.0040.00714.28
5.6.320.0060.00714.54
5.6.310.0070.01014.35
5.6.300.0090.01014.41
5.6.290.0050.01114.26
5.6.280.0090.02616.48
5.6.270.0090.00314.32
5.6.260.0090.00614.29
5.6.250.0080.00814.37
5.6.240.0110.00214.25
5.6.230.0020.01314.21
5.6.220.0080.00614.15
5.6.210.0040.02116.52
5.6.200.0040.01715.57
5.6.190.0030.02216.25
5.6.180.0130.03216.45
5.6.170.0450.02116.42
5.6.160.0070.02216.39
5.6.150.0130.02315.69
5.6.140.0090.02115.60
5.6.130.0100.02215.63
5.6.120.0080.01616.47
5.6.110.0070.03216.54
5.6.100.0100.02916.58
5.6.90.0070.01916.47
5.6.80.0040.01916.20
5.6.70.0050.00914.09
5.6.60.0030.00914.17
5.6.50.0040.00914.43
5.6.40.0040.01214.27
5.6.30.0020.01114.48
5.6.20.0070.00714.20
5.6.10.0100.00514.29
5.6.00.0060.01014.09
5.5.380.0060.00512.90
5.5.370.0060.00712.58
5.5.360.0040.00512.56
5.5.350.0090.02115.42
5.5.340.0090.02914.45
5.5.330.0090.01415.30
5.5.320.0080.02815.25
5.5.310.0090.02215.18
5.5.300.0030.03214.56
5.5.290.0060.03114.46
5.5.280.0060.03015.60
5.5.270.0090.03115.16
5.5.260.0040.02015.37
5.5.250.0060.02315.32
5.5.240.0120.03015.15
5.5.230.0040.00912.53
5.5.220.0050.00612.68
5.5.210.0050.00912.62
5.5.200.0030.01112.63
5.5.190.0030.00812.48
5.5.180.0030.00612.69
5.5.170.0020.00912.52
5.5.160.0080.00512.49
5.5.150.0060.00412.51
5.5.140.0080.00312.52
5.5.130.0030.00712.56
5.5.120.0050.00712.52
5.5.110.0030.00712.68
5.5.100.0070.00612.51
5.5.90.0090.00212.39
5.5.80.0030.00512.67
5.5.70.0080.00412.36
5.5.60.0050.00412.30
5.5.50.0050.00412.48
5.5.40.0030.00712.41
5.5.30.0080.00412.53
5.5.20.0010.00712.66
5.5.10.0060.00412.47
5.5.00.0000.01112.55
5.4.450.0130.02114.23
5.4.440.0120.01814.20
5.4.430.0100.02314.15
5.4.420.0160.02814.08
5.4.410.0100.02814.02
5.4.400.0160.02214.04
5.4.390.0110.02913.99
5.4.380.0080.03113.99
5.4.370.0110.02214.06
5.4.360.0090.02813.99
5.4.350.0110.01514.00
5.4.340.0110.01714.04
5.4.330.0070.00511.54
5.4.320.0120.01413.93
5.4.310.0100.01413.92
5.4.300.0110.01813.90
5.4.290.0090.02114.00
5.4.280.0070.02113.87
5.4.270.0110.02114.01
5.4.260.0090.01613.91
5.4.250.0080.02314.00
5.4.240.0070.01713.90
5.4.230.0110.01513.99
5.4.220.0080.01614.10
5.4.210.0070.01813.98
5.4.200.0080.01714.05
5.4.190.0090.01513.92
5.4.180.0110.01614.01
5.4.170.0100.01913.88
5.4.160.0100.01314.06
5.4.150.0140.01413.92
5.4.140.0110.01413.04
5.4.130.0090.01613.13
5.4.120.0130.01113.08
5.4.110.0080.01613.10
5.4.100.0060.01612.99
5.4.90.0110.01313.04
5.4.80.0090.01813.05
5.4.70.0070.02013.07
5.4.60.0090.02813.14
5.4.50.0110.02013.08
5.4.40.0140.02413.13
5.4.30.0180.02313.10
5.4.20.0120.02313.04
5.4.10.0080.02413.09
5.4.00.0100.02712.99
5.3.290.0110.02512.55
5.3.280.0110.02112.34
5.3.270.0160.01512.43
5.3.260.0080.02512.49
5.3.250.0110.02112.62
5.3.240.0050.02512.32
5.3.230.0150.01812.44
5.3.220.0140.01712.44
5.3.210.0100.02112.34
5.3.200.0100.02312.48
5.3.190.0150.02012.54
5.3.180.0150.03612.50
5.3.170.0130.03112.41
5.3.160.0150.03512.58
5.3.150.0190.03012.48
5.3.140.0130.03212.49
5.3.130.0160.03812.47
5.3.120.0200.03312.52
5.3.110.0130.02512.32
5.3.100.0150.02812.11
5.3.90.0130.02612.29
5.3.80.0170.02312.14
5.3.70.0140.03512.22
5.3.60.0130.02612.09
5.3.50.0130.03612.13
5.3.40.0150.03612.13
5.3.30.0130.02312.21
5.3.20.0130.02412.06
5.3.10.0110.02712.09
5.3.00.0140.02112.10
5.2.170.0080.01911.66
5.2.160.0180.02811.71
5.2.150.0180.02711.68
5.2.140.0100.02011.66
5.2.130.0130.03111.69
5.2.120.0150.02511.68
5.2.110.0080.02011.68
5.2.100.0130.03211.71
5.2.90.0150.02311.76
5.2.80.0130.03411.66
5.2.70.0150.02711.66
5.2.60.0130.02211.66
5.2.50.0150.03011.66
5.2.40.0100.03111.67
5.2.30.0080.02411.66
5.2.20.0100.02411.66
5.2.10.0080.01711.66
5.2.00.0120.01211.66
5.1.60.0090.01211.66
5.1.50.0020.01911.66
5.1.40.0110.01411.66
5.1.30.0120.01711.66
5.1.20.0140.01511.66
5.1.10.0100.03411.66
5.1.00.0100.03011.66
5.0.50.0060.01311.66
5.0.40.0120.01711.66
5.0.30.0090.02211.66
5.0.20.0100.01711.66
5.0.10.0060.02211.66
5.0.00.0080.03511.66
4.4.90.0060.02011.66
4.4.80.0080.01511.66
4.4.70.0050.01711.66
4.4.60.0090.01611.66
4.4.50.0090.01111.66
4.4.40.0050.01611.66
4.4.30.0030.01011.66
4.4.20.0030.01311.66
4.4.10.0050.02211.66
4.4.00.0070.02211.66
4.3.110.0070.01311.66
4.3.100.0080.01811.66
4.3.90.0090.01711.66
4.3.80.0050.02811.66
4.3.70.0070.01211.66
4.3.60.0080.01811.66
4.3.50.0100.01711.66
4.3.40.0030.02711.66
4.3.30.0030.01511.66
4.3.20.0050.01511.66
4.3.10.0000.02311.66
4.3.00.0030.01311.66

preferences:
38.34 ms | 401 KiB | 5 Q