3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emails = array("tcely", "cely@iqnection.com", "cely@tenable.com", "Chris.Ely@gmail.com", "tcely@users.noreply.github.com"); $gh_hash = 'e1072495bf07d013ec5de9f90ad6530d'; printf("github hash (len: %d): %s\n", strlen($gh_hash), $gh_hash); printf("%s\n", md5( strtolower( trim( "matt@mullenweg.com" ) ) ) ); 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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
github hash (len: 32): e1072495bf07d013ec5de9f90ad6530d d5d30d232682e6176045145b20befc5c 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

preferences:
212.92 ms | 407 KiB | 310 Q