3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'ExamplePerson+test@Gmail.com'; // Remove email tags, value will become 'ExamplePerson@Gmail.com' $email = preg_replace('/\+[^@]+@/', '@', $email); // Convert uppercase letters, value will become 'exampleperson@gmail.com' $email = strtolower($email); // Add prefix, value will become 'anon-hash:exampleperson@gmail.com' $email = 'anon-hash:'. $email; // Make the hash, value will become '56f1902ef780b12430ae194290057a40' $ahash = md5($email); // Or, in short: $email = 'ExamplePerson+test@Gmail.com'; $bhash = md5('anon-hash:' . strtolower(preg_replace('/\+[^@]+@/', '@', $email))); var_dump($ahash, $bhash);
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "56f1902ef780b12430ae194290057a40" string(32) "56f1902ef780b12430ae194290057a40"

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:
63.04 ms | 401 KiB | 8 Q