3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = -1; $i <= 24; $i++) { $bytes = openssl_random_pseudo_bytes($i, $cstrong); $hex = base64_encode($bytes); echo "Lengths: Bytes: $i and Hex: " . strlen($hex) . PHP_EOL; var_dump($hex); var_dump($cstrong); echo PHP_EOL; } ?>

preferences:
48.84 ms | 402 KiB | 5 Q