3v4l.org

run code in 300+ PHP versions simultaneously
<?php function randomPassword() { $currentmonth = date('n') - 1; $alphabet = "abcdefghijklm"; $random_hash = substr(md5(uniqid(rand(), true)), 28, 4); return $random_hash . substr($alphabet, $currentmonth, 1); } echo randomPassword();

preferences:
26.23 ms | 408 KiB | 5 Q