3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomId = crypt(uniqid(rand(), 1)); $randomId = str_replace('.', '', $randomId); $randomId = strrev(str_replace('/', '', $randomId)); $randomId = substr($randomId, 0, 10); echo $randomId;

preferences:
26.7 ms | 402 KiB | 5 Q