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.0150.00618.43
8.3.50.0070.01321.31
8.3.40.0110.00418.84
8.3.30.0090.00619.02
8.3.20.0040.00420.30
8.3.10.0060.01221.75
8.3.00.0000.00819.50
8.2.180.0070.01016.50
8.2.170.0100.01022.96
8.2.160.0200.00020.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.01422.23
8.2.110.0060.00322.18
8.2.100.0060.00617.75
8.2.90.0040.00419.09
8.2.80.0090.00017.97
8.2.70.0080.00017.75
8.2.60.0060.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00420.00
8.2.30.0000.00818.00
8.2.20.0060.00317.80
8.2.10.0080.00018.09
8.2.00.0030.00617.92
8.1.280.0110.00725.92
8.1.270.0040.00422.10
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00923.80
8.1.230.0110.00018.98
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0040.00417.34
8.1.180.0080.00018.10
8.1.170.0000.00818.68
8.1.160.0040.00422.01
8.1.150.0050.00318.91
8.1.140.0050.00317.61
8.1.130.0070.00017.86
8.1.120.0000.00717.62
8.1.110.0000.00917.68
8.1.100.0040.00417.54
8.1.90.0040.00417.64
8.1.80.0070.00017.57
8.1.70.0000.00717.51
8.1.60.0030.00617.63
8.1.50.0040.00417.68
8.1.40.0030.00717.68
8.1.30.0040.00417.72
8.1.20.0030.00517.64
8.1.10.0070.00017.64
8.1.00.0030.00617.49
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.35
8.0.270.0040.00417.34
8.0.260.0070.00017.34
8.0.250.0030.00317.04
8.0.240.0000.00617.16
8.0.230.0000.00717.13
8.0.220.0030.00317.14
8.0.210.0060.00016.99
8.0.200.0030.00317.18
8.0.190.0060.00617.05
8.0.180.0000.00717.15
8.0.170.0080.00017.02
8.0.160.0040.00417.01
8.0.150.0040.00417.02
8.0.140.0080.00017.04
8.0.130.0000.00513.57
8.0.120.0000.00817.09
8.0.110.0040.00417.07
8.0.100.0040.00416.90
8.0.90.0000.00817.18
8.0.80.0000.01517.11
8.0.70.0000.00816.98
8.0.60.0050.00216.91
8.0.50.0000.00816.96
8.0.30.0140.00617.33
8.0.20.0090.01217.40
8.0.10.0060.00317.06
8.0.00.0110.00717.00
7.4.330.0050.00015.00
7.4.320.0030.00316.64
7.4.300.0030.00316.70
7.4.290.0030.00316.70
7.4.280.0040.00416.79
7.4.270.0000.00716.74
7.4.260.0000.00716.73
7.4.250.0050.00216.78
7.4.240.0050.00216.78
7.4.230.0000.00816.51
7.4.220.0090.00916.79
7.4.210.0080.00516.84
7.4.200.0020.00516.76
7.4.160.0060.01016.67
7.4.150.0180.00617.40
7.4.140.0180.00817.86
7.4.130.0030.01416.61
7.4.120.0080.01216.66
7.4.110.0070.01116.82
7.4.100.0060.01216.73
7.4.90.0180.00716.70
7.4.80.0130.00619.39
7.4.70.0060.01016.77
7.4.60.0000.01716.70
7.4.50.0060.00316.69
7.4.40.0090.00916.79
7.4.30.0090.01316.68
7.4.00.0050.01015.23
7.3.330.0050.00013.35
7.3.320.0050.00013.30
7.3.310.0070.00016.52
7.3.300.0020.00516.34
7.3.290.0080.00716.49
7.3.280.0130.00416.49
7.3.270.0060.01217.40
7.3.260.0030.01416.41
7.3.250.0080.01016.58
7.3.240.0150.00916.78
7.3.230.0180.00316.46
7.3.210.0120.00616.52
7.3.200.0120.00619.39
7.3.190.0110.00616.60
7.3.180.0100.00616.49
7.3.170.0100.01016.44
7.3.160.0120.00316.59
7.3.120.0100.00914.98
7.3.110.0120.00614.82
7.3.100.0050.01015.11
7.3.90.0060.00715.07
7.3.80.0030.01014.97
7.3.70.0020.01115.09
7.3.60.0050.00515.08
7.3.50.0050.01114.80
7.3.40.0080.00714.98
7.3.30.0060.00814.91
7.3.20.0040.01216.84
7.3.10.0050.01116.85
7.3.00.0070.01016.72
7.2.330.0080.00816.87
7.2.320.0090.00916.78
7.2.310.0070.01016.97
7.2.300.0110.00516.69
7.2.290.0170.00916.80
7.2.250.0050.01415.14
7.2.240.0150.00314.97
7.2.230.0080.00915.27
7.2.220.0040.00915.30
7.2.210.0080.00715.18
7.2.200.0040.01015.21
7.2.190.0070.00715.13
7.2.180.0120.00215.14
7.2.170.0070.00815.18
7.2.60.0080.00417.17
7.2.00.0070.00719.56
7.1.330.0020.01215.75
7.1.320.0030.00615.95
7.1.310.0030.01215.73
7.1.300.0040.00715.79
7.1.290.0000.00915.92
7.1.280.0040.00715.82
7.1.270.0000.00915.92
7.1.260.0050.00715.88
7.1.200.0050.00516.06
7.1.100.0030.00518.29
7.1.70.0040.00417.48
7.1.60.0060.01619.11
7.1.50.0040.02116.85
7.1.00.0070.07322.29
7.0.200.0000.00716.65
7.0.140.0000.07722.04
7.0.60.0200.07021.74
7.0.50.0200.06317.65
7.0.40.0070.08720.08
7.0.30.0370.04720.14
7.0.20.0330.07320.11
7.0.10.0030.05720.31
7.0.00.0100.07020.01
5.6.280.0030.07020.98
5.6.210.0070.06320.55
5.6.200.0070.06318.11
5.6.190.0100.05720.59
5.6.180.0130.04720.45
5.6.170.1100.05020.71
5.6.160.0030.09020.49
5.6.150.0170.06318.09
5.6.140.0100.04718.15
5.6.130.0030.09318.11
5.6.120.0100.08320.93
5.6.110.0070.08321.00
5.6.100.0100.05720.97
5.6.90.0030.06320.94
5.6.80.0070.04020.36
5.5.350.0070.07720.43
5.5.340.0030.09017.95
5.5.330.0070.08320.40
5.5.320.0300.04020.23
5.5.310.0270.06720.23
5.5.300.0030.04318.01
5.5.290.0100.03317.90
5.5.280.0170.07020.72
5.5.270.0070.06320.80
5.5.260.0070.04320.82
5.5.250.0030.07320.48
5.5.240.0100.06720.22
5.4.450.0370.05719.42
5.4.440.0370.06719.42
5.4.430.0270.07019.56
5.4.420.0270.03719.22
5.4.410.0400.06319.44
5.4.400.0270.04718.92
5.4.390.0300.06318.93
5.4.380.0300.05018.80
5.4.370.0330.05319.08
5.4.360.0270.03718.88
5.4.350.0270.06319.22
5.4.340.0370.06318.92
5.4.320.0230.06718.92
5.4.310.0330.06719.08
5.4.300.0230.04019.12
5.4.290.0230.04318.79
5.4.280.0270.04018.92
5.4.270.0230.07019.08
5.4.260.0370.07318.93
5.4.250.0270.05718.80
5.4.240.0330.04719.04
5.4.230.0300.07318.92
5.4.220.0430.06019.08
5.4.210.0330.07018.80
5.4.200.0330.06319.09
5.4.190.0300.06719.22
5.4.180.0300.05018.78
5.4.170.0230.03719.12
5.4.160.0330.06319.07
5.4.150.0270.07019.11
5.4.140.0330.04316.43
5.4.130.0370.05316.36
5.4.120.0370.06716.36
5.4.110.0400.06016.24
5.4.100.0270.07016.46
5.4.90.0370.06316.44
5.4.80.0430.05016.48
5.4.70.0330.06716.37
5.4.60.0500.05016.37
5.4.50.0300.04716.24
5.4.40.0300.06316.17
5.4.30.0230.04016.31
5.4.20.0430.06016.43
5.4.10.0300.03716.43
5.4.00.0370.04015.82
5.3.290.0270.06714.52
5.3.280.0270.06714.68
5.3.270.0270.03714.46
5.3.260.0300.04314.60
5.3.250.0370.04014.64
5.3.240.0300.04314.63
5.3.230.0270.07314.68
5.3.220.0330.05314.48
5.3.210.0300.07714.40
5.3.200.0400.05014.63
5.3.190.0330.04014.42
5.3.180.0370.06714.39
5.3.170.0370.04714.59
5.3.160.0330.06714.59
5.3.150.0330.05714.41
5.3.140.0370.06314.48
5.3.130.0200.04014.40
5.3.120.0300.07314.45
5.3.110.0370.04014.42
5.3.100.0230.08313.98
5.3.90.0400.03314.11
5.3.80.0270.07014.04
5.3.70.0270.04014.10
5.3.60.0330.06013.84
5.3.50.0230.05013.82
5.3.40.0300.07013.97
5.3.30.0370.05713.78
5.3.20.0330.04013.52
5.3.10.0270.06013.63
5.3.00.0270.05013.45
5.2.170.0230.05311.16
5.2.160.0300.05311.24
5.2.150.0230.05711.08
5.2.140.0300.05311.17
5.2.130.0230.06011.14
5.2.120.0300.05011.27
5.2.110.0200.06010.93
5.2.100.0330.04011.14
5.2.90.0300.03010.96
5.2.80.0300.05711.18
5.2.70.0270.02311.03
5.2.60.0230.03711.14
5.2.50.0230.03710.87
5.2.40.0300.04711.04
5.2.30.0170.03310.86
5.2.20.0130.03310.83
5.2.10.0170.02710.90
5.2.00.0070.03710.61
5.1.60.0130.0279.90
5.1.50.0100.02710.14
5.1.40.0130.02710.05
5.1.30.0100.02710.25
5.1.20.0100.03010.50
5.1.10.0170.0409.99
5.1.00.0100.0309.99
5.0.50.0130.0179.84
5.0.40.0100.0179.84
5.0.30.0100.0279.84
5.0.20.0100.0179.84
5.0.10.0070.0179.84
5.0.00.0130.0279.84
4.4.90.0130.0139.84
4.4.80.0130.0339.84
4.4.70.0070.0179.84
4.4.60.0070.0179.84
4.4.50.0070.0179.84
4.4.40.0030.0279.84
4.4.30.0030.0209.84
4.4.20.0030.0179.84
4.4.10.0070.0179.84
4.4.00.0170.0209.84
4.3.110.0070.0139.84
4.3.100.0030.0209.84
4.3.90.0070.0139.84
4.3.80.0170.0179.84
4.3.70.0070.0139.84
4.3.60.0030.0209.84
4.3.50.0030.0209.84
4.3.40.0030.0239.84
4.3.30.0030.0139.84
4.3.20.0030.0179.84
4.3.10.0000.0179.84
4.3.00.0030.0139.84

preferences:
42.39 ms | 401 KiB | 5 Q