3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $length = 32; $bytes = openssl_random_pseudo_bytes($length * 2); echo substr(str_replace(array('/', '+', '='), '', base64_encode($bytes)), 0, $length);
Output for 7.1.0
EWVMk49VkGEkJqsH6LLJjuct1QZHvc7a
Output for 7.0.14
vwklIgtD64VQcc2t47tYc2bJNi52NI8e
Output for 7.0.11
ZQ1L5gGE6AlJhBvJu8fXNJDOMSwLQc64
Output for 7.0.10
Ufut1uJd3ZDcSInLu0JBqHE83CXrRHnj
Output for 7.0.9
yiP7m4D5HfECFxV3gwJ5HbBw1RAaLoAB
Output for 7.0.8
SiCou3fReDn0q95EzYrGYdl2SOqFOJPI
Output for 7.0.7
bWspyB8S4cefsmR6jVOLAsh1Y7FTf1Mj
Output for 7.0.6
p8fLC7AlZU46y90RTVGGO6bg60zVomzJ
Output for 7.0.5
jdTzpgW8Vl97X1kNELtEEKR9pSO46UNF
Output for 7.0.4
57wrIh0PWAbusEkLqLxhmXay2nta2QaN
Output for 7.0.3
NYtyx1QwfaBeDralRjTSz51o67z5X6ug
Output for 7.0.2
cNTA3Q3BqOZ67GaLhgGEuUIUcpFLifZM
Output for 7.0.1
686dFsiLBuMAJce1Vw23kU8QupCTTqYZ
Output for 7.0.0
1m3eayHealMNYkAPkBilOWNsUhPOPAXd
Output for hhvm-3.13.2
qDJrhrzRhGwUbsG1J88Ldgzfw1ZneG2c
Output for hhvm-3.12.0
FcgBpZoCaJt92mijKdAonKmhIP8nNR3e
Output for hhvm-3.10.0
dwLrHro09UaSPTXI4DU5siPlTirEx3m4
Output for 5.6.28
mdpbzScEyfnkhKVZQ785AQe0juaFdyxC
Output for 5.6.26
kd4bMsObIwnxN1adOClxNAxFzrBD1z9i
Output for 5.6.25
8P0qeoYQy1oBlnAOQdrZY10ELHDd95XR
Output for 5.6.24
BF9xoGGClHLZ8RwsQ1es9bjdlJbyYsxM
Output for 5.6.23
zs0sAFOMGoz5cWJRfRLui3drTMNuuQT2
Output for 5.6.22
ac6B3RPWwS0BRNf5WQrMXGFhm8opK8Zx
Output for 5.6.21
edkdAHGod44DM2DUqpQQF1hkJxkTAXbC
Output for 5.6.20
VNYWEIZsR4dt1ZesJ5oWYqyWnwqVFv5m
Output for 5.6.19
os6h5XaOpVxKRXbpnltaDwL28kjfslKc
Output for 5.6.18
Iosd7S9vn7ypFKAHOntIJkV943FB8IwW
Output for 5.6.17
LcOuCyshs1Wyx90upyAobEtrwwNWeKLu
Output for 5.6.16
RKXQhswoQMt2CYdU9bCyxl2sbfB5wlXQ
Output for 5.6.15
HVwLgqqGpo1NwRntw34EUv92IUjRf1m4
Output for 5.6.14
zOV8gGGPff9Fda7ERYUvGWvSJ5m3F1o5
Output for 5.6.13
I3zcQN29vqN5QfBwEDSjkNRHPazibh4A
Output for 5.6.12
DvpomGZ1TQy0txDbSQ8LFsb2HZHt4TvW
Output for 5.6.11
dxRShCDnXq0c9L9ji3t31BAehyGtANoZ
Output for 5.6.10
ucdzWpDwIy9Mim1s5S5plIwr7VA7uwNe
Output for 5.6.9
bIRZGDK68lCJVG67pHz5DEl5JZImfg8w
Output for 5.6.8
sXyXRLk5R6IMbeCNFl4MyzfF5N45xkxk
Output for 5.6.7
kQAHylwzoAPG0dz27XeQPREl71UK2iYq
Output for 5.6.6
vvMRmhhZCJyeC8gzPKxQksjjSaN6AUJO
Output for 5.6.5
he5ji5ux0ZyNnwBLbvylsRZP5CJ74lJC
Output for 5.6.4
zLp7ekxB8dwp8AhEf95rGvQk0gUQzeE5
Output for 5.6.3
5SH4W9ns1Rl1Dq8Wp2GRanaR45f39ykn
Output for 5.6.2
LWyPmL0lV6W7nO5iuPtTtPcmfX9nckR5
Output for 5.6.1
WyYF0nKppPaTIZVKDDp1BsPN7nSygKj1
Output for 5.6.0
hQaOoviapaS6P8DZ7MEN8JijKOuG4Rt0
Output for 5.5.38
NvXdxfz6czMuiI39clns5RYlhPtbaPfp
Output for 5.5.37
6nwRmQ0SYxmlnPlIEuY7ZAjuTYKer5Yf
Output for 5.5.36
ksDDmZkD1WejOqpE6GofjN87HG5QtSHH
Output for 5.5.35
yidMg3TqAeVrGEZ8rH2ySATcnZGHkKaz
Output for 5.5.34
wR4UyiNPGJn6OPobOU4JX4D6YacdQKq5
Output for 5.5.33
TKAXYY2yZePWBkGk6ip4TYzCDhubmGCH
Output for 5.5.32
EnpRdIh29iDryCXJqgY7iZJZPlG00YCu
Output for 5.5.31
qgScHOa4jvW3CpKiPYDsZSFSa2qOWXAT
Output for 5.5.30
2Yg7bz5idsfEIEdoAPphnJx4u77SwQ9n
Output for 5.5.29
wbqVkfsk1ih5Hscu1eeiHvzNNrNG8p5D
Output for 5.5.28
O6bD3pYXtE3e8GhLEvd99J2UE5LdDuBV
Output for 5.5.27
49k34fIOGdYfZGYcc3etPLU22zwhJYnk
Output for 5.5.26
qlxkELAwgOJHeTIXwTmZgdzPSWFjuf26
Output for 5.5.25
t2AhpsISAkC4n09sRz4vppXuu8vLLXDt
Output for 5.5.24
qxNMzkdDf2WrzyTrfq6psEiL3km7mTGl
Output for 5.5.23
FIyXYbjHHCECLjHwtWWXLHb1OZrsmqFT
Output for 5.5.22
6Ylvh6Zkn9PR0FnUO1mAm8SZgzMCg4iW
Output for 5.5.21
lEd5SRNApgMjpGhDZl9jUh55mNWvSVbn
Output for 5.5.20
a0PRUEiAKR03tQTupFDdd42IZiBkNL6n
Output for 5.5.19
5ozrEjoOeNuroqltO0t9zP3tsg4gFUid
Output for 5.5.18
WaRcAE9pMkgxncP65Znj0IwU4tZUyhAA
Output for 5.5.16
TsymOkoch4VKrchCdzEVi1b3i43hfP1P
Output for 5.5.15
AI7oVCLrwr8LsP5EkWhbRE1V7Lw30Fvs
Output for 5.5.14
5iDgARuriB8SkGy7H0C9lFwHcFoacsoI
Output for 5.5.13
7wsBOus1p0YCX84qmh3qCNlNVsvAJUwd
Output for 5.5.12
z0cxxmYKPay1DXOzvzphdOZIxC4jHr3l
Output for 5.5.11
A1diJB7W26KbGkklOhnFgCbuEQKwwhmD
Output for 5.5.10
EReSS2XrKtDgCG9jBt6JtIf2VB30EQ7D
Output for 5.5.9
TV8lhDgjH5nv5oH3vgVeaxRtLFwtso8q
Output for 5.5.8
vuWCn41vl4jA6sEFiZR3C74H5tRGuO07
Output for 5.5.7
PWCOxyhaXbwN6cGUojB684WueT8Xt3qd
Output for 5.5.6
QnfkkzMty1urznPC3adSNH3nKpLPwY9S
Output for 5.5.5
t0iyPmeTkVYE0mmDkhETvUm2ylVzrwNq
Output for 5.5.4
43kFyG0ahSAjpIcgU8kzm63d401qgbxP
Output for 5.5.3
PZHmf0kj9eFBVh3ToHgMrEBLQspJd8dH
Output for 5.5.2
I1qUmufzl8JwCd0ZkwMV3xoDxspb6M8g
Output for 5.5.1
Nh19LqMCC4YoXjqNLmeVaGKsg5BweGwG
Output for 5.5.0
arKyIadHil3KmqpzJLGdeNv3Atx8naGO
Output for 5.4.45
qxcKI1qPySTRR9pspcpkOC9JN2amXECS
Output for 5.4.44
xTDQlc8XpTLvCRubPnp7IAFnFbFAUPJ0
Output for 5.4.43
ZdjHDVU0uQWt8LRri1JSMHpZyZ907CoV
Output for 5.4.42
zSXjHQOLB2maJkieudo3HeduE0IEOXHk
Output for 5.4.41
t5XwTvm1BKPi1r161F2hcPN4Y9Rxp0ba
Output for 5.4.40
qRCYZYxXF8Fq7qhamFyyn9c31TxgVRZt
Output for 5.4.39
YyjJyLb450LdsXwGCTfH2FJE02gT1qBa
Output for 5.4.38
GHU93jk9MnGwcX0Ty1OYIVAiUpWIsp8n
Output for 5.4.37
H9mbWTAFMUxMo0vnPygnseGh0HTxiNDK
Output for 5.4.36
kp4NdQ06Hrl8rLaSbyp57RMKPld3RsSv
Output for 5.4.35
MAJzThwAn3M34BBLsXm4eQV9g7t3Be6y
Output for 5.4.34
gz7K2NIs8hzdwY680dGX7McFbj0PqGs7
Output for 5.4.32
j6C9fNiwsalwrAOBdhUwCHQL7Coybq6F
Output for 5.4.31
DYiNdFJ1kDdsCr0xrJUhovYOE37byHnG
Output for 5.4.30
f9FzN9ESmH5MrHGdI0o20Wj6Y4oZhiOF
Output for 5.4.29
rYY3CvYPVESRPZF2S8vYIkktifl55u0M
Output for 5.4.28
wMSYHIK1iS5CALrW5sIe7AIcBpUCoyFm
Output for 5.4.27
QotMrZJif0VDJ6Tve7q2CIMEZU4giQTA
Output for 5.4.26
tTR5Db0zS621BUg9ak2QRBk3bKlMLg54
Output for 5.4.25
x9JdTrQ5JlzcIyOAqeKm7DKiJLdgN9Lw
Output for 5.4.24
tXcyJVjzVcIhG3PCFMMbEyVGERWCMYhl
Output for 5.4.23
rgjmevpO9WLTSIKZqVlDx5MPw60GIAij
Output for 5.4.22
MY8WIM6ax3k72XbktujboCl2gR8o2Fwo
Output for 5.4.21
hW4zCQ9UsPjMWkjSYxQ0pGNqCIVktmxN
Output for 5.4.20
k9c9m30J8wqLNlpccMYtXJFSlLbyYQaJ
Output for 5.4.19
vdxs3qTsuwlJbaO3RbyGNdDwiBAtwKaW
Output for 5.4.18
1xyfiXAk8obUS8Yh9wxGfKA0eRKLUCL8
Output for 5.4.17
HTmmyt8ZAumuX286Ui6pNAK3xTk92XwT
Output for 5.4.16
yyinxH4PD7jZ9HFEoDyF5FdlTO5KjqCY
Output for 5.4.15
clLJvIlSjXKr6BPCJjjaEpGp1L1rMsL5
Output for 5.0.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/2OnY8 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/2OnY8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/2OnY8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/2OnY8 on line 3