3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array( 'localpart.ending.with.dot.@example.com', '(comment)localpart@example.com', '"this is v@lid!"@example.com', '"much.more unusual"@example.com', 'postbox@com', 'admin@mailserver1', '"()<>[]:,;@\\"\\\\!#$%&\'*+-/=?^_`{}| ~.a"@example.org', '" "@example.org', ) as $address) { echo "<p>$address is <b>".(filter_var($address, FILTER_VALIDATE_EMAIL) ? '' : 'not')." valid</b></p>\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<p>localpart.ending.with.dot.@example.com is <b>not valid</b></p> <p>(comment)localpart@example.com is <b>not valid</b></p> <p>"this is v@lid!"@example.com is <b>not valid</b></p> <p>"much.more unusual"@example.com is <b>not valid</b></p> <p>postbox@com is <b>not valid</b></p> <p>admin@mailserver1 is <b>not valid</b></p> <p>"()<>[]:,;@\"\\!#$%&'*+-/=?^_`{}| ~.a"@example.org is <b>not valid</b></p> <p>" "@example.org is <b>not valid</b></p>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
37.67 ms | 402 KiB | 8 Q