3v4l.org

run code in 200+ php & hhvm versions
<?php $emails = [ "john.doe@example.com", "joh````oe@example.com", "john@.doe@example.com", "@example.com", "john.doe@example", ]; foreach($emails as $email){ if (filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "$email is a valid email address\n"; } else { echo"$email is NOT a valid email address\n"; } }
based on SoBPV

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
john.doe@example.com is a valid email address joh````oe@example.com is a valid email address john@.doe@example.com is NOT a valid email address @example.com is NOT a valid email address john.doe@example is NOT a valid email address
Output for branch php-master+opcache
john.doe@example.com is a valid email address joh````oe@example.com is a valid email address john@.doe@example.com is NOT a valid email address @example.com is NOT a valid email address john.doe@example is NOT a valid email address
Output for branch php-master+jit
john.doe@example.com is a valid email address joh````oe@example.com is a valid email address john@.doe@example.com is NOT a valid email address @example.com is NOT a valid email address john.doe@example is NOT a valid email address

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page