3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email_a = 'j+@e.c'; $email_b = 'bogus'; if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) { echo "This ($email_a) email address is considered valid."; } if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) { echo "This ($email_b) email address is considered valid."; }

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.0070.01418.68
8.3.50.0190.00022.23
8.3.40.0130.00319.30
8.3.30.0090.00619.42
8.3.20.0000.00820.62
8.3.10.0050.00322.42
8.3.00.0060.00322.76
8.2.180.0070.01117.00
8.2.170.0060.00922.96
8.2.160.0120.00921.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00320.04
8.2.110.0090.00022.34
8.2.100.0120.00019.71
8.2.90.0000.00819.59
8.2.80.0030.00518.18
8.2.70.0030.00617.88
8.2.60.0060.00318.18
8.2.50.0050.00318.25
8.2.40.0050.00318.59
8.2.30.0040.00418.44
8.2.20.0000.00818.05
8.2.10.0000.00818.24
8.2.00.0000.00818.24
8.1.280.0090.00625.92
8.1.270.0060.00322.56
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.01124.15
8.1.230.0000.01219.55
8.1.220.0040.00418.04
8.1.210.0060.00318.77
8.1.200.0070.00317.73
8.1.190.0000.00817.88
8.1.180.0000.00918.82
8.1.170.0080.00018.91
8.1.160.0050.00322.21
8.1.150.0000.00819.09
8.1.140.0050.00317.79
8.1.130.0000.00718.02
8.1.120.0000.00717.71
8.1.110.0030.00517.63
8.1.100.0000.00817.77
8.1.90.0040.00417.66
8.1.80.0000.00717.64
8.1.70.0000.00717.74
8.1.60.0030.00617.83
8.1.50.0090.00017.78
8.1.40.0040.00417.70
8.1.30.0050.00317.89
8.1.20.0040.00417.89
8.1.10.0050.00317.81
8.1.00.0070.00419.83
8.0.300.0040.00418.77
8.0.290.0000.00817.43
8.0.280.0040.00418.53
8.0.270.0050.00217.36
8.0.260.0030.00317.13
8.0.250.0000.00817.19
8.0.240.0000.00817.27
8.0.230.0000.00817.23
8.0.220.0000.00717.13
8.0.210.0070.00017.20
8.0.200.0070.00017.26
8.0.190.0090.00017.26
8.0.180.0000.00817.10
8.0.170.0040.00417.18
8.0.160.0000.00817.08
8.0.150.0000.00717.20
8.0.140.0040.00417.14
8.0.130.0090.00013.57
8.0.120.0050.00517.20
8.0.110.0000.00817.23
8.0.100.0050.00317.20
8.0.90.0080.00017.12
8.0.80.0100.00717.31
8.0.70.0000.00817.34
8.0.60.0050.00317.26
8.0.50.0040.00417.22
8.0.30.0140.01117.32
8.0.20.0110.00717.40
8.0.10.0040.00417.19
8.0.00.0100.01216.99
7.4.330.0030.00315.23
7.4.320.0000.00716.87
7.4.300.0030.00616.95
7.4.290.0000.00716.86
7.4.280.0000.00716.85
7.4.270.0030.00616.89
7.4.260.0000.00716.90
7.4.250.0040.00416.84
7.4.240.0020.00616.87
7.4.230.0000.00716.98
7.4.220.0040.01516.99
7.4.210.0090.01016.98
7.4.200.0020.00516.99
7.4.190.0040.00417.06
7.4.160.0190.00316.74
7.4.150.0190.00317.40
7.4.140.0040.01417.86
7.4.130.0070.01116.78
7.4.120.0130.00516.81
7.4.110.0120.00616.93
7.4.100.0040.01517.03
7.4.90.0090.00916.76
7.4.80.0040.01419.39
7.4.70.0150.00316.93
7.4.60.0070.01316.84
7.4.50.0050.00516.72
7.4.40.0060.01022.77
7.4.30.0140.00316.81
7.4.00.0040.01415.21
7.3.330.0060.00013.29
7.3.320.0000.00613.46
7.3.310.0040.00416.43
7.3.300.0000.00716.61
7.3.290.0070.00716.61
7.3.280.0110.00516.54
7.3.270.0110.01417.40
7.3.260.0140.00716.98
7.3.250.0130.00716.66
7.3.240.0160.00316.65
7.3.230.0070.01016.62
7.3.210.0100.00716.45
7.3.200.0100.00719.39
7.3.190.0150.00816.76
7.3.180.0130.00316.53
7.3.170.0100.00716.80
7.3.160.0070.01016.68
7.3.120.0060.01114.94
7.3.110.0000.01615.40
7.3.100.0110.00315.34
7.3.90.0030.00614.96
7.3.80.0030.01215.29
7.3.70.0060.00314.78
7.3.60.0000.01815.13
7.3.50.0110.00714.98
7.3.40.0070.00715.14
7.3.30.0060.00914.98
7.3.20.0090.00917.00
7.3.10.0080.00816.89
7.3.00.0080.00417.09
7.2.330.0060.01216.92
7.2.320.0100.00916.74
7.2.310.0040.01316.65
7.2.300.0090.00916.77
7.2.290.0100.00716.70
7.2.250.0120.00615.07
7.2.240.0060.01215.20
7.2.230.0000.01314.97
7.2.220.0040.00915.34
7.2.210.0100.00615.28
7.2.200.0000.01315.36
7.2.190.0000.01415.11
7.2.180.0130.00715.32
7.2.170.0140.00015.03
7.1.330.0030.01315.98
7.1.320.0000.01416.05
7.1.310.0060.00616.13
7.1.300.0080.00816.00
7.1.290.0000.01916.07
7.1.280.0030.01315.94
7.1.270.0130.00315.83
7.1.260.0030.01016.09
7.1.70.0000.01117.35
7.1.60.0100.01019.82
7.1.50.0060.01917.36
7.1.00.0100.07022.68
7.0.200.0100.00317.30
7.0.140.0130.06322.46
7.0.60.0100.08720.28
7.0.50.0030.06018.00
7.0.40.0030.07320.36
7.0.30.0300.07720.32
7.0.20.0200.07720.24
7.0.10.0030.05020.35
7.0.00.0030.08020.30
5.6.280.0070.06720.92
5.6.210.0100.04020.76
5.6.200.0070.08318.28
5.6.190.0170.07720.46
5.6.180.0470.05720.63
5.6.170.0370.07320.45
5.6.160.0030.05020.49
5.6.150.0070.08018.16
5.6.140.0070.08718.26
5.6.130.0100.07718.19
5.6.120.0100.06021.00
5.6.110.0030.08721.03
5.6.100.0030.07721.13
5.6.90.0170.07721.00
5.6.80.0030.07720.45
5.5.350.0370.07020.41
5.5.340.0170.07017.92
5.5.330.0070.05320.18
5.5.320.0330.07320.38
5.5.310.0230.05020.34
5.5.300.0070.06018.00
5.5.290.0130.08018.05
5.5.280.0100.07320.88
5.5.270.0070.08720.75
5.5.260.0000.04720.66
5.5.250.0070.07720.59
5.5.240.0030.08720.28
5.4.450.0570.06019.57
5.4.440.0600.06719.47
5.4.430.0030.06019.37
5.4.420.0200.05719.36
5.4.410.0200.04319.46
5.4.400.0800.00018.67
5.4.390.0870.00018.62
5.4.380.0230.05318.67
5.4.370.0230.04718.76
5.4.360.0200.05318.79
5.4.350.0200.05018.67
5.4.340.0170.05318.58
5.4.320.0050.03712.50
5.4.310.0060.04812.50
5.4.300.0070.03512.51
5.4.290.0050.04012.50
5.4.280.0060.04312.40
5.4.270.0100.05018.85
5.4.260.0070.05318.82
5.4.250.0170.06718.84
5.4.240.0100.05019.07
5.4.230.0070.05318.77
5.4.220.0130.06318.75
5.4.210.0100.05318.89
5.4.200.0170.06019.07
5.4.190.0070.07319.07
5.4.180.0070.06019.04
5.4.170.0100.05019.03
5.4.160.0170.05718.68
5.4.150.0130.05018.69
5.4.140.0030.06016.25
5.4.130.0100.04316.45
5.4.120.0100.05716.49
5.4.110.0070.05316.50
5.4.100.0070.05016.29
5.4.90.0070.05716.26
5.4.80.0070.05016.44
5.4.70.0100.07016.24
5.4.60.0030.05716.47
5.4.50.0200.05316.32
5.4.40.0070.04716.42
5.4.30.0070.05716.38
5.4.20.0070.04716.34
5.4.10.0100.06016.32
5.4.00.0130.04315.91
5.3.290.0050.04012.80
5.3.280.0100.05014.62
5.3.270.0100.04714.51
5.3.260.0130.07014.67
5.3.250.0130.05314.57
5.3.240.0130.04714.66
5.3.230.0000.07014.64
5.3.220.0070.06714.73
5.3.210.0030.06014.50
5.3.200.0070.05014.66
5.3.190.0130.04314.39
5.3.180.0100.06714.50
5.3.170.0000.05314.50
5.3.160.0100.06014.46
5.3.150.0100.04714.48
5.3.140.0130.04314.30
5.3.130.0100.05014.69
5.3.120.0100.05014.37
5.3.110.0200.06714.62
5.3.100.0170.04014.24
5.3.90.0000.07313.93
5.3.80.0070.06713.92
5.3.70.0030.05313.94
5.3.60.0130.05314.05
5.3.50.0030.06714.00
5.3.40.0070.07014.00
5.3.30.0070.07313.81
5.3.20.0130.06013.70
5.3.10.0030.05013.42
5.3.00.0200.05713.49
5.2.170.0100.05011.21
5.2.160.0100.03311.20
5.2.150.0030.04311.07
5.2.140.0130.03711.27
5.2.130.0130.03311.12
5.2.120.0130.04711.01
5.2.110.0070.04310.98
5.2.100.0170.03711.00
5.2.90.0170.04711.12
5.2.80.0030.05310.99
5.2.70.0130.05010.93
5.2.60.0070.04010.98
5.2.50.0070.05311.14
5.2.40.0100.04011.00
5.2.30.0030.04310.99
5.2.20.0000.04310.98
5.2.10.0030.05010.86
5.2.00.0170.03310.60
5.1.60.0100.04010.23
5.1.50.0030.0339.96
5.1.40.0030.0379.75
5.1.30.0030.05010.34
5.1.20.0030.03310.42
5.1.10.0030.03710.25
5.1.00.0030.03710.11
5.0.50.0030.0278.45
5.0.40.0030.0278.36
5.0.30.0070.0408.24
5.0.20.0000.0308.22
5.0.10.0130.0308.08
5.0.00.0030.0438.39
4.4.90.0030.0307.28
4.4.80.0000.0237.28
4.4.70.0030.0307.28
4.4.60.0030.0207.28
4.4.50.0030.0207.28
4.4.40.0070.0337.28
4.4.30.0030.0207.28
4.4.20.0070.0177.28
4.4.10.0070.0277.28
4.4.00.0000.0337.28
4.3.110.0000.0307.28
4.3.100.0100.0237.28
4.3.90.0030.0207.28
4.3.80.0070.0407.28
4.3.70.0070.0177.28
4.3.60.0070.0177.28
4.3.50.0000.0237.28
4.3.40.0030.0407.28
4.3.30.0000.0237.28
4.3.20.0030.0207.28
4.3.10.0000.0307.28
4.3.00.0100.0206.99

preferences:
64.81 ms | 401 KiB | 5 Q