3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = bin2hex(openssl_random_pseudo_bytes(4)); echo $string;
based on lh0Ee
Output for 7.2.6
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/lgMib:2 Stack trace: #0 {main} thrown in /in/lgMib on line 2
Process exited with code 255.
Output for 7.2.0
f8f3cf4f
Output for 7.1.10
b695863d
Output for 7.1.7
efd8b7e2
Output for 7.1.6
356d0cc3
Output for 7.1.5
f1b01e9a
Output for 7.1.4
5dba610d
Output for 7.1.3
c5fdf64f
Output for 7.1.2
72e3b83e
Output for 7.1.1
0eb50c6d
Output for 7.1.0
20edd1c7
Output for 7.0.20
52bc2077
Output for 7.0.19
e525ef58
Output for 7.0.18
8cd7cf20
Output for 7.0.17
36dfee82
Output for 7.0.16
7282f906
Output for 7.0.15
a3bae020
Output for 7.0.14
2be7672a
Output for 7.0.13
9ab56b16
Output for 7.0.12
b0b14ec4
Output for 7.0.11
07d24f5a
Output for 7.0.10
0c592f89
Output for 7.0.9
efbc300c
Output for 7.0.8
dd10cda5
Output for 7.0.7
5f56f3c3
Output for 7.0.6
ced8b0f4
Output for 7.0.5
eefca68e
Output for 7.0.4
194881b6
Output for 7.0.3
47b4ee35
Output for 7.0.2
ea973a0f
Output for 7.0.1
caa01f8d
Output for 7.0.0
b49ecb38
Output for hhvm-3.15.4
2b894837
Output for 5.6.30
ffbe5009
Output for 5.6.29
801d1246
Output for 5.6.28
1e19435d
Output for 5.6.27
f141206d
Output for 5.6.26
5de10fca
Output for 5.6.25
4c62a5a2
Output for 5.6.24
9d54cf35
Output for 5.6.23
f8762b3b
Output for 5.6.22
ac065e69
Output for 5.6.21
b745ebd6
Output for 5.6.20
5575a996
Output for 5.6.19
126fc0fe
Output for 5.6.18
4498d0a7
Output for 5.6.17
e3078188
Output for 5.6.16
79fa88ce
Output for 5.6.15
7b966d5d
Output for 5.6.14
3c66786a
Output for 5.6.13
62027b6f
Output for 5.6.12
9ca2685e
Output for 5.6.11
c6ff7b3f
Output for 5.6.10
b5ad008b
Output for 5.6.9
5db3085f
Output for 5.6.8
d466c236
Output for 5.6.7
1ced6528
Output for 5.6.6
dfc992aa
Output for 5.6.5
73a6a27a
Output for 5.6.4
070eb530
Output for 5.6.3
2a663b5c
Output for 5.6.2
03cc442d
Output for 5.6.1
b791ca21
Output for 5.6.0
1ff36f5c