3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email_a = 'j@example.com'; $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.0110.00718.68
8.3.50.0290.01022.28
8.3.40.0160.00019.30
8.3.30.0110.00419.29
8.3.20.0030.00620.54
8.3.10.0080.00022.21
8.3.00.0040.00422.84
8.2.180.0130.01017.25
8.2.170.0130.00622.96
8.2.160.0150.00021.34
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0060.00319.98
8.2.110.0000.01022.63
8.2.100.0120.00018.22
8.2.90.0030.00619.61
8.2.80.0060.00318.18
8.2.70.0000.00818.13
8.2.60.0000.00918.18
8.2.50.0030.00518.07
8.2.40.0080.00018.72
8.2.30.0040.00418.34
8.2.20.0000.00818.22
8.2.10.0050.00318.07
8.2.00.0050.00518.14
8.1.280.0110.00725.92
8.1.270.0080.00022.55
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00024.05
8.1.230.0040.00819.45
8.1.220.0040.00418.04
8.1.210.0000.00818.77
8.1.200.0060.00317.73
8.1.190.0040.00417.67
8.1.180.0000.00819.04
8.1.170.0000.00919.02
8.1.160.0050.00322.17
8.1.150.0050.00318.90
8.1.140.0030.00517.78
8.1.130.0040.00418.16
8.1.120.0060.00317.79
8.1.110.0080.00017.72
8.1.100.0030.00517.73
8.1.90.0050.00317.75
8.1.80.0050.00317.78
8.1.70.0000.00717.64
8.1.60.0030.00617.87
8.1.50.0030.00517.84
8.1.40.0000.00817.79
8.1.30.0000.00817.87
8.1.20.0040.00417.88
8.1.10.0040.00417.82
8.1.00.0030.00919.73
8.0.300.0040.00418.77
8.0.290.0000.00817.41
8.0.280.0000.00718.63
8.0.270.0000.00817.34
8.0.260.0040.00417.12
8.0.250.0050.00317.25
8.0.240.0040.00417.31
8.0.230.0080.00017.12
8.0.220.0000.00817.24
8.0.210.0030.00517.15
8.0.200.0000.00817.30
8.0.190.0030.00517.25
8.0.180.0000.00817.26
8.0.170.0090.00017.08
8.0.160.0040.00417.21
8.0.150.0050.00317.03
8.0.140.0000.00817.18
8.0.130.0050.00513.59
8.0.120.0060.00317.22
8.0.110.0040.00417.07
8.0.100.0040.00417.20
8.0.90.0000.00917.17
8.0.80.0040.01517.22
8.0.70.0060.00317.31
8.0.60.0000.00817.32
8.0.50.0040.00417.30
8.0.30.0160.00617.44
8.0.20.0130.00817.40
8.0.10.0040.00417.27
8.0.00.0120.00817.01
7.4.330.0050.00015.33
7.4.320.0040.00416.99
7.4.300.0000.00816.98
7.4.290.0000.00716.87
7.4.280.0050.00316.95
7.4.270.0000.00816.86
7.4.260.0000.00916.81
7.4.250.0000.00816.94
7.4.240.0040.00316.88
7.4.230.0080.00016.92
7.4.220.0130.01316.98
7.4.210.0030.01216.91
7.4.200.0040.00416.78
7.4.190.0000.00716.86
7.4.160.0130.00316.81
7.4.150.0060.01317.40
7.4.140.0080.01017.86
7.4.130.0050.01316.88
7.4.120.0080.01016.87
7.4.110.0060.01216.68
7.4.100.0120.01216.90
7.4.90.0150.00316.76
7.4.80.0090.01319.39
7.4.70.0060.01216.93
7.4.60.0220.00016.97
7.4.50.0100.00016.72
7.4.40.0050.01022.77
7.4.30.0120.00616.80
7.4.00.0070.01115.32
7.3.330.0080.00013.21
7.3.320.0030.00313.26
7.3.310.0050.00316.63
7.3.300.0000.00716.49
7.3.290.0060.00916.61
7.3.280.0080.00716.60
7.3.270.0160.00317.40
7.3.260.0150.00416.48
7.3.250.0130.00716.51
7.3.240.0070.01116.77
7.3.230.0090.00917.05
7.3.210.0080.00816.48
7.3.200.0100.00719.39
7.3.190.0140.00316.64
7.3.180.0030.01416.91
7.3.170.0120.01216.68
7.3.160.0060.01016.59
7.3.120.0090.00615.28
7.3.10.0030.01216.86
7.3.00.0090.00716.59
7.2.330.0080.01216.64
7.2.320.0120.00916.96
7.2.310.0030.01916.84
7.2.300.0070.01416.92
7.2.290.0100.00616.77
7.2.130.0040.01116.94
7.2.120.0080.00816.97
7.2.110.0080.01016.92
7.2.100.0120.00716.83
7.2.90.0060.01016.86
7.2.80.0130.00817.04
7.2.70.0110.01016.97
7.2.60.0050.01216.98
7.2.50.0120.00616.92
7.2.40.0140.00916.89
7.2.30.0140.01016.87
7.2.20.0080.01117.12
7.2.10.0130.00916.97
7.2.00.0100.00717.90
7.1.250.0110.00715.90
7.1.100.0030.00918.19
7.1.70.0040.00417.33
7.1.60.0060.01519.82
7.1.50.0170.00317.45
7.1.00.0000.07722.49
7.0.200.0000.00917.00
7.0.140.0030.07022.35
7.0.110.0030.06020.06
7.0.100.0170.08020.25
7.0.90.0130.08320.14
7.0.80.0200.07720.24
7.0.70.0170.04720.21
7.0.60.0100.05020.14
7.0.50.0130.07720.54
7.0.40.0070.08720.23
7.0.30.0100.06720.48
7.0.20.0130.07320.26
7.0.10.0030.08720.28
7.0.00.0030.06720.40
5.6.280.0100.06721.11
5.6.250.0100.07020.55
5.6.240.0000.05720.79
5.6.230.0030.05720.65
5.6.220.0200.07320.50
5.6.210.0100.06020.70
5.6.200.0130.08020.93
5.6.190.0100.07721.07
5.6.180.0070.08020.91
5.6.170.0030.08320.91
5.6.160.0070.07320.96
5.6.150.0100.08021.23
5.6.140.0070.08721.11
5.6.130.0130.08020.93
5.6.120.0100.08721.02
5.6.110.0200.05721.23
5.6.100.0070.08321.07
5.6.90.0130.08021.02
5.6.80.0100.07320.47
5.6.70.0070.08320.47
5.6.60.0100.07320.43
5.6.50.0000.08320.50
5.6.40.0100.07720.28
5.6.30.0130.06320.37
5.6.20.0070.08320.46
5.6.10.0130.04720.36
5.6.00.0170.05020.45
5.5.380.0130.07320.33
5.5.370.0000.08020.43
5.5.360.0070.06320.36
5.5.350.0030.05020.46
5.5.340.0100.07320.95
5.5.330.0130.07020.75
5.5.320.0130.07720.87
5.5.310.0030.06020.75
5.5.300.0070.07020.66
5.5.290.0030.05720.91
5.5.280.0200.07320.77
5.5.270.0130.08020.80
5.5.260.0100.07320.79
5.5.250.0070.08020.73
5.5.240.0100.06720.37
5.5.230.0030.08020.16
5.5.220.0070.07720.23
5.5.210.0000.08720.36
5.5.200.0170.06720.36
5.5.190.0100.07720.13
5.5.180.0100.07720.13
5.5.160.0070.07320.27
5.5.150.0100.04320.06
5.5.140.0030.08020.23
5.5.130.0070.07020.21
5.5.120.0100.06320.16
5.5.110.0130.07320.27
5.5.100.0070.08020.23
5.5.90.0070.07720.21
5.5.80.0000.07020.02
5.5.70.0100.07320.06
5.5.60.0130.05020.16
5.5.50.0070.08019.96
5.5.40.0000.08020.21
5.5.30.0070.07320.20
5.5.20.0070.07320.09
5.5.10.0100.07719.93
5.5.00.0070.07320.09
5.4.450.0070.06719.38
5.4.440.0070.08319.46
5.4.430.0130.07319.35
5.4.420.0100.07019.40
5.4.410.0100.07719.17
5.4.400.0000.08019.06
5.4.390.0100.07719.04
5.4.380.0030.07719.29
5.4.370.0100.07019.15
5.4.360.0030.08319.15
5.4.350.0070.07319.16
5.4.340.0100.07019.00
5.4.320.0070.07719.23
5.4.310.0100.07019.14
5.4.300.0030.08319.27
5.4.290.0030.07319.06
5.4.280.0070.08019.18
5.4.270.0100.04019.14
5.4.260.0030.08019.13
5.4.250.0070.04019.14
5.4.240.0000.06319.03
5.4.230.0100.07719.07
5.4.220.0070.07319.05
5.4.210.0070.04318.98
5.4.200.0170.04719.05
5.4.190.0100.07019.13
5.4.180.0170.06319.28
5.4.170.0100.07718.96
5.4.160.0070.07319.27
5.4.150.0070.07719.06
5.4.140.0100.07316.13
5.4.130.0200.05716.46
5.4.120.0070.06716.28
5.4.110.0070.06716.22
5.4.100.0030.06716.28
5.4.90.0030.04716.35
5.4.80.0000.07716.36
5.4.70.0100.06716.46
5.4.60.0030.07716.51
5.4.50.0170.06316.50
5.4.40.0130.07016.61
5.4.30.0070.07716.50
5.4.20.0070.07016.34
5.4.10.0200.06316.50
5.4.00.0130.06715.91
5.3.290.0070.07714.60
5.3.280.0100.07314.44
5.3.270.0200.06314.61
5.3.260.0000.05314.66
5.3.250.0070.04714.45
5.3.240.0130.06714.73
5.3.230.0000.08014.50
5.3.220.0100.07314.69
5.3.210.0030.08014.55
5.3.200.0030.08014.46
5.3.190.0100.07714.57
5.3.180.0170.07014.69
5.3.170.0100.07314.56
5.3.160.0000.08314.64
5.3.150.0130.07014.49
5.3.140.0200.06314.48
5.3.130.0170.07014.55
5.3.120.0130.07314.51
5.3.110.0170.06714.47
5.3.100.0030.04714.02
5.3.90.0030.07313.92
5.3.80.0070.07313.94
5.3.70.0070.07314.08
5.3.60.0130.07014.07
5.3.50.0000.06713.90
5.3.40.0130.06714.06
5.3.30.0100.07313.89
5.3.20.0000.08013.54
5.3.10.0070.05313.59
5.3.00.0030.06313.51
5.2.170.0130.05711.23
5.2.160.0030.06311.12
5.2.150.0030.03711.09
5.2.140.0030.06011.25
5.2.130.0130.05011.02
5.2.120.0130.05311.00
5.2.110.0000.06011.25
5.2.100.0030.06010.99
5.2.90.0030.05011.05
5.2.80.0030.06311.04
5.2.70.0100.05711.25
5.2.60.0030.05710.93
5.2.50.0030.05711.17
5.2.40.0070.06010.96
5.2.30.0100.05310.90
5.2.20.0000.04710.98
5.2.10.0130.02711.08
5.2.00.0000.03310.64
5.1.60.0030.0379.81
5.1.50.0000.0409.81
5.1.40.0000.0279.96
5.1.30.0000.02710.41
5.1.20.0070.02010.37
5.1.10.0000.02710.05
5.1.00.0000.02710.05
5.0.50.0000.0238.97
5.0.40.0000.0208.97
5.0.30.0000.0338.97
5.0.20.0000.0208.97
5.0.10.0000.0208.97
5.0.00.0030.0278.97
4.4.90.0030.0178.97
4.4.80.0000.0378.97
4.4.70.0030.0308.97
4.4.60.0000.0238.97
4.4.50.0030.0238.97
4.4.40.0030.0238.97
4.4.30.0070.0108.97
4.4.20.0000.0278.97
4.4.10.0030.0138.97
4.4.00.0100.0178.97
4.3.110.0000.0178.97
4.3.100.0000.0138.97
4.3.90.0000.0138.97
4.3.80.0000.0238.97
4.3.70.0000.0138.97
4.3.60.0000.0208.97
4.3.50.0000.0178.97
4.3.40.0000.0238.97
4.3.30.0000.0138.97
4.3.20.0000.0178.97
4.3.10.0000.0208.97
4.3.00.0030.0138.97

preferences:
49.64 ms | 401 KiB | 5 Q