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 echo $specialChar . " " . $numberChar;

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.0090.00618.43
8.3.50.0120.00621.29
8.3.40.0130.00318.92
8.3.30.0030.01018.96
8.3.20.0070.00020.16
8.3.10.0090.00921.71
8.3.00.0060.00319.51
8.2.180.0120.00616.75
8.2.170.0140.00322.96
8.2.160.0100.00320.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.35
8.2.110.0070.00421.04
8.2.100.0000.01218.03
8.2.90.0000.00818.89
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0050.00318.10
8.2.40.0000.00819.88
8.2.30.0050.00318.13
8.2.20.0040.00417.72
8.2.10.0040.00418.00
8.2.00.0000.00817.82
8.1.280.0100.01025.92
8.1.270.0040.00422.05
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00721.31
8.1.230.0100.00317.64
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0000.00917.38
8.1.190.0080.00017.38
8.1.180.0040.00418.10
8.1.170.0060.00318.77
8.1.160.0050.00322.00
8.1.150.0040.00418.88
8.1.140.0040.00417.63
8.1.130.0000.00717.75
8.1.120.0000.00717.62
8.1.110.0040.00417.42
8.1.100.0000.00717.59
8.1.90.0040.00417.50
8.1.80.0030.00517.66
8.1.70.0050.00317.56
8.1.60.0000.00917.71
8.1.50.0030.00517.69
8.1.40.0000.00817.70
8.1.30.0000.00917.72
8.1.20.0000.00717.70
8.1.10.0040.00417.64
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00816.73
8.0.280.0000.00818.37
8.0.270.0000.00717.27
8.0.260.0000.00718.44
8.0.250.0030.00317.02
8.0.240.0060.00016.97
8.0.230.0000.00717.09
8.0.220.0000.00716.91
8.0.210.0000.00717.04
8.0.200.0030.00316.99
8.0.190.0030.00616.96
8.0.180.0080.00017.08
8.0.170.0030.00517.06
8.0.160.0020.00517.08
8.0.150.0040.00416.91
8.0.140.0000.00716.95
8.0.130.0060.00013.38
8.0.120.0030.00617.00
8.0.110.0040.00417.06
8.0.100.0040.00417.00
8.0.90.0040.00416.90
8.0.80.0080.00817.07
8.0.70.0050.00216.89
8.0.60.0040.00417.05
8.0.50.0050.00316.97
8.0.30.0120.00917.25
8.0.20.0110.00917.43
8.0.10.0000.00917.16
8.0.00.0090.00916.99
7.4.330.0060.00015.18
7.4.320.0030.00316.77
7.4.300.0000.00716.70
7.4.290.0000.00716.75
7.4.280.0040.00416.78
7.4.270.0080.00016.69
7.4.260.0050.00216.66
7.4.250.0070.00016.75
7.4.240.0000.00716.79
7.4.230.0040.00416.71
7.4.220.0070.01516.66
7.4.210.0080.01216.54
7.4.200.0050.00316.71
7.4.160.0170.00316.74
7.4.150.0100.00717.40
7.4.140.0100.01517.86
7.4.130.0060.01116.53
7.4.120.0090.01016.77
7.4.110.0090.00916.66
7.4.100.0060.01216.51
7.4.90.0140.00316.52
7.4.80.0100.01519.39
7.4.70.0130.00316.64
7.4.60.0040.01316.52
7.4.50.0030.00616.61
7.4.40.0100.00716.66
7.4.30.0100.00616.46
7.4.10.0070.01015.20
7.4.00.0080.00715.07
7.3.330.0030.00313.09
7.3.320.0020.00213.23
7.3.310.0070.00016.41
7.3.300.0000.00716.30
7.3.290.0080.00616.36
7.3.280.0060.01016.29
7.3.270.0140.00617.40
7.3.260.0150.00616.67
7.3.250.0090.00816.32
7.3.240.0080.01116.55
7.3.230.0080.00816.66
7.3.210.0110.00716.58
7.3.200.0060.01219.39
7.3.190.0060.01216.69
7.3.180.0150.00016.72
7.3.170.0030.01316.27
7.3.160.0070.01116.52
7.3.130.0130.00314.89
7.3.120.0100.00814.90
7.3.110.0080.00815.07
7.3.100.0100.00515.00
7.3.90.0090.00515.00
7.3.80.0050.00715.10
7.3.70.0030.01014.96
7.3.60.0060.00914.86
7.3.50.0030.01014.75
7.3.40.0060.00614.86
7.3.30.0060.00914.68
7.3.20.0050.01016.80
7.3.10.0120.00316.70
7.3.00.0050.00716.82
7.2.330.0110.00616.73
7.2.320.0180.00516.77
7.2.310.0230.02016.56
7.2.300.0100.00716.99
7.2.290.0060.01316.64
7.2.260.0030.01115.34
7.2.250.0110.00815.24
7.2.240.0050.01015.22
7.2.230.0080.00815.28
7.2.220.0070.01015.33
7.2.210.0050.01015.24
7.2.200.0080.00715.25
7.2.190.0070.00815.21
7.2.180.0040.00715.25
7.2.170.0030.00915.25
7.2.160.0000.00915.02
7.2.150.0040.01116.94
7.2.140.0150.00017.13
7.2.130.0060.00616.97
7.2.120.0090.00617.02
7.2.110.0030.00717.15
7.2.100.0090.00316.96
7.2.90.0070.00717.28
7.2.80.0000.01617.20
7.2.70.0060.00617.17
7.2.60.0070.00417.05
7.2.50.0060.00617.20
7.2.40.0060.00917.05
7.2.30.0060.00617.07
7.2.20.0000.01116.95
7.2.10.0050.00517.01
7.2.00.0060.00418.42
7.1.330.0070.00815.92
7.1.320.0070.00815.75
7.1.310.0070.00716.01
7.1.300.0090.00515.87
7.1.290.0020.01015.91
7.1.280.0080.00615.93
7.1.270.0090.00315.88
7.1.260.0020.00916.00
7.1.250.0060.00615.93
7.1.240.0060.00615.82
7.1.230.0110.00016.00
7.1.220.0000.01315.70
7.1.210.0130.00315.86
7.1.200.0060.00616.07
7.1.190.0110.00016.09
7.1.180.0000.01215.73
7.1.170.0070.00715.92
7.1.160.0040.00415.99
7.1.150.0060.00315.86
7.1.140.0060.01016.10
7.1.130.0100.00316.04
7.1.120.0080.00415.72
7.1.110.0060.00616.18
7.1.100.0100.00817.12
7.1.90.0060.00615.82
7.1.80.0070.00716.09
7.1.70.0040.00616.71
7.1.60.0050.01417.45
7.1.50.0130.00516.54
7.1.40.0100.00316.00
7.1.30.0040.00715.93
7.1.20.0070.01016.06
7.1.10.0110.00816.02
7.1.00.0020.04219.08
7.0.330.0040.01115.37
7.0.320.0030.01015.23
7.0.310.0090.00315.64
7.0.300.0060.01015.67
7.0.290.0030.00715.77
7.0.280.0070.00315.11
7.0.270.0050.00315.42
7.0.260.0040.01115.41
7.0.250.0040.00715.66
7.0.240.0100.00315.63
7.0.230.0070.00715.63
7.0.220.0080.00015.55
7.0.210.0040.00815.52
7.0.200.0060.00316.31
7.0.190.0040.01015.67
7.0.180.0000.00915.51
7.0.170.0060.00315.38
7.0.160.0060.00615.37
7.0.150.0070.01115.31
7.0.140.0060.04018.69
7.0.130.0030.01015.53
7.0.120.0140.00015.56
7.0.110.0000.01315.36
7.0.100.0030.00715.49
7.0.90.0040.01215.39
7.0.80.0070.00715.48
7.0.70.0000.00815.74
7.0.60.0120.04317.55
7.0.50.0050.02516.61
7.0.40.0030.02716.96
7.0.30.0060.03016.75
7.0.20.0150.03016.81
7.0.10.0070.02316.99
7.0.00.0050.02716.79
5.6.400.0040.01114.44
5.6.390.0070.00714.19
5.6.380.0030.01314.31
5.6.370.0040.01214.40
5.6.360.0050.01114.53
5.6.350.0070.00714.69
5.6.340.0000.01314.18
5.6.330.0070.00414.32
5.6.320.0000.00814.37
5.6.310.0060.00614.16
5.6.300.0040.01114.35
5.6.290.0060.00614.32
5.6.280.0060.04017.61
5.6.270.0060.00614.16
5.6.260.0070.00714.74
5.6.250.0120.00614.50
5.6.240.0110.00314.55
5.6.230.0040.01114.08
5.6.220.0000.01614.63
5.6.210.0080.04217.34
5.6.200.0120.03516.27
5.6.190.0070.04217.46
5.6.180.0100.02717.34
5.6.170.0840.02817.37
5.6.160.0070.04817.39
5.6.150.0090.04316.25
5.6.140.0000.03016.13
5.6.130.0030.03516.18
5.6.120.0070.04317.69
5.6.110.0030.04917.64
5.6.100.0000.02817.77
5.6.90.0030.03317.59
5.6.80.0050.03817.42
5.6.70.0070.00414.16
5.6.60.0000.01114.36
5.6.50.0000.01314.36
5.6.40.0030.01014.22
5.6.30.0030.00914.46
5.6.20.0070.00714.05
5.6.10.0000.01414.11
5.6.00.0040.00414.18
5.5.380.0060.00914.35
5.5.370.0090.00514.16
5.5.360.0120.00314.28
5.5.350.0160.03817.43
5.5.340.0030.02516.11
5.5.330.0000.03217.13
5.5.320.0260.03317.39
5.5.310.0260.03717.18
5.5.300.0050.04316.16
5.5.290.0110.01816.20
5.5.280.0020.04117.47
5.5.270.0050.02617.59
5.5.260.0080.04317.44
5.5.250.0070.03317.40
5.5.240.0200.03517.17
5.5.230.0070.00314.35
5.5.220.0090.00914.14
5.5.210.0120.00614.22
5.5.200.0000.00914.20
5.5.190.0100.00614.42
5.5.180.0000.01514.22
5.5.170.0030.01014.22
5.5.160.0040.00414.30
5.5.150.0040.01114.10
5.5.140.0100.00314.17
5.5.130.0060.00314.52
5.5.120.0030.00814.27
5.5.110.0000.01214.16
5.5.100.0060.00614.52
5.5.90.0080.00414.34
5.5.80.0130.00314.33
5.5.70.0120.00314.31
5.5.60.0070.00714.34
5.5.50.0070.00714.25
5.5.40.0070.00714.23
5.5.30.0070.00714.11
5.5.20.0100.00314.16
5.5.10.0030.00514.07
5.5.00.0040.00714.19
5.4.450.0420.03215.87
5.4.440.0500.02715.79
5.4.430.0350.03515.61
5.4.420.0340.00215.63
5.4.410.0350.00215.72
5.4.400.0330.00215.58
5.4.390.0330.00215.63
5.4.380.0350.00215.66
5.4.370.0350.00315.61
5.4.360.0380.00315.65
5.4.350.0350.00215.52
5.4.340.0050.01912.04
5.4.330.0030.00612.13
5.4.320.0050.02312.29
5.4.310.0070.02012.29
5.4.300.0080.01912.29
5.4.290.0050.02012.29
5.4.280.0060.01912.23
5.4.270.0050.02212.23
5.4.260.0080.01912.24
5.4.250.0020.02512.23
5.4.240.0040.02012.23
5.4.230.0040.02212.23
5.4.220.0010.02612.23
5.4.210.0020.02212.23
5.4.200.0060.02312.23
5.4.190.0040.02212.23
5.4.180.0060.02112.23
5.4.170.0040.02212.24
5.4.160.0090.02112.23
5.4.150.0030.02412.23
5.4.140.0060.02612.07
5.4.130.0050.02312.07
5.4.120.0040.02112.05
5.4.110.0060.02312.04
5.4.100.0040.02312.04
5.4.90.0040.02212.04
5.4.80.0080.02012.04
5.4.70.0020.02412.04
5.4.60.0070.02212.04
5.4.50.0020.02312.04
5.4.40.0030.02112.04
5.4.30.0050.02512.04
5.4.20.0050.02112.04
5.4.10.0050.02212.04
5.4.00.0050.02011.78
5.3.290.0030.04112.80
5.3.280.0050.04012.71
5.3.270.0050.04012.73
5.3.260.0060.03812.72
5.3.250.0020.04012.72
5.3.240.0050.03812.72
5.3.230.0080.03612.71
5.3.220.0060.03712.68
5.3.210.0080.03712.68
5.3.200.0050.03712.68
5.3.190.0070.03712.68
5.3.180.0050.03712.67
5.3.170.0050.03712.67
5.3.160.0070.03512.67
5.3.150.0060.03712.67
5.3.140.0050.04012.66
5.3.130.0030.04412.66
5.3.120.0090.03512.66
5.3.110.0070.03712.66
5.3.100.0040.03912.12
5.3.90.0050.03712.08
5.3.80.0050.03612.07
5.3.70.0050.03612.07
5.3.60.0060.03512.06
5.3.50.0050.03612.00
5.3.40.0100.03212.00
5.3.30.0070.03311.94
5.3.20.0080.03311.72
5.3.10.0050.03511.69
5.3.00.0060.03611.67
5.2.170.0050.0309.18
5.2.160.0050.0299.18
5.2.150.0050.0319.18
5.2.140.0040.0319.17
5.2.130.0040.0299.13
5.2.120.0060.0279.14
5.2.110.0060.0279.14
5.2.100.0070.0259.14
5.2.90.0060.0279.14
5.2.80.0060.0299.14
5.2.70.0050.0299.13
5.2.60.0030.0319.09
5.2.50.0020.0329.05
5.2.40.0020.0329.04
5.2.30.0030.0319.01
5.2.20.0070.0339.00
5.2.10.0030.0308.93
5.2.00.0040.0288.79
5.1.60.0030.0288.08
5.1.50.0030.0248.07
5.1.40.0040.0238.06
5.1.30.0050.0248.40
5.1.20.0020.0278.43
5.1.10.0030.0268.15
5.1.00.0050.0238.15
5.0.50.0030.0246.63
5.0.40.0040.0246.49
5.0.30.0060.0306.30
5.0.20.0020.0236.27
5.0.10.0030.0206.25
5.0.00.0040.0326.24
4.4.90.0040.0174.78
4.4.80.0040.0164.75
4.4.70.0050.0164.76
4.4.60.0020.0164.75
4.4.50.0060.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0174.85
4.4.10.0020.0194.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0010.0164.64
4.3.80.0020.0254.58
4.3.70.0020.0144.63
4.3.60.0040.0134.63
4.3.50.0040.0134.63
4.3.40.0030.0234.53
4.3.30.0010.0163.29
4.3.20.0010.0173.27
4.3.10.0030.0153.23
4.3.00.0000.0237.51

preferences:
39.14 ms | 401 KiB | 5 Q