3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo base64_encode( random_bytes(9) ); echo strtr( base64_encode( random_bytes(9) ), '+/', '-_' );
based on 9ndkk
Output for 7.2.0
7ijwLNto19ZB5WWztSkQoj-d
Output for 7.1.10
TjVoQrp2aqXOEYnlE-W1s0vt
Output for 7.1.7
LtIxnZocaOcafViRqMRuzMkb
Output for 7.1.6
EN207G7uGECyFLh0kCgxWzTx
Output for 7.1.5
7IdAROKuP3BhlYbKe7b1yiHQ
Output for 7.1.0
T15doGt6q5v0TO463a3lPS25
Output for 7.0.20
8gm+xpe7xnFhr8L33u1fchXX
Output for 7.0.6
ZGtjDUIRehXJsDkYpES_0od5
Output for 7.0.5
BOGxI/klb737xubRBGl0zWRI
Output for 7.0.4
ZU0ePgJWV0FiawzbhJn2bXCW
Output for 7.0.3
GlmxAEH/1zLCoTBME_Q_vDH-
Output for 7.0.2
e6Fgk21fRmVEwOk1oXCekCc4
Output for 7.0.1
iUAcCIOBf5Z70sg1U5HqXR4h
Output for 7.0.0
7xD63LqGtAzPOQXyzpzWsKqt
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/pjmiU on line 4
Process exited with code 255.