3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = array( 'test@example.com', 'test.derp@example.com', 'test+nick@example.com', 'abc."defghi".xyz@example.com', '"abcdefghixyz"@example.com', 'jsmith@[192.168.2.1]', 'jsmith@[IPv6:2001:db8::1]', 'long.but.still.perfectly.valid.email.address@on.even.longer.domain.name.owned.by.some.weird.name.company.which.name.you.cannot.pronounce.com', 'other.email-with-dash@example.com', '"much.more unusual"@example.com', '"very.unusual.@.unusual.com"@example.com', '"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com', 'admin@mailserver1 (local domain name with no TLD)', '#!$%&\'*+-/=?^_`{}|~@example.org', '"()<>[]:,;@\\\"!#$%&\'*+-/=?^_`{}| ~.a"@example.org', '" "@example.org (space between the quotes)', '☃☃☃@example.com (Unicode characters in local part)', '☃☃☃@☃☃☃.com (Unicode characters in domain part)', 'new@domain.pizza' ); foreach ($emails as $email) { echo (filter_var($email, FILTER_VALIDATE_EMAIL)) ? "[+] Email $email is valid\n" : "[-] Email $email is 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.2.10.0040.00418.43
8.2.00.0000.00818.42
8.1.140.0070.00217.87
8.1.130.0000.00718.20
8.1.120.0000.00817.72
8.1.110.0080.00017.85
8.1.100.0000.00817.66
8.1.90.0080.00017.80
8.1.80.0060.00317.69
8.1.70.0040.00417.69
8.1.60.0070.00317.80
8.1.50.0000.00917.92
8.1.40.0030.00617.73
8.1.30.0060.00317.90
8.1.20.0050.00317.88
8.1.10.0030.00517.88
8.1.00.0040.00819.81
8.0.260.0040.00417.40
8.0.250.0000.00717.34
8.0.240.0000.00717.27
8.0.230.0050.00317.22
8.0.220.0040.00417.27
8.0.210.0050.00217.22
8.0.200.0040.00417.24
8.0.190.0030.00517.20
8.0.180.0040.00417.20
8.0.170.0050.00517.27
8.0.160.0000.00817.31
8.0.150.0030.00517.14
8.0.140.0080.00317.08
8.0.130.0030.00313.57
8.0.120.0090.00017.21
8.0.110.0040.00417.11
8.0.100.0040.00417.33
8.0.90.0030.00617.14
8.0.80.0100.00617.23
8.0.70.0090.00017.35
8.0.60.0000.00917.20
8.0.50.0080.00017.30
8.0.30.0090.00917.26
8.0.20.0120.00817.57
8.0.10.0030.00517.24
8.0.00.0140.00717.03
7.4.330.0030.00315.21
7.4.320.0030.00317.02
7.4.300.0030.00317.02
7.4.290.0080.00016.85
7.4.280.0060.00317.06
7.4.270.0040.00416.98
7.4.260.0020.00516.93
7.4.250.0000.00816.98
7.4.240.0000.00816.89
7.4.230.0070.00016.84
7.4.220.0170.00417.03
7.4.210.0100.00617.13
7.4.200.0000.00716.83
7.4.160.0100.00716.82
7.4.150.0160.00317.40
7.4.140.0130.00817.86
7.4.130.0060.01316.91
7.4.120.0050.01416.99
7.4.110.0090.00916.82
7.4.100.0140.00517.06
7.4.90.0150.00416.80
7.4.80.0200.00319.39
7.4.70.0130.00816.81
7.4.60.0110.01117.09
7.4.50.0000.00916.66
7.4.40.0070.01016.70
7.4.30.0110.01416.81
7.4.00.0070.00715.08
7.3.330.0030.00313.43
7.3.320.0030.00313.47
7.3.310.0000.00716.66
7.3.300.0000.00716.75
7.3.290.0060.01116.74
7.3.280.0090.01116.71
7.3.270.0060.01317.40
7.3.260.0090.00916.57
7.3.250.0100.01016.74
7.3.240.0100.00816.77
7.3.230.0100.01016.67
7.3.210.0120.00616.59
7.3.200.0120.00916.82
7.3.190.0030.01416.62
7.3.180.0110.00816.63
7.3.170.0150.00716.67
7.3.160.0170.00016.90
7.3.10.0090.01217.07
7.3.00.0060.01016.98
7.2.330.0090.01816.87
7.2.320.0140.00417.12
7.2.310.0070.01017.16
7.2.300.0000.01816.99
7.2.290.0190.00616.93
7.2.130.0000.01417.30
7.2.120.0090.00617.43
7.2.110.0070.00717.12
7.2.100.0060.00917.24
7.2.90.0080.00317.33
7.2.80.0040.01517.29
7.2.70.0090.00617.25
7.2.60.0080.00817.09
7.2.50.0060.00317.35
7.2.40.0070.00317.38
7.2.30.0000.01817.38
7.2.20.0030.01217.31
7.2.10.0070.01017.32
7.2.00.0100.00616.99
7.1.250.0130.00316.14
7.1.200.0110.00315.85
7.1.70.0040.00417.58
7.1.60.0100.01719.86
7.1.50.0000.01717.63
7.1.00.0030.07322.54
7.0.200.0360.00615.05
7.0.100.0030.06020.32
7.0.90.0170.03720.20
7.0.80.0030.04320.20
7.0.70.0030.04320.12
7.0.60.0030.04020.28
7.0.50.0470.06720.66
7.0.40.0100.08320.18
7.0.30.0100.08020.38
7.0.20.0130.07320.33
7.0.10.0130.07320.33
7.0.00.0130.08320.30
5.6.280.0030.07720.87
5.6.250.0030.04320.71
5.6.240.0070.04320.68
5.6.230.0030.04320.68
5.6.220.0070.04720.64
5.6.210.0070.04320.80
5.6.200.0170.06321.16
5.6.190.0100.07721.09
5.6.180.0100.07321.13
5.6.170.0100.07021.16
5.6.160.0100.08021.07
5.6.150.0030.08320.99
5.6.140.0170.07321.13
5.6.130.0100.08021.08
5.6.120.0100.05021.01
5.6.110.0170.07721.16
5.6.100.0070.06321.12
5.6.90.0130.06021.06
5.6.80.0000.07320.57
5.6.70.0100.08020.60
5.6.60.0070.06020.48
5.6.50.0130.07320.38
5.6.40.0000.05320.33
5.6.30.0130.04020.36
5.6.20.0170.07020.52
5.6.10.0000.08320.32
5.6.00.0100.07720.50
5.5.380.0070.04020.45
5.5.370.0100.03320.57
5.5.360.0000.04320.44
5.5.350.0030.07720.50
5.5.340.0100.07720.79
5.5.330.0100.08020.88
5.5.320.0100.08720.85
5.5.310.0170.07720.82
5.5.300.0130.08020.98
5.5.290.0070.08320.94
5.5.280.0000.05720.96
5.5.270.0070.07720.91
5.5.260.0230.06720.95
5.5.250.0030.07020.60
5.5.240.0030.06320.31
5.5.230.0030.08320.34
5.5.220.0100.05320.34
5.5.210.0070.04720.21
5.5.200.0100.07720.21
5.5.190.0030.08320.27
5.5.180.0030.04720.20
5.5.160.0070.07320.23
5.5.150.0070.07320.27
5.5.140.0230.06020.24
5.5.130.0030.06720.33
5.5.120.0030.08320.27
5.5.110.0130.07020.18
5.5.100.0070.07720.13
5.5.90.0100.06320.35
5.5.80.0030.09320.33
5.5.70.0070.08320.25
5.5.60.0130.07020.23
5.5.50.0030.08020.27
5.5.40.0170.05320.32
5.5.30.0130.07320.21
5.5.20.0070.06020.24
5.5.10.0030.08020.32
5.5.00.0170.07720.25
5.4.450.0070.08019.20
5.4.440.0100.08019.53
5.4.430.0070.07719.52
5.4.420.0030.04719.52
5.4.410.0070.08019.24
5.4.400.0100.07018.99
5.4.390.0100.07318.99
5.4.380.0100.08019.30
5.4.370.0070.07319.14
5.4.360.0100.07719.43
5.4.350.0100.06719.33
5.4.340.0100.06319.15
5.4.320.0100.06319.25
5.4.310.0100.07318.98
5.4.300.0100.05019.17
5.4.290.0030.08319.23
5.4.280.0030.08319.10
5.4.270.0000.05019.23
5.4.260.0100.06719.17
5.4.250.0070.07719.34
5.4.240.0100.07019.26
5.4.230.0170.07019.01
5.4.220.0030.08019.18
5.4.210.0130.07318.98
5.4.200.0070.07019.24
5.4.190.0030.07718.97
5.4.180.0100.07719.22
5.4.170.0070.05319.42
5.4.160.0070.07319.14
5.4.150.0030.07319.25
5.4.140.0100.07016.50
5.4.130.0000.04716.54
5.4.120.0130.06016.43
5.4.110.0030.05316.36
5.4.100.0170.06316.39
5.4.90.0030.07316.60
5.4.80.0130.07016.35
5.4.70.0100.06016.39
5.4.60.0070.07716.43
5.4.50.0030.07316.42
5.4.40.0070.08016.52
5.4.30.0000.07716.48
5.4.20.0100.05316.32
5.4.10.0100.07016.31
5.4.00.0030.07715.95
5.3.290.0070.07014.82
5.3.280.0170.07014.78
5.3.270.0000.07014.82
5.3.260.0100.05714.77
5.3.250.0070.07714.64
5.3.240.0030.08014.71
5.3.230.0130.07014.76
5.3.220.0100.06314.86
5.3.210.0070.09014.69
5.3.200.0070.05314.85
5.3.190.0070.07714.82
5.3.180.0030.07714.87
5.3.170.0130.06714.86
5.3.160.0100.06714.74
5.3.150.0170.07314.70
5.3.140.0030.08014.69
5.3.130.0200.05714.68
5.3.120.0100.04714.81
5.3.110.0000.08014.77
5.3.100.0170.07014.26
5.3.90.0030.05714.21
5.3.80.0030.04714.23
5.3.70.0130.06314.21
5.3.60.0200.06314.23
5.3.50.0100.08014.18
5.3.40.0070.07014.12
5.3.30.0000.08014.05
5.3.20.0070.07013.72
5.3.10.0130.06313.68
5.3.00.0130.06713.67
5.2.170.0000.05011.36
5.2.160.0100.05711.39
5.2.150.0070.03711.23
5.2.140.0070.06011.21
5.2.130.0030.06311.10
5.2.120.0000.07011.07
5.2.110.0130.05311.14
5.2.100.0000.06311.07
5.2.90.0130.05011.19
5.2.80.0030.06311.12
5.2.70.0000.06711.09
5.2.60.0030.05710.94
5.2.50.0100.05310.92
5.2.40.0070.05711.09
5.2.30.0070.05711.04
5.2.20.0070.05710.85
5.2.10.0170.05010.84
5.2.00.0030.05710.66
5.1.60.0000.05710.00
5.1.50.0100.04710.03
5.1.40.0070.06010.01
5.1.30.0030.05310.20
5.1.20.0030.04010.39
5.1.10.0000.03710.12
5.1.00.0000.04710.16
5.0.50.0070.0409.30
5.0.40.0030.0309.30
5.0.30.0100.0379.30
5.0.20.0030.0439.30
5.0.10.0030.0309.30
5.0.00.0070.0679.30
4.4.90.0000.0379.30
4.4.80.0000.0209.30
4.4.70.0170.0239.30
4.4.60.0000.0439.30
4.4.50.0030.0339.30
4.4.40.0000.0539.30
4.4.30.0070.0339.30
4.4.20.0030.0209.30
4.4.10.0030.0279.30
4.4.00.0000.0409.30
4.3.110.0000.0279.30
4.3.100.0030.0339.30
4.3.90.0030.0309.30
4.3.80.0000.0579.30
4.3.70.0000.0179.30
4.3.60.0000.0309.30
4.3.50.0000.0279.30
4.3.40.0030.0539.30
4.3.30.0000.0179.30
4.3.20.0000.0209.30
4.3.10.0100.0279.30
4.3.00.0000.0209.30

preferences:
13.7 ms | 403 KiB | 5 Q