3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_rand($length=10) { return substr(str_shuffle(MD5(microtime())), 0, 10); } echo str_rand();

preferences:
31.26 ms | 402 KiB | 5 Q