3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0;$i < 20; $i++){ echo strlen(rtrim(strtr(base64_encode(random_bytes(24)), '+/', '-_'), '=')); echo "\n"; }

preferences:
32.05 ms | 402 KiB | 5 Q