3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex(random_bytes(static::KEY_LENGTH)) . "\n"; echo strlen(bin2hex(random_bytes(static::KEY_LENGTH))) . "\n";

preferences:
38 ms | 402 KiB | 5 Q