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.0070.01418.55
8.3.50.0180.00521.15
8.3.40.0030.01418.92
8.3.30.0120.00619.08
8.3.20.0000.00820.13
8.3.10.0000.00821.90
8.3.00.0060.00319.38
8.2.180.0080.00816.63
8.2.170.0090.00622.96
8.2.160.0060.00920.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.30
8.2.110.0060.00322.25
8.2.100.0040.00818.09
8.2.90.0050.00318.00
8.2.80.0040.00418.03
8.2.70.0040.00417.93
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0040.00420.47
8.2.30.0040.00418.12
8.2.20.0080.00017.77
8.2.10.0050.00218.13
8.2.00.0040.00417.83
8.1.280.0030.01525.92
8.1.270.0080.00022.01
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.13
8.1.230.0030.00719.00
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0070.00317.25
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0080.00021.95
8.1.150.0000.00718.84
8.1.140.0000.00717.55
8.1.130.0000.00717.84
8.1.120.0000.00817.55
8.1.110.0030.00617.64
8.1.100.0040.00417.50
8.1.90.0000.00817.49
8.1.80.0030.00517.62
8.1.70.0040.00417.55
8.1.60.0000.01017.62
8.1.50.0030.00517.73
8.1.40.0060.00317.57
8.1.30.0030.00617.68
8.1.20.0050.00317.81
8.1.10.0000.00817.58
8.1.00.0000.00917.49
8.0.300.0000.00819.90
8.0.290.0030.00517.00
8.0.280.0000.00718.40
8.0.270.0040.00417.23
8.0.260.0070.00017.27
8.0.250.0030.00517.14
8.0.240.0000.00717.27
8.0.230.0000.00817.27
8.0.220.0030.00317.23
8.0.210.0070.00017.09
8.0.200.0000.00617.23
8.0.190.0070.00317.25
8.0.180.0000.00717.12
8.0.170.0060.00317.20
8.0.160.0030.00517.18
8.0.150.0040.00417.13
8.0.140.0040.00417.14
8.0.130.0050.00013.58
8.0.120.0080.00017.16
8.0.110.0040.00417.11
8.0.100.0040.00417.18
8.0.90.0000.00717.01
8.0.80.0060.00917.22
8.0.70.0040.00417.13
8.0.60.0040.00417.28
8.0.50.0040.00417.16
8.0.30.0120.00817.20
8.0.20.0080.01217.43
8.0.10.0060.00317.11
8.0.00.0140.00816.94
7.4.330.0050.00015.00
7.4.320.0030.00316.69
7.4.300.0030.00316.85
7.4.290.0050.00316.82
7.4.280.0050.00216.71
7.4.270.0000.00816.80
7.4.260.0070.00016.71
7.4.250.0040.00416.67
7.4.240.0000.00716.79
7.4.230.0000.00716.56
7.4.220.0170.00716.85
7.4.210.0070.01416.59
7.4.200.0040.00416.85
7.4.160.0130.00316.57
7.4.150.0070.01817.40
7.4.140.0110.01017.86
7.4.130.0090.00916.73
7.4.120.0150.00516.79
7.4.110.0030.01516.71
7.4.100.0200.00316.89
7.4.90.0070.01016.77
7.4.80.0060.01219.39
7.4.70.0030.01416.76
7.4.60.0090.01216.68
7.4.50.0030.00316.75
7.4.40.0110.00816.73
7.4.30.0080.00816.76
7.4.00.0080.00815.00
7.3.330.0050.00013.37
7.3.320.0050.00013.28
7.3.310.0080.00016.37
7.3.300.0000.00716.59
7.3.290.0070.00816.55
7.3.280.0080.01016.55
7.3.270.0110.00717.40
7.3.260.0140.00316.54
7.3.250.0080.01016.45
7.3.240.0110.01216.73
7.3.230.0130.00316.72
7.3.210.0060.01216.57
7.3.200.0100.00719.39
7.3.190.0040.01416.75
7.3.180.0030.01216.46
7.3.170.0060.01216.76
7.3.160.0090.00616.53
7.3.120.0000.01815.07
7.3.110.0110.00414.73
7.3.100.0040.01415.26
7.3.90.0060.01014.94
7.3.80.0000.01515.00
7.3.70.0070.00715.30
7.3.60.0030.01315.08
7.3.50.0000.00915.12
7.3.40.0080.00814.87
7.3.30.0030.01015.06
7.3.20.0120.00616.95
7.3.10.0000.01716.79
7.3.00.0030.01016.94
7.2.330.0090.00916.80
7.2.320.0060.01616.91
7.2.310.0100.00616.80
7.2.300.0000.01716.80
7.2.290.0170.00716.76
7.2.250.0140.00715.11
7.2.240.0100.00715.06
7.2.230.0060.01315.13
7.2.220.0090.00614.85
7.2.210.0000.01715.29
7.2.200.0060.00914.97
7.2.190.0040.00815.20
7.2.180.0000.01515.29
7.2.170.0030.01315.31
7.2.00.0060.00919.62
7.1.330.0000.01515.96
7.1.320.0030.01015.98
7.1.310.0040.01215.91
7.1.300.0060.00616.08
7.1.290.0000.01515.80
7.1.280.0030.01015.90
7.1.270.0080.00815.72
7.1.260.0000.01215.91
7.1.100.0000.01218.27
7.1.70.0000.00717.39
7.1.60.0120.01219.11
7.1.50.0200.00317.26
7.1.00.0000.08022.42
7.0.200.0030.00817.03
7.0.140.0000.07722.07
7.0.60.0000.05719.87
7.0.50.0100.03717.81
7.0.40.0070.06720.07
7.0.30.0300.03720.05
7.0.20.0270.08320.13
7.0.10.0130.04320.02
7.0.00.0070.05720.21
5.6.280.0070.07021.09
5.6.210.0070.04720.60
5.6.200.0000.04318.17
5.6.190.0030.04320.57
5.6.180.0200.04020.64
5.6.170.1330.05020.38
5.6.160.0070.07020.48
5.6.150.0000.08318.12
5.6.140.0130.04718.18
5.6.130.0030.09018.17
5.6.120.0070.05720.89
5.6.110.0130.07020.98
5.6.100.0030.04020.98
5.6.90.0200.05720.96
5.6.80.0070.04320.55
5.5.350.0170.07020.43
5.5.340.0070.08317.98
5.5.330.0130.08320.14
5.5.320.0400.07020.17
5.5.310.0330.04320.24
5.5.300.0100.04017.91
5.5.290.0030.04018.01
5.5.280.0100.06720.79
5.5.270.0030.07020.64
5.5.260.0070.07720.75
5.5.250.0100.08020.54
5.5.240.0230.07320.25
5.4.450.0800.05319.40
5.4.440.0930.06319.23
5.4.430.0030.06019.43
5.4.420.0630.00019.59
5.4.410.0630.00019.36
5.4.400.0630.00019.16
5.4.390.0600.00019.07
5.4.380.0630.00019.00
5.4.370.0630.00019.08
5.4.360.0600.00019.18
5.4.350.0630.00019.05
5.4.340.0080.04011.97
5.4.320.0080.03612.45
5.4.310.0040.03912.45
5.4.300.0080.03412.45
5.4.290.0090.03512.45
5.4.280.0080.03312.34
5.4.270.0100.03212.35
5.4.260.0050.03812.34
5.4.250.0100.04012.35
5.4.240.0050.03912.35
5.4.230.0100.03512.34
5.4.220.0050.03612.34
5.4.210.0080.04412.34
5.4.200.0040.03912.34
5.4.190.0080.03512.33
5.4.180.0110.03112.34
5.4.170.0050.03712.35
5.4.160.0050.04412.34
5.4.150.0090.03512.34
5.4.140.0070.03512.02
5.4.130.0050.03612.01
5.4.120.0080.03211.96
5.4.110.0070.03311.96
5.4.100.0060.03511.96
5.4.90.0050.03711.96
5.4.80.0060.03811.96
5.4.70.0080.03311.96
5.4.60.0080.03611.96
5.4.50.0090.03411.96
5.4.40.0070.03311.95
5.4.30.0090.03311.95
5.4.20.0080.03411.95
5.4.10.0110.03111.95
5.4.00.0110.03011.44
5.3.290.0080.03712.80
5.3.280.0060.03812.71
5.3.270.0070.03812.73
5.3.260.0100.03512.72
5.3.250.0080.04112.72
5.3.240.0070.03712.72
5.3.230.0120.03712.71
5.3.220.0070.03612.68
5.3.210.0040.04012.68
5.3.200.0130.03812.68
5.3.190.0080.03612.68
5.3.180.0060.03612.67
5.3.170.0060.03612.67
5.3.160.0090.03412.67
5.3.150.0040.03812.68
5.3.140.0050.03612.66
5.3.130.0100.03512.66
5.3.120.0040.04112.66
5.3.110.0050.04012.66
5.3.100.0090.03412.12
5.3.90.0100.03212.08
5.3.80.0100.03212.08
5.3.70.0090.03312.07
5.3.60.0050.03812.06
5.3.50.0080.03512.00
5.3.40.0060.03612.00
5.3.30.0060.03611.95
5.3.20.0060.03611.72
5.3.10.0070.03311.69
5.3.00.0060.03511.68
5.2.170.0040.0359.18
5.2.160.0040.0319.18
5.2.150.0050.0319.18
5.2.140.0080.0279.17
5.2.130.0030.0309.14
5.2.120.0060.0269.13
5.2.110.0050.0289.14
5.2.100.0060.0279.14
5.2.90.0030.0339.14
5.2.80.0040.0319.14
5.2.70.0050.0309.14
5.2.60.0100.0259.09
5.2.50.0070.0349.05
5.2.40.0050.0289.04
5.2.30.0050.0289.01
5.2.20.0070.0299.00
5.2.10.0050.0278.92
5.2.00.0030.0308.78
5.1.60.0070.0228.06
5.1.50.0030.0258.06
5.1.40.0060.0228.04
5.1.30.0090.0218.39
5.1.20.0050.0298.41
5.1.10.0060.0248.14
5.1.00.0050.0248.14
5.0.50.0030.0216.61
5.0.40.0040.0196.47
5.0.30.0020.0326.29
5.0.20.0060.0176.26
5.0.10.0080.0166.24
5.0.00.0030.0306.23
4.4.90.0030.0154.78
4.4.80.0040.0134.75
4.4.70.0020.0164.75
4.4.60.0040.0144.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0184.84
4.4.10.0050.0134.85
4.4.00.0030.0244.76
4.3.110.0030.0154.66
4.3.100.0020.0194.67
4.3.90.0070.0194.64
4.3.80.0020.0254.58
4.3.70.0010.0154.63
4.3.60.0060.0114.63
4.3.50.0050.0134.63
4.3.40.0050.0264.54
4.3.30.0020.0153.28
4.3.20.0020.0153.26
4.3.10.0020.0163.21
4.3.00.0030.0207.51

preferences:
41.5 ms | 401 KiB | 5 Q