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', '"a@b.com"<script>alert(document.cookie)</script>', ) as $address) { echo "$address is ".(filter_var($address, FILTER_VALIDATE_EMAIL) ? '' : 'not')." valid\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
localpart.ending.with.dot.@example.com is not valid (comment)localpart@example.com is not valid "this is v@lid!"@example.com is not valid "much.more unusual"@example.com is not valid postbox@com is not valid admin@mailserver1 is not valid "()<>[]:,;@\"\\!#$%&'*+-/=?^_`{}| ~.a"@example.org is not valid " "@example.org is not valid "a@b.com"<script>alert(document.cookie)</script> is not valid

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:
43.46 ms | 402 KiB | 8 Q