3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array( 'localpart.ending.with.dot.@example.com', '(comment)localpart@example.com', '"this is v@lid!"@example.com', '"much.more unusual"@example.com', 'postbox@com', 'admin@mailserver1', '"()<>[]:,;@\\"\\\\!#$%&\'*+-/=?^_`{}| ~.a"@example.org', '" "@example.org', '"a@b.com"<script>alert(document.cookie)</script>', ) as $address) { echo "$address is ".(filter_var($address, FILTER_VALIDATE_EMAIL) ? '' : 'not')." valid\n"; } ?>

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.01017.25
8.3.50.0120.00623.12
8.3.40.0090.00619.20
8.3.30.0060.01019.31
8.3.20.0030.00520.46
8.3.10.0000.00923.91
8.3.00.0000.00820.01
8.2.180.0000.01616.88
8.2.170.0060.01322.96
8.2.160.0000.01420.71
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00726.16
8.2.120.0030.00521.35
8.2.110.0140.00422.62
8.2.100.0090.00318.34
8.2.90.0080.00019.50
8.2.80.0060.00318.00
8.2.70.0000.00918.00
8.2.60.0000.00918.03
8.2.50.0000.00818.07
8.2.40.0000.00820.12
8.2.30.0040.00418.50
8.2.20.0080.00018.11
8.2.10.0030.00618.36
8.2.00.0040.00418.25
8.1.280.0030.01425.92
8.1.270.0080.00024.29
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.01
8.1.230.0060.00619.54
8.1.220.0040.00417.90
8.1.210.0030.00618.77
8.1.200.0030.00617.63
8.1.190.0060.00317.63
8.1.180.0000.00818.10
8.1.170.0070.00418.98
8.1.160.0030.00522.08
8.1.150.0030.00519.07
8.1.140.0040.00417.71
8.1.130.0080.00018.13
8.1.120.0040.00417.61
8.1.110.0060.00317.69
8.1.100.0000.00817.64
8.1.90.0040.00417.75
8.1.80.0080.00017.74
8.1.70.0040.00417.64
8.1.60.0060.00317.72
8.1.50.0030.00517.78
8.1.40.0040.00417.66
8.1.30.0040.00417.89
8.1.20.0030.00517.82
8.1.10.0050.00317.80
8.1.00.0000.01219.70
8.0.300.0030.00518.77
8.0.290.0060.00317.13
8.0.280.0030.00518.61
8.0.270.0000.01017.43
8.0.260.0000.00717.49
8.0.250.0050.00217.24
8.0.240.0040.00417.27
8.0.230.0070.00017.26
8.0.220.0000.00717.16
8.0.210.0040.00417.05
8.0.200.0070.00017.15
8.0.190.0050.00317.25
8.0.180.0000.00817.22
8.0.170.0030.00517.15
8.0.160.0050.00317.10
8.0.150.0000.00717.03
8.0.140.0040.00417.07
8.0.130.0030.00613.63
8.0.120.0000.00817.14
8.0.110.0050.00317.18
8.0.100.0040.00417.16
8.0.90.0030.00517.25
8.0.80.0150.00317.23
8.0.70.0050.00317.15
8.0.60.0040.00417.15
8.0.50.0030.00517.21
8.0.30.0100.01217.26
8.0.20.0090.01117.40
8.0.10.0080.00317.34
8.0.00.0150.00317.03
7.4.330.0030.00315.27
7.4.320.0080.00016.78
7.4.300.0030.00316.96
7.4.290.0000.00716.96
7.4.280.0070.00016.72
7.4.270.0000.00716.98
7.4.260.0040.00416.86
7.4.250.0040.00416.85
7.4.240.0070.00216.97
7.4.230.0070.00016.63
7.4.220.0080.02017.01
7.4.210.0110.00716.94
7.4.200.0030.00616.64
7.4.160.0180.00016.90
7.4.150.0090.01217.40
7.4.140.0090.00817.86
7.4.130.0070.01016.84
7.4.120.0060.01216.76
7.4.110.0120.00616.78
7.4.100.0070.01316.83
7.4.90.0140.00416.68
7.4.80.0120.01219.39
7.4.70.0150.00316.94
7.4.60.0080.00816.88
7.4.50.0030.00616.72
7.4.40.0120.00616.93
7.4.30.0060.01216.81
7.4.00.0080.00815.39
7.3.330.0000.00513.44
7.3.320.0060.00013.54
7.3.310.0000.00716.66
7.3.300.0000.00816.63
7.3.290.0120.00316.59
7.3.280.0080.00916.61
7.3.270.0100.00717.40
7.3.260.0150.01116.56
7.3.250.0100.00716.83
7.3.240.0050.01416.59
7.3.230.0120.00616.61
7.3.210.0120.00617.05
7.3.200.0060.01319.39
7.3.190.0090.00916.64
7.3.180.0100.00616.56
7.3.170.0070.01116.86
7.3.160.0070.01016.57
7.2.330.0120.00616.98
7.2.320.0100.01316.71
7.2.310.0190.00016.86
7.2.300.0120.00916.98
7.2.290.0120.00616.79
7.2.00.0060.00919.82
7.1.100.0040.00818.62
7.1.70.0000.01117.67
7.1.60.0090.00919.40
7.1.50.0140.01117.42
7.1.00.0000.07722.57
7.0.200.0000.01017.14
7.0.140.0030.07322.22
7.0.60.0030.04020.34
7.0.50.0000.04318.00
7.0.40.0000.06320.25
7.0.30.0500.07020.21
7.0.20.0200.08320.33
7.0.10.0070.05720.46
7.0.00.0100.06320.29
5.6.280.0030.07721.13
5.6.210.0070.08320.54
5.6.200.0130.08018.18
5.6.190.0100.08020.64
5.6.180.3700.04020.64
5.6.170.0200.04320.45
5.6.160.0100.06720.55
5.6.150.0100.08018.23
5.6.140.0070.08018.22
5.6.130.0030.08318.22
5.6.120.0030.05320.91
5.6.110.0000.04721.18
5.6.100.0130.06721.04
5.6.90.0170.08021.00
5.6.80.0100.03720.39
5.6.70.2970.03720.54
5.5.350.0030.08320.47
5.5.340.0070.08717.96
5.5.330.0100.08020.26
5.5.320.0530.06320.41
5.5.310.0270.07720.36
5.5.300.0070.07318.05
5.5.290.0030.04017.98
5.5.280.0070.04320.80
5.5.270.0130.04021.00
5.5.260.0100.07720.80
5.5.250.0070.06720.62
5.5.240.0000.08020.32
5.4.450.0670.05719.62
5.4.440.0300.04319.39
5.4.430.0130.06019.51
5.4.420.0170.05719.38
5.4.410.0100.05319.03
5.4.400.0230.05018.76
5.4.390.0300.05018.75
5.4.380.0100.05718.80
5.4.370.0100.03718.58
5.4.360.0130.03318.64
5.4.350.0050.03912.06
5.4.340.0160.02712.06
5.4.320.0050.03812.55
5.4.310.0070.03712.54
5.4.300.0050.03712.54
5.4.290.0090.03512.54
5.4.280.0050.04012.44
5.4.270.0050.03712.43
5.4.260.0070.03612.44
5.4.250.0100.03412.43
5.4.240.0060.03712.44
5.4.230.0050.03912.43
5.4.220.0070.03512.43
5.4.210.0040.03712.43
5.4.200.0080.03712.43
5.4.190.0050.03712.42
5.4.180.0060.03612.43
5.4.170.0050.03612.44
5.4.160.0070.03512.43
5.4.150.0070.03412.43
5.4.140.0070.04312.11
5.4.130.0040.03712.10
5.4.120.0100.03412.09
5.4.110.0060.03712.08
5.4.100.0050.03512.08
5.4.90.0070.03612.08
5.4.80.0060.03712.08
5.4.70.0060.03412.07
5.4.60.0040.03812.07
5.4.50.0070.03412.07
5.4.40.0070.04012.07
5.4.30.0040.03712.06
5.4.20.0070.03412.07
5.4.10.0060.03412.06
5.4.00.0070.03411.54
5.3.290.0090.03612.80
5.3.280.0060.03812.73
5.3.270.0070.04112.75
5.3.260.0050.04212.75
5.3.250.0040.03912.75
5.3.240.0060.03712.74
5.3.230.0080.03512.74
5.3.220.0060.03512.73
5.3.210.0030.04112.73
5.3.200.0060.03512.73
5.3.190.0070.03512.73
5.3.180.0060.04212.73
5.3.170.0070.03612.73
5.3.160.0050.03612.73
5.3.150.0090.03412.73
5.3.140.0060.03612.72
5.3.130.0050.05412.72
5.3.120.0110.03512.71
5.3.110.0060.03912.71
5.3.100.0050.03812.21
5.3.90.0100.03312.17
5.3.80.0060.03612.16
5.3.70.0070.03612.16
5.3.60.0040.03712.14
5.3.50.0020.04012.09
5.3.40.0080.03412.09
5.3.30.0040.03612.05
5.3.20.0050.03511.74
5.3.10.0050.03511.71
5.3.00.0070.03411.70
5.2.170.0020.0369.28
5.2.160.0030.0329.28
5.2.150.0040.0329.28
5.2.140.0040.0319.27
5.2.130.0050.0399.15
5.2.120.0060.0289.15
5.2.110.0020.0339.16
5.2.100.0050.0289.16
5.2.90.0030.0309.16
5.2.80.0050.0299.15
5.2.70.0020.0329.14
5.2.60.0050.0299.10
5.2.50.0010.0339.07
5.2.40.0040.0289.06
5.2.30.0030.0319.02
5.2.20.0030.0309.02
5.2.10.0050.0278.94
5.2.00.0070.0268.79
5.1.60.0050.0238.07
5.1.50.0030.0258.06
5.1.40.0030.0258.05
5.1.30.0060.0238.39
5.1.20.0030.0278.41
5.1.10.0050.0248.14
5.1.00.0050.0248.14
5.0.50.0040.0206.62
5.0.40.0040.0196.48
5.0.30.0060.0286.29
5.0.20.0040.0186.26
5.0.10.0050.0176.25
5.0.00.0030.0306.23
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0050.0134.76
4.4.60.0030.0154.75
4.4.50.0040.0134.77
4.4.40.0010.0264.71
4.4.30.0020.0154.76
4.4.20.0030.0154.84
4.4.10.0040.0134.85
4.4.00.0030.0244.75
4.3.110.0010.0174.67
4.3.100.0010.0164.67
4.3.90.0010.0164.64
4.3.80.0040.0264.58
4.3.70.0030.0224.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0020.0244.53
4.3.30.0020.0153.28
4.3.20.0020.0223.26
4.3.10.0000.0173.22
4.3.00.0130.0278.54

preferences:
41.86 ms | 401 KiB | 5 Q