3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "AppleCrab123!"; $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 digits echo $specialChar . " " . $numberChar . " " . $upperChar;

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.01018.30
8.3.50.0120.00821.28
8.3.40.0060.01218.92
8.3.30.0100.01018.92
8.3.20.0070.00020.34
8.3.10.0040.00421.95
8.3.00.0030.00619.23
8.2.180.0160.00316.63
8.2.170.0150.00022.96
8.2.160.0100.00320.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00422.11
8.2.110.0030.00621.94
8.2.100.0060.00617.88
8.2.90.0040.00419.08
8.2.80.0060.00317.97
8.2.70.0050.00317.75
8.2.60.0080.00517.93
8.2.50.0030.00518.07
8.2.40.0000.00819.78
8.2.30.0080.00018.05
8.2.20.0030.00517.75
8.2.10.0020.00518.04
8.2.00.0080.00017.90
8.1.280.0070.01125.92
8.1.270.0040.00422.11
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00419.26
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0000.00821.97
8.1.150.0040.00418.90
8.1.140.0000.00717.60
8.1.130.0050.00317.84
8.1.120.0000.00717.51
8.1.110.0050.00317.68
8.1.100.0040.00417.67
8.1.90.0000.00817.49
8.1.80.0000.00717.60
8.1.70.0000.00717.49
8.1.60.0030.00517.56
8.1.50.0000.00817.72
8.1.40.0030.00617.70
8.1.30.0030.00617.85
8.1.20.0040.00417.77
8.1.10.0040.00417.63
8.1.00.0040.00417.62
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.38
8.0.270.0070.00017.20
8.0.260.0030.00317.26
8.0.250.0020.00517.09
8.0.240.0030.00316.97
8.0.230.0000.00716.98
8.0.220.0030.00317.08
8.0.210.0000.00717.06
8.0.200.0030.00317.10
8.0.190.0050.00517.10
8.0.180.0030.00517.07
8.0.170.0040.00416.96
8.0.160.0030.00317.10
8.0.150.0030.00516.94
8.0.140.0000.00816.92
8.0.130.0060.00013.49
8.0.120.0050.00316.90
8.0.110.0000.00717.03
8.0.100.0070.00017.09
8.0.90.0070.00016.99
8.0.80.0090.00617.09
8.0.70.0070.00016.92
8.0.60.0030.00616.94
8.0.50.0000.00716.93
8.0.30.0130.01017.43
8.0.20.0110.00817.44
8.0.10.0030.00616.99
8.0.00.0110.00917.00
7.4.330.0000.00515.18
7.4.320.0030.00316.73
7.4.300.0040.00416.63
7.4.290.0000.00716.70
7.4.280.0000.00816.71
7.4.270.0070.00016.79
7.4.260.0000.00716.71
7.4.250.0040.00416.78
7.4.240.0000.00716.68
7.4.230.0070.00016.68
7.4.220.0100.00716.62
7.4.210.0120.00916.79
7.4.200.0030.00316.77
7.4.160.0130.00316.51
7.4.150.0100.01017.40
7.4.140.0070.01117.86
7.4.130.0090.01216.61
7.4.120.0050.01116.67
7.4.110.0130.00616.64
7.4.100.0110.00616.73
7.4.90.0170.00016.62
7.4.80.0240.01519.39
7.4.70.0100.00616.63
7.4.60.0030.01416.69
7.4.50.0030.00516.45
7.4.40.0050.01216.63
7.4.30.0000.01616.61
7.4.00.0000.01414.93
7.3.330.0030.00313.16
7.3.320.0020.00213.25
7.3.310.0000.00716.44
7.3.300.0030.00316.39
7.3.290.0080.00916.40
7.3.280.0050.01316.42
7.3.270.0070.01017.40
7.3.260.0140.00816.47
7.3.250.0120.00516.38
7.3.240.0000.02116.72
7.3.230.0100.01016.45
7.3.210.0080.01016.44
7.3.200.0140.00319.39
7.3.190.0110.00816.82
7.3.180.0040.01116.68
7.3.170.0160.00016.68
7.3.160.0090.00616.45
7.3.10.0110.00616.38
7.3.00.0070.00816.86
7.2.330.0130.00616.83
7.2.320.0120.00816.90
7.2.310.0190.00816.77
7.2.300.0040.01216.92
7.2.290.0070.01116.90
7.2.130.0100.00616.76
7.2.120.0090.00816.78
7.2.110.0080.00916.80
7.2.100.0080.01017.02
7.2.90.0100.00816.94
7.2.80.0110.00917.01
7.2.70.0120.00716.69
7.2.60.0080.00716.71
7.2.50.0080.00816.72
7.2.40.0120.01016.64
7.2.30.0030.01316.86
7.2.20.0070.00916.93
7.2.10.0110.00716.92
7.2.00.0110.00917.82
7.1.250.0130.00315.96
7.1.240.0040.00715.86
7.1.230.0090.00915.91
7.1.220.0070.00715.88
7.1.210.0120.00615.83
7.1.200.0040.00815.71
7.1.190.0140.00415.81
7.1.180.0040.01115.64
7.1.170.0030.00615.59
7.1.160.0100.00315.76
7.1.150.0120.00615.96
7.1.140.0080.00815.73
7.1.130.0060.01016.00
7.1.120.0000.01615.90
7.1.110.0080.00815.97
7.1.100.0100.00617.14
7.1.90.0200.00615.78
7.1.80.0080.00415.91
7.1.70.0030.00816.42
7.1.60.0090.01217.35
7.1.50.0140.00316.55
7.1.40.0070.00715.61
7.1.30.0040.00715.75
7.1.20.0060.01315.93
7.1.10.0090.00315.77
7.1.00.0040.04119.20
7.0.330.0100.00315.79
7.0.320.0030.01415.33
7.0.310.0060.01315.58
7.0.300.0210.00415.70
7.0.290.0210.00315.45
7.0.280.0280.00915.35
7.0.270.0170.01415.57
7.0.260.0250.00815.78
7.0.250.0180.01515.33
7.0.240.0090.01115.32
7.0.230.0130.01315.68
7.0.220.0210.00615.54
7.0.210.0030.01215.52
7.0.200.0070.00615.95
7.0.190.0080.00015.72
7.0.180.0130.00915.33
7.0.170.0100.00615.45
7.0.160.0070.00315.28
7.0.150.0060.00915.57
7.0.140.0040.04118.76
7.0.130.0140.00315.55
7.0.120.0210.00015.50
7.0.110.0170.00315.77
7.0.100.0100.00315.52
7.0.90.0000.01215.39
7.0.80.0030.00615.28
7.0.70.0130.01015.40
7.0.60.0170.04217.73
7.0.50.0090.02716.58
7.0.40.0080.04016.85
7.0.30.0220.02716.77
7.0.20.0250.03916.72
7.0.10.0100.02416.88
7.0.00.0080.02716.81
5.6.380.0080.00814.43
5.6.370.0070.00714.53
5.6.360.0040.00413.96
5.6.350.0000.01514.32
5.6.340.0040.00914.33
5.6.330.0040.01114.26
5.6.320.0240.00914.12
5.6.310.0110.01113.97
5.6.300.0100.00513.92
5.6.290.0110.00313.95
5.6.280.0050.04017.63
5.6.270.0060.00614.34
5.6.260.0030.01314.32
5.6.250.0080.00514.33
5.6.240.0120.00014.09
5.6.230.0120.00614.48
5.6.220.0130.00714.33
5.6.210.0060.02517.36
5.6.200.0160.04116.27
5.6.190.0100.04317.59
5.6.180.0150.02417.32
5.6.170.0780.03117.29
5.6.160.0060.02617.42
5.6.150.0030.03516.21
5.6.140.0080.03816.12
5.6.130.0090.02716.31
5.6.120.0090.03817.60
5.6.110.0160.04017.74
5.6.100.0130.03517.60
5.6.90.0050.03717.81
5.6.80.0030.02617.30
5.6.70.0080.00814.33
5.6.60.0130.00614.21
5.6.50.0100.00714.11
5.6.40.0080.00314.11
5.6.30.0180.00414.53
5.6.20.0080.00514.57
5.6.10.0110.01114.19
5.6.00.0100.00614.26
5.5.380.0110.00411.02
5.5.370.0000.00611.01
5.5.360.0060.00311.04
5.5.350.0150.03715.68
5.5.340.0090.03714.47
5.5.330.0050.02415.84
5.5.320.0220.03815.76
5.5.310.0260.03515.55
5.5.300.0120.04014.42
5.5.290.0060.02614.46
5.5.280.0140.03915.92
5.5.270.0030.04815.85
5.5.260.0100.02115.87
5.5.250.0070.04415.80
5.5.240.0140.04015.62
5.5.230.0060.00310.80
5.5.220.0040.01311.05
5.5.210.0040.00710.77
5.5.200.0050.00511.01
5.5.190.0060.00610.76
5.5.180.0070.00411.09
5.5.170.0060.00311.13
5.5.160.0080.00511.15
5.5.150.0130.00011.02
5.5.140.0050.01010.85
5.5.130.0220.00310.67
5.5.120.0240.00611.00
5.5.110.0080.00510.76
5.5.100.0050.01310.87
5.5.90.0310.00010.64
5.5.80.0100.00710.74
5.5.70.0060.00810.75
5.5.60.0160.00911.11
5.5.50.0180.00611.02
5.5.40.0090.00410.86
5.5.30.0060.01210.98
5.5.20.0120.00610.77
5.5.10.0190.00611.03
5.5.00.0140.00710.98
5.4.450.0500.02915.13
5.4.440.0560.02915.15
5.4.430.0580.03015.24
5.4.420.0370.00015.16
5.4.410.0360.00315.21
5.4.400.0400.00015.01
5.4.390.0390.00014.99
5.4.380.0330.00314.96
5.4.370.0350.00215.00
5.4.360.0390.00214.95
5.4.350.0380.00214.78
5.4.340.0050.02311.55
5.4.330.0040.00411.12
5.4.320.0090.02011.49
5.4.310.0030.02411.64
5.4.300.0050.02111.59
5.4.290.0120.02211.64
5.4.280.0060.02311.62
5.4.270.0100.02411.62
5.4.260.0150.01811.61
5.4.250.0110.02511.53
5.4.240.0110.01911.64
5.4.230.0080.02511.49
5.4.220.0100.01911.50
5.4.210.0120.01811.53
5.4.200.0090.02211.40
5.4.190.0100.02311.39
5.4.180.0070.02711.40
5.4.170.0140.01911.63
5.4.160.0170.02011.64
5.4.150.0110.02111.72
5.4.140.0080.02811.40
5.4.130.0070.02111.53
5.4.120.0100.01811.37
5.4.110.0100.02311.51
5.4.100.0120.02211.27
5.4.90.0110.02111.46
5.4.80.0070.02111.40
5.4.70.0110.02111.44
5.4.60.0060.02211.35
5.4.50.0130.02011.37
5.4.40.0090.01911.43
5.4.30.0160.01611.45
5.4.20.0120.02011.47
5.4.10.0130.02111.44
5.4.00.0070.01911.08
5.3.290.0140.02311.69
5.3.280.0120.01911.55
5.3.270.0150.02311.48
5.3.260.0130.01911.64
5.3.250.0180.02111.61
5.3.240.0140.02011.40
5.3.230.0120.02811.44
5.3.220.0100.02211.49
5.3.210.0090.01911.53
5.3.200.0120.02011.57
5.3.190.0090.02111.53
5.3.180.0120.02211.48
5.3.170.0210.02211.58
5.3.160.0220.02111.58
5.3.150.0170.01911.54
5.3.140.0140.02111.56
5.3.130.0110.02511.51
5.3.120.0140.02511.52
5.3.110.0130.02311.40
5.3.100.0140.01811.27
5.3.90.0150.01811.28
5.3.80.0140.02411.19
5.3.70.0090.02111.23
5.3.60.0090.02111.27
5.3.50.0100.02311.11
5.3.40.0110.01911.20
5.3.30.0040.02511.12
5.3.20.0050.02611.02
5.3.10.0080.02010.92
5.3.00.0060.02310.92
5.2.170.0070.0169.54
5.2.160.0040.0209.54
5.2.150.0030.0219.54
5.2.140.0060.0189.54
5.2.130.0100.0139.52
5.2.120.0070.0159.52
5.2.110.0070.0209.52
5.2.100.0070.0179.52
5.2.90.0080.0169.52
5.2.80.0110.0199.52
5.2.70.0070.0229.51
5.2.60.0080.0159.49
5.2.50.0050.0179.48
5.2.40.0120.0159.47
5.2.30.0100.0189.46
5.2.20.0070.0179.45
5.2.10.0050.0169.42
5.2.00.0050.0189.35
5.1.60.0080.0178.99
5.1.50.0060.0138.98
5.1.40.0040.0178.98
5.1.30.0060.0169.15
5.1.20.0110.0179.16
5.1.10.0060.0149.02
5.1.00.0040.0169.03
5.0.50.0030.0138.26
5.0.40.0050.0108.19
5.0.30.0050.0168.10
5.0.20.0060.0148.09
5.0.10.0020.0158.07
5.0.00.0020.0208.07
4.4.90.0020.0147.34
4.4.80.0010.0127.33
4.4.70.0020.0127.33
4.4.60.0030.0117.33
4.4.50.0030.0117.33
4.4.40.0010.0167.30
4.4.30.0030.0087.33
4.4.20.0020.0117.37
4.4.10.0030.0107.37
4.4.00.0040.0137.33
4.3.110.0030.0097.29
4.3.100.0040.0117.28
4.3.90.0030.0107.27
4.3.80.0050.0137.24
4.3.70.0040.0077.27
4.3.60.0050.0077.26
4.3.50.0020.0147.26
4.3.40.0050.0147.22
4.3.30.0030.0106.60
4.3.20.0030.0096.58
4.3.10.0020.0126.57
4.3.00.0100.0118.70

preferences:
47.59 ms | 401 KiB | 5 Q