3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pswd = "!"; $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.0180.00418.68
8.3.50.0150.00521.29
8.3.40.0070.00718.97
8.3.30.0170.00319.04
8.3.20.0070.00020.34
8.3.10.0100.00321.94
8.3.00.0050.00319.50
8.2.180.0100.01018.79
8.2.170.0140.00422.96
8.2.160.0130.00320.50
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.96
8.2.110.0060.00319.35
8.2.100.0090.00318.03
8.2.90.0030.00519.06
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0000.00817.92
8.2.50.0040.00418.10
8.2.40.0050.00319.85
8.2.30.0000.00717.95
8.2.20.0050.00217.80
8.2.10.0040.00418.22
8.2.00.0080.00017.85
8.1.280.0040.01125.92
8.1.270.0030.00622.23
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00419.29
8.1.230.0080.00317.71
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0000.00722.00
8.1.150.0040.00418.94
8.1.140.0000.00817.58
8.1.130.0000.00717.75
8.1.120.0050.00217.51
8.1.110.0040.00417.59
8.1.100.0070.00017.47
8.1.90.0020.00517.58
8.1.80.0000.00717.61
8.1.70.0000.00717.53
8.1.60.0000.00817.60
8.1.50.0050.00317.55
8.1.40.0040.00417.64
8.1.30.0030.00617.78
8.1.20.0040.00417.78
8.1.10.0080.00017.62
8.1.00.0000.00817.54
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0030.00317.17
8.0.260.0000.00717.24
8.0.250.0030.00317.11
8.0.240.0000.00717.11
8.0.230.0000.00717.11
8.0.220.0030.00316.88
8.0.210.0070.00016.93
8.0.200.0000.00717.04
8.0.190.0040.00817.09
8.0.180.0050.00316.95
8.0.170.0000.00716.95
8.0.160.0000.00717.03
8.0.150.0030.00316.86
8.0.140.0000.00716.86
8.0.130.0030.00313.39
8.0.120.0000.00816.93
8.0.110.0040.00417.00
8.0.100.0000.00716.84
8.0.90.0000.00717.14
8.0.80.0090.00616.96
8.0.70.0000.00716.87
8.0.60.0080.00017.05
8.0.50.0000.00717.08
8.0.30.0050.01617.22
8.0.20.0120.00717.42
8.0.10.0030.00616.87
8.0.00.0090.00916.95
7.4.330.0030.00315.11
7.4.320.0030.00316.68
7.4.300.0000.00616.71
7.4.290.0030.00316.67
7.4.280.0000.00816.77
7.4.270.0080.00016.68
7.4.260.0030.00316.77
7.4.250.0000.00716.78
7.4.240.0040.00416.77
7.4.230.0030.00316.83
7.4.220.0060.01216.69
7.4.210.0100.00716.78
7.4.200.0050.00316.54
7.4.160.0120.01216.64
7.4.150.0090.00917.40
7.4.140.0050.02017.86
7.4.130.0100.00816.54
7.4.120.0100.00716.66
7.4.110.0080.01116.78
7.4.100.0100.01316.64
7.4.90.0030.01416.74
7.4.80.0040.01419.39
7.4.70.0070.01016.61
7.4.60.0070.01616.63
7.4.50.0030.00516.66
7.4.40.0060.01016.73
7.4.30.0070.01016.72
7.4.00.0060.00614.82
7.3.330.0000.00613.20
7.3.320.0000.00613.32
7.3.310.0070.00016.30
7.3.300.0000.00716.15
7.3.290.0080.00616.35
7.3.280.0080.00916.32
7.3.270.0120.00617.40
7.3.260.0130.00316.62
7.3.250.0090.00816.46
7.3.240.0070.01016.42
7.3.230.0080.00916.71
7.3.210.0040.01216.60
7.3.200.0090.00919.39
7.3.190.0100.00716.59
7.3.180.0000.01516.44
7.3.170.0080.00816.61
7.3.160.0110.00516.67
7.3.120.0060.01015.17
7.3.110.0060.01314.77
7.3.100.0000.01414.75
7.3.90.0030.00614.91
7.3.80.0060.01014.55
7.3.70.0100.00015.07
7.3.60.0000.01514.81
7.3.50.0060.01214.87
7.3.40.0080.00614.84
7.3.30.0120.00014.93
7.3.20.0070.01016.84
7.3.10.0070.01016.77
7.3.00.0030.01016.50
7.2.330.0100.00716.64
7.2.320.0090.00916.89
7.2.310.0330.03016.79
7.2.300.0060.01116.84
7.2.290.0090.00816.94
7.2.240.0110.00815.28
7.2.230.0060.01015.09
7.2.220.0070.00715.18
7.2.210.0040.00715.32
7.2.200.0000.01315.29
7.2.190.0090.00915.24
7.2.180.0000.00915.13
7.2.170.0030.01215.30
7.2.160.0030.00914.97
7.2.150.0100.00716.93
7.2.140.0090.00917.03
7.2.130.0090.00317.28
7.2.120.0100.00617.04
7.2.110.0090.00617.13
7.2.100.0110.00416.86
7.2.90.0060.00917.06
7.2.80.0060.01017.14
7.2.70.0060.00917.30
7.2.60.0130.00617.13
7.2.50.0040.01117.23
7.2.40.0070.00717.09
7.2.30.0070.00716.91
7.2.20.0060.00617.20
7.2.10.0060.00916.83
7.2.00.0030.00918.46
7.1.330.0100.00715.90
7.1.320.0030.01415.88
7.1.310.0090.00615.96
7.1.300.0090.00915.93
7.1.290.0060.00316.00
7.1.280.0030.01015.84
7.1.270.0100.00615.92
7.1.260.0060.00915.93
7.1.250.0030.01015.80
7.1.100.0070.00318.02
7.1.70.0000.00717.38
7.1.60.0120.01219.11
7.1.50.0130.01317.20
7.1.00.0000.08022.32
7.0.200.0030.00616.99
7.0.140.0030.07321.96
7.0.60.0070.07019.91
7.0.50.0170.03017.92
7.0.40.0100.04020.42
7.0.30.0230.03320.20
7.0.20.0300.08320.03
7.0.10.0070.04020.31
7.0.00.0030.08720.05
5.6.280.0000.07720.96
5.6.210.0100.08320.71
5.6.200.0130.08018.23
5.6.190.0100.08320.39
5.6.180.0170.04320.41
5.6.170.1700.05320.41
5.6.160.0100.03720.61
5.6.150.0100.07718.19
5.6.140.0070.08318.18
5.6.130.0100.07318.11
5.6.120.0070.07320.93
5.6.110.0130.08021.12
5.6.100.0030.04320.95
5.6.90.0070.05021.02
5.6.80.0130.08020.43
5.5.350.0100.08320.35
5.5.340.0030.04317.89
5.5.330.0030.05720.47
5.5.320.0400.07320.13
5.5.310.0370.07320.27
5.5.300.0030.08718.01
5.5.290.0070.05318.00
5.5.280.0070.08320.89
5.5.270.0000.04720.78
5.5.260.0100.08320.67
5.5.250.0070.09020.54
5.5.240.0300.06320.15
5.4.450.0900.05319.11
5.4.440.0770.06019.59
5.4.430.0970.05319.59
5.4.420.0670.00019.42
5.4.410.0630.00019.20
5.4.400.0630.00019.05
5.4.390.0630.00018.92
5.4.380.0630.00019.14
5.4.370.0630.00019.19
5.4.360.0600.00019.05
5.4.350.0630.00019.26
5.4.340.0090.03711.97
5.4.320.0080.03812.45
5.4.310.0040.03912.45
5.4.300.0060.04412.45
5.4.290.0070.04012.45
5.4.280.0070.03512.34
5.4.270.0050.03712.34
5.4.260.0050.03712.34
5.4.250.0030.04112.34
5.4.240.0040.03912.34
5.4.230.0080.03612.34
5.4.220.0060.03712.34
5.4.210.0040.03712.34
5.4.200.0070.03612.34
5.4.190.0060.03612.33
5.4.180.0050.03812.33
5.4.170.0070.04012.35
5.4.160.0090.03512.34
5.4.150.0060.03812.34
5.4.140.0070.04012.02
5.4.130.0060.04212.01
5.4.120.0090.03811.97
5.4.110.0070.03911.96
5.4.100.0040.03611.97
5.4.90.0040.03811.96
5.4.80.0030.03911.96
5.4.70.0060.03811.96
5.4.60.0050.03411.96
5.4.50.0040.03611.96
5.4.40.0060.03711.95
5.4.30.0030.03711.95
5.4.20.0060.03411.95
5.4.10.0050.03511.95
5.4.00.0050.03711.43
5.3.290.0060.03912.80
5.3.280.0040.03812.71
5.3.270.0070.04212.73
5.3.260.0020.04212.71
5.3.250.0070.04012.72
5.3.240.0100.04212.72
5.3.230.0050.04112.70
5.3.220.0050.03812.68
5.3.210.0060.03912.68
5.3.200.0050.03612.68
5.3.190.0060.04012.68
5.3.180.0070.05112.68
5.3.170.0060.03712.67
5.3.160.0080.04412.67
5.3.150.0080.03612.67
5.3.140.0060.04112.66
5.3.130.0070.03912.66
5.3.120.0080.04612.66
5.3.110.0040.04612.66
5.3.100.0050.03912.12
5.3.90.0100.04512.08
5.3.80.0030.04012.07
5.3.70.0050.03612.08
5.3.60.0050.03612.06
5.3.50.0040.03812.00
5.3.40.0060.03912.00
5.3.30.0050.03611.94
5.3.20.0080.03911.72
5.3.10.0040.03811.69
5.3.00.0060.03711.68
5.2.170.0040.0319.18
5.2.160.0060.0339.18
5.2.150.0080.0289.18
5.2.140.0070.0339.17
5.2.130.0020.0379.14
5.2.120.0030.0309.13
5.2.110.0060.0339.14
5.2.100.0040.0289.14
5.2.90.0070.0269.14
5.2.80.0040.0329.13
5.2.70.0060.0299.13
5.2.60.0050.0309.09
5.2.50.0060.0369.05
5.2.40.0050.0349.04
5.2.30.0070.0279.01
5.2.20.0070.0319.00
5.2.10.0050.0288.93
5.2.00.0060.0348.79
5.1.60.0070.0438.08
5.1.50.0020.0278.07
5.1.40.0040.0258.06
5.1.30.0070.0328.41
5.1.20.0050.0268.43
5.1.10.0040.0268.15
5.1.00.0050.0248.15
5.0.50.0020.0226.63
5.0.40.0040.0206.49
5.0.30.0040.0366.30
5.0.20.0020.0226.26
5.0.10.0040.0196.25
5.0.00.0030.0326.24
4.4.90.0040.0174.78
4.4.80.0010.0174.76
4.4.70.0020.0164.76
4.4.60.0020.0164.75
4.4.50.0060.0124.77
4.4.40.0050.0304.71
4.4.30.0040.0154.76
4.4.20.0030.0164.84
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0010.0184.67
4.3.100.0000.0184.67
4.3.90.0050.0124.63
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0184.63
4.3.40.0020.0254.54
4.3.30.0010.0173.30
4.3.20.0010.0203.27
4.3.10.0020.0163.23
4.3.00.0100.0237.51

preferences:
50.54 ms | 401 KiB | 5 Q