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.0100.00618.55
8.3.50.0090.00622.14
8.3.40.0110.01119.21
8.3.30.0030.01319.30
8.3.20.0040.00420.58
8.3.10.0040.00422.34
8.3.00.0050.00322.82
8.2.180.0160.00618.66
8.2.170.0160.00722.96
8.2.160.0170.00321.55
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00319.86
8.2.110.0080.00419.61
8.2.100.0100.00318.41
8.2.90.0040.00419.59
8.2.80.0040.00418.18
8.2.70.0030.00518.00
8.2.60.0030.00618.18
8.2.50.0000.01018.07
8.2.40.0040.00418.59
8.2.30.0030.00518.50
8.2.20.0050.00318.16
8.2.10.0030.00519.77
8.2.00.0030.00518.07
8.1.280.0060.00925.92
8.1.270.0000.00822.40
8.1.260.0050.00526.35
8.1.250.0030.00628.09
8.1.240.0090.00922.48
8.1.230.0060.00619.41
8.1.220.0000.00818.05
8.1.210.0030.00518.77
8.1.200.0030.00717.60
8.1.190.0050.00317.68
8.1.180.0030.00619.14
8.1.170.0030.00618.96
8.1.160.0000.00822.05
8.1.150.0000.00818.96
8.1.140.0000.00917.74
8.1.130.0060.00318.04
8.1.120.0040.00417.72
8.1.110.0040.00417.75
8.1.100.0030.00617.79
8.1.90.0070.00017.64
8.1.80.0030.00517.73
8.1.70.0000.00717.61
8.1.60.0030.00617.86
8.1.50.0000.00917.65
8.1.40.0080.00017.71
8.1.30.0000.00917.88
8.1.20.0030.00617.89
8.1.10.0080.00017.84
8.1.00.0080.00819.90
8.0.300.0080.00018.77
8.0.290.0000.00817.38
8.0.280.0000.00818.67
8.0.270.0020.00517.43
8.0.260.0000.00717.12
8.0.250.0000.00717.28
8.0.240.0040.00417.24
8.0.230.0000.00717.28
8.0.220.0040.00417.14
8.0.210.0000.00817.03
8.0.200.0040.00417.08
8.0.190.0090.00017.32
8.0.180.0000.00917.18
8.0.170.0000.00817.24
8.0.160.0090.00017.29
8.0.150.0050.00317.14
8.0.140.0100.00017.22
8.0.130.0000.00913.58
8.0.120.0040.00417.21
8.0.110.0030.00617.25
8.0.100.0080.00017.27
8.0.90.0000.00817.26
8.0.80.0100.01317.21
8.0.70.0060.00317.20
8.0.60.0050.00317.16
8.0.50.0000.00817.16
8.0.30.0120.01217.37
8.0.20.0100.01017.40
8.0.10.0040.00417.14
8.0.00.0090.01317.03
7.4.330.0000.00615.27
7.4.320.0040.00416.86
7.4.300.0000.00816.86
7.4.290.0040.00416.95
7.4.280.0040.00416.94
7.4.270.0070.00016.87
7.4.260.0000.00816.99
7.4.250.0060.00316.81
7.4.240.0000.00716.93
7.4.230.0040.00416.68
7.4.220.0130.01417.06
7.4.210.0050.01216.91
7.4.200.0020.00516.84
7.4.190.0000.00816.72
7.4.160.0100.01316.86
7.4.150.0030.01617.40
7.4.140.0200.01417.86
7.4.130.0080.01116.87
7.4.120.0150.00516.90
7.4.110.0130.01016.81
7.4.100.0140.00716.88
7.4.90.0090.00916.79
7.4.80.0180.00319.39
7.4.70.0190.00616.94
7.4.60.0040.01416.91
7.4.50.0030.00616.77
7.4.40.0090.00322.77
7.4.30.0090.00916.69
7.4.00.0070.00715.33
7.3.330.0070.00013.42
7.3.320.0030.00313.52
7.3.310.0040.00416.50
7.3.300.0050.00216.55
7.3.290.0200.00016.52
7.3.280.0080.01116.54
7.3.270.0060.01217.40
7.3.260.0070.01116.84
7.3.250.0120.00616.64
7.3.240.0100.00716.76
7.3.230.0040.01916.85
7.3.210.0130.00316.49
7.3.200.0100.01019.39
7.3.190.0030.01416.79
7.3.180.0120.00316.77
7.3.170.0090.00916.64
7.3.160.0130.00316.84
7.3.120.0030.01515.34
7.3.10.0140.00316.98
7.3.00.0070.00316.96
7.2.330.0040.01516.95
7.2.320.0100.01316.86
7.2.310.0110.00816.66
7.2.300.0080.01216.78
7.2.290.0160.00616.82
7.2.130.0040.01117.08
7.2.120.0040.00716.96
7.2.110.0100.01016.80
7.2.100.0080.00816.78
7.2.90.0000.01317.21
7.2.80.0000.01017.25
7.2.70.0030.01317.21
7.2.60.0050.01017.11
7.2.50.0030.01017.12
7.2.40.0060.01016.96
7.2.30.0060.00317.20
7.2.20.0040.01517.15
7.2.10.0060.00917.23
7.2.00.0060.01017.26
7.1.250.0030.01316.12
7.1.200.0070.01016.08
7.1.70.0080.00017.35
7.1.60.0070.01019.82
7.1.50.0040.02117.50
7.1.00.0000.08022.62
7.0.200.0130.00417.14
7.0.140.0030.07022.18
7.0.60.0130.08020.08
7.0.50.0000.06018.07
7.0.40.0070.04320.18
7.0.30.0230.08320.19
7.0.20.0270.08020.45
7.0.10.0370.07020.48
7.0.00.0170.08020.15
5.6.280.0070.07021.06
5.6.210.0070.08320.57
5.6.200.0070.05718.23
5.6.190.0070.05020.44
5.6.180.3370.04320.72
5.6.170.0200.06020.52
5.6.160.0170.07020.50
5.6.150.0000.08718.27
5.6.140.0070.04318.13
5.6.130.0030.09018.18
5.6.120.0070.08721.06
5.6.110.0030.04321.06
5.6.100.0030.06021.03
5.6.90.0070.07721.14
5.6.80.0170.06720.50
5.6.70.0230.06720.41
5.5.350.0030.07020.43
5.5.340.0030.04318.01
5.5.330.0130.04720.62
5.5.320.0170.07320.55
5.5.310.0270.06320.37
5.5.300.0030.05018.06
5.5.290.0100.08017.96
5.5.280.0070.04020.65
5.5.270.0030.07720.91
5.5.260.0070.07020.80
5.5.250.0170.06720.59
5.5.240.0130.06720.09
5.4.450.0570.05019.59
5.4.440.0600.05319.68
5.4.430.0000.06319.48
5.4.420.0070.05719.68
5.4.410.0070.05719.47
5.4.400.0800.00018.82
5.4.390.0830.00018.68
5.4.380.0270.05318.79
5.4.370.0830.06718.63
5.4.360.0870.05718.66
5.4.350.0970.05018.73
5.4.340.0630.05718.66
5.4.320.0100.03912.51
5.4.310.0070.03712.50
5.4.300.0060.03812.50
5.4.290.0100.03312.50
5.4.280.0070.03412.40
5.4.270.0000.08018.91
5.4.260.0030.06018.89
5.4.250.0170.04318.83
5.4.240.0100.07318.72
5.4.230.0030.05718.67
5.4.220.0100.05318.93
5.4.210.0230.05018.75
5.4.200.0170.04718.78
5.4.190.0130.05318.86
5.4.180.0100.05318.78
5.4.170.0070.05318.78
5.4.160.0070.07718.87
5.4.150.0030.05718.89
5.4.140.0200.06016.27
5.4.130.0200.06316.41
5.4.120.0100.06316.45
5.4.110.0070.05316.46
5.4.100.0030.07316.29
5.4.90.0070.05316.30
5.4.80.0070.06016.42
5.4.70.0130.06316.36
5.4.60.0130.04716.27
5.4.50.0230.05716.42
5.4.40.0130.05016.41
5.4.30.0070.04716.47
5.4.20.0100.04716.24
5.4.10.0170.05716.19
5.4.00.0070.05315.91
5.3.290.0080.04012.80
5.3.280.0170.04314.66
5.3.270.0030.05714.66
5.3.260.0070.06014.57
5.3.250.0170.06314.65
5.3.240.0030.06714.68
5.3.230.0100.05014.70
5.3.220.0170.06314.63
5.3.210.0000.05714.61
5.3.200.0100.06714.71
5.3.190.0070.05714.31
5.3.180.0070.06314.63
5.3.170.0100.06714.62
5.3.160.0130.06714.50
5.3.150.0070.07314.71
5.3.140.0030.05314.46
5.3.130.0100.07014.61
5.3.120.0200.06014.63
5.3.110.0000.05714.60
5.3.100.0030.05713.94
5.3.90.0070.06014.10
5.3.80.0130.05313.98
5.3.70.0070.05714.22
5.3.60.0170.04013.75
5.3.50.0130.04713.93
5.3.40.0100.05713.83
5.3.30.0070.06013.88
5.3.20.0030.05713.78
5.3.10.0200.05713.58
5.3.00.0070.05713.41
5.2.170.0070.05711.12
5.2.160.0100.03711.20
5.2.150.0030.04711.18
5.2.140.0070.04011.18
5.2.130.0070.05311.00
5.2.120.0130.04711.20
5.2.110.0130.03311.10
5.2.100.0030.04011.10
5.2.90.0030.04710.86
5.2.80.0000.04711.02
5.2.70.0070.06011.04
5.2.60.0130.05311.06
5.2.50.0100.05011.03
5.2.40.0070.04010.94
5.2.30.0070.04710.91
5.2.20.0070.04311.05
5.2.10.0070.03710.86
5.2.00.0130.04710.62
5.1.60.0030.03710.09
5.1.50.0030.05010.06
5.1.40.0100.04310.13
5.1.30.0000.05310.25
5.1.20.0000.04310.42
5.1.10.0070.03310.00
5.1.00.0070.05010.30
5.0.50.0000.0338.77
5.0.40.0100.0338.60
5.0.30.0100.0508.07
5.0.20.0030.0378.24
5.0.10.0070.0238.23
5.0.00.0070.0508.11
4.4.90.0030.0277.28
4.4.80.0030.0307.28
4.4.70.0030.0237.28
4.4.60.0000.0237.28
4.4.50.0100.0207.28
4.4.40.0030.0477.28
4.4.30.0000.0277.28
4.4.20.0070.0177.28
4.4.10.0070.0177.28
4.4.00.0000.0337.28
4.3.110.0030.0207.28
4.3.100.0070.0277.28
4.3.90.0000.0207.28
4.3.80.0000.0337.28
4.3.70.0000.0277.28
4.3.60.0030.0277.28
4.3.50.0030.0207.28
4.3.40.0000.0437.28
4.3.30.0030.0277.27
4.3.20.0070.0207.27
4.3.10.0070.0177.27
4.3.00.0170.0177.77

preferences:
40.1 ms | 401 KiB | 5 Q