3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $seed = (int)bin2hex(openssl_random_pseudo_bytes(16)); echo $seed;
based on 3UjHd
Output for 7.2.6
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/Ps9mJ:2 Stack trace: #0 {main} thrown in /in/Ps9mJ on line 2
Process exited with code 255.
Output for 7.2.0
19
Output for 5.6.3, 5.6.9 - 5.6.12, 5.6.16, 5.6.19 - 5.6.22, 5.6.25 - 5.6.28, 5.6.30, hhvm-3.15.4, 7.0.0, 7.0.2, 7.0.6 - 7.0.7, 7.0.9, 7.0.11 - 7.0.12, 7.0.14, 7.0.16 - 7.0.17, 7.1.2, 7.1.4, 7.1.10
0
Output for 7.1.7
9
Output for 7.1.6
1
Output for 7.1.5
847602
Output for 7.1.3
7
Output for 5.6.7, 5.6.18, 7.0.4, 7.1.1
2
Output for 7.1.0
2820
Output for 7.0.20
45
Output for 7.0.19
6
Output for 5.6.14, 7.0.8, 7.0.13, 7.0.18
5
Output for 7.0.10, 7.0.15
46
Output for 7.0.3, 7.0.5
4
Output for 7.0.1
43374
Output for 5.6.29
74
Output for 5.6.24
78
Output for 5.6.23
449
Output for 5.6.17
82
Output for 5.6.15
68
Output for 5.6.13
26
Output for 5.6.8
13922
Output for 5.6.6
3083
Output for 5.6.5
3374
Output for 5.6.4
97
Output for 5.6.2
52
Output for 5.6.1
3551
Output for 5.6.0
94