3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $emails = array("tcely", "cely@iqnection.com", "cely@tenable.com", "Chris.Ely@gmail.com", "tcely@users.noreply.github.com"); $gh_hash = 'e1072495bf07d013ec5de9f90ad6530d'; echo $gh_hash . "\n"; foreach ($emails as $k => $email) { $md5 = md5( strtolower( trim( $email ) ) ); $sha1 = sha1( strtolower( trim( $email ) ) ); printf('email: %-30s'."=>\n", $email); printf("\t".'https://identicons.github.com/%s.png'."\n", $md5); printf("\t".'https://identicons.github.com/%s.png'."\n", $sha1); }
Output for 4.3.0 - 7.1.0
e1072495bf07d013ec5de9f90ad6530d email: tcely => https://identicons.github.com/12b52287eb827ad2b950c3f801595f4a.png https://identicons.github.com/87081a6c0430f9806c15f6e07fcda65cefbc8559.png email: cely@iqnection.com => https://identicons.github.com/68b0a06a22e632a4a79264d26d902288.png https://identicons.github.com/1bd5f8438f5e7b183af601db977d5981359f9038.png email: cely@tenable.com => https://identicons.github.com/70d8b9cda7ec7054357e4fbf24d1085d.png https://identicons.github.com/32d061a100334ee51c255aadef59cf6f785103ff.png email: Chris.Ely@gmail.com => https://identicons.github.com/f327bb42c980cfe05865f0454bd9594b.png https://identicons.github.com/fdf582bdd344106d8d48f0d7dfe855cc263e9aab.png email: tcely@users.noreply.github.com=> https://identicons.github.com/bbdf43b072770fe77a9cebcf55494764.png https://identicons.github.com/de7bcb13dd523f96685b2ca3def3956bc0120051.png