3v4l.org

run code in 300+ PHP versions simultaneously
<?php function verifyUsername($x){ if (preg_match('/[^a-z]/i',$x)) { return 0; } else { return 1; } } function verifyEmailAdd($x){ if (!filter_var($x, FILTER_VALIDATE_EMAIL)) { return 0; } else { return 1; } } var_dump(verifyUsername("45wqadf")); var_dump(verifyUsername("wqadf")); var_dump(verifyEmailAdd("45wqadf@&%")); var_dump(verifyEmailAdd("wqadf@blah.com"));
Output for git.master, git.master_jit, rfc.property-hooks
int(0) int(1) int(0) int(1)

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:
29.38 ms | 405 KiB | 5 Q