3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validateEmail($email = "") { if (!$email) { return false; } if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $domain = substr(strrchr($email, "@"), 1); echo $domain; if (!checkdnsrr($domain, 'MX')) { echo 222; // domain is not valid return false; } else if (preg_match('/successfulmatch\.com$/i', $domain) || preg_match('/88vip\.site$/i', $domain)) { return true; } } else { return false; } } var_dump(validateEmail("luxury01@gmail.com"));

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.90.0120.00926.77
8.3.80.0100.00017.97
8.3.70.0160.00317.50
8.3.60.0030.01318.98
8.3.50.0100.01319.07
8.3.40.0150.00920.54
8.3.30.0100.01419.71
8.3.20.0170.00722.34
8.3.10.0130.01022.31
8.3.00.0200.00319.65
8.2.210.0170.00326.77
8.2.200.0030.00717.13
8.2.190.0040.01217.00
8.2.180.0090.00616.88
8.2.170.0140.01019.48
8.2.160.0130.01020.67
8.2.150.0070.01319.52
8.2.140.0060.01621.00
8.2.130.0160.00620.72
8.2.120.0130.00619.74
8.2.110.0110.01119.74
8.2.100.0070.01519.82
8.2.90.0130.00719.55
8.2.80.0150.00419.57
8.2.70.0030.01619.31
8.2.60.0130.00619.46
8.2.50.0130.00619.58
8.2.40.0130.00719.55
8.2.30.0130.00719.33
8.2.20.0100.01019.41
8.2.10.0170.00719.20
8.2.00.0130.00619.24
8.1.290.0120.00030.84
8.1.280.0150.00725.92
8.1.270.0100.01022.44
8.1.260.0160.00322.49
8.1.250.0110.00822.52
8.1.240.0100.01019.16
8.1.230.0130.00719.11
8.1.220.0100.01319.15
8.1.210.0110.01419.12
8.1.200.0150.00619.26
8.1.190.0120.00819.03
8.1.180.0170.00319.01
8.1.170.0150.00419.24
8.1.160.0130.00619.00
8.1.150.0130.00619.31
8.1.140.0120.00619.04
8.1.130.0130.00619.24
8.1.120.0100.01019.12
8.1.110.0100.01019.16
8.1.100.0100.01020.21
8.1.90.0150.00619.17
8.1.80.0070.01020.50
8.1.70.0080.00819.29
8.1.60.0060.01019.30
8.1.50.0030.01319.13
8.1.40.0070.01019.38
8.1.30.0100.00619.31
8.1.20.0060.01020.59
8.1.10.0130.00319.04
8.1.00.0210.00020.86

preferences:
37.68 ms | 402 KiB | 5 Q