3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomData = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); if ($randomData !== false && strlen($randomData) === 20) { echo bin2hex($randomData); }

preferences:
42.18 ms | 404 KiB | 5 Q