3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mt_srand(42); 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
ZrNcDmpHvBRmedLWSspXdGNnl4KVNAFX650lgb+7FKDLORX861gw2jr+qf/bu88O ZrNcDmpHvBRmedLWSspXdGNnl4KVNAFX650lgb-7FKDLORX861gw2jr-qf_bu88O vb2uvTJrNvM/+ILkMoYUSKYRg1g7DfH5CFk0gVNbbrvGq/wHriLNUKMxZ4MB/YU1 vb2uvTJrNvM_-ILkMoYUSKYRg1g7DfH5CFk0gVNbbrvGq_wHriLNUKMxZ4MB_YU1 aQM13L6R2Suhyb3jDV4vDsfN1vv4vSfUz+xRbjQXmdj7u3vsKJwOLEBYRghXgOuH aQM13L6R2Suhyb3jDV4vDsfN1vv4vSfUz-xRbjQXmdj7u3vsKJwOLEBYRghXgOuH 1z6K8lCHoqIgegTp5vkoG4bIRwuhIC/2lj3XJGKrZ9XaIsDiZK7NggAE2fb+jWYa 1z6K8lCHoqIgegTp5vkoG4bIRwuhIC_2lj3XJGKrZ9XaIsDiZK7NggAE2fb-jWYa iM4OWSl7zLI+X+bwM/xfg93klubsjqocIwyfRrryVRtBqSw9uPSFGxtrK1MdvUp/ iM4OWSl7zLI-X-bwM_xfg93klubsjqocIwyfRrryVRtBqSw9uPSFGxtrK1MdvUp_ +fZb2Oa94IB4Gr14c8zoAmbFx5qIPaTgMumrl846dZ9f1+izcD3wuTML/SaBgnBk -fZb2Oa94IB4Gr14c8zoAmbFx5qIPaTgMumrl846dZ9f1-izcD3wuTML_SaBgnB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