3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mt_srand(43); for ($i = 0; $i < 20; $i++) { echo_key(); } function echo_key() { $buf = rand_buffer(48); echo base64_encode($buf) . "\n"; echo base64_urlencode($buf) . "\n"; } function base64_urlencode($buf) { return str_replace(array('+', '/', '='), array('-', '_', ''), base64_encode($buf)); } function rand_buffer($n) { //try { // $buf = openssl_random_pseudo_bytes($n); //} catch (Exception $e) { $buf = ""; for ($i = 0; $i < $n; $i++) { $buf .= chr(mt_rand(0, 255)); } //} return $buf; }
Output for 7.1.0
RED/MRU6EDORu1vCbp5XQCN/snvLWcFvIkvC43WEJPB1zNj8ryDKPHBJojC0xHgc RED_MRU6EDORu1vCbp5XQCN_snvLWcFvIkvC43WEJPB1zNj8ryDKPHBJojC0xHgc SYc9VC9otaADoqnrmZ3wdvqatdUV6EobugffPWN2M6KuajSSF4N7RhgzBn2sVyRV SYc9VC9otaADoqnrmZ3wdvqatdUV6EobugffPWN2M6KuajSSF4N7RhgzBn2sVyRV DlNV8yjTftUbKjHGkBBszj9955y7H9HzoQUNCMAztkkErkZs/6tXGdRVGOScl6Rb DlNV8yjTftUbKjHGkBBszj9955y7H9HzoQUNCMAztkkErkZs_6tXGdRVGOScl6Rb EhnWF6h72OHIybtsr8Wc1WqYVhgzxCoi/NxjUbQymrxfciFbnpS1BRBjFBosbxeh EhnWF6h72OHIybtsr8Wc1WqYVhgzxCoi_NxjUbQymrxfciFbnpS1BRBjFBosbxeh K6KXT8mD4S568bMWdWpJDE2ovHr93nCcVa3wuPwGX55HeG2a+JeBiSuZdKnhBn8r K6KXT8mD4S568bMWdWpJDE2ovHr93nCcVa3wuPwGX55HeG2a-JeBiSuZdKnhBn8r E1BroZmXqBzjYh+f4PObMpA8MoYnxAmkvUZQpPz+lmBUa5wWE8uG17jhDmQFgV86 E1BroZmXqBzjYh-f4PObMpA8MoYnxAmkvUZQpPz-lmBUa5wWE8uG17jhDmQFgV86 2KCyfEKnNm9c9TrscA6bjbl0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