3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo rand(0, pow(10, 20) - 1);
based on IAq01
Output for 7.0.0 - 7.1.0
Warning: rand() expects parameter 2 to be integer, float given in /in/LlAto on line 2
Output for 5.6.28
2720021480403355648
Output for 5.6.21
2837345319773209088
Output for 5.6.20
964031096203657984
Output for 5.6.19
1014208609937053568
Output for 5.6.18
7376393397179868160
Output for 5.6.17
7041502255017443328
Output for 5.6.16
1534853447889216768
Output for 5.6.15
2926379998043282944
Output for 5.6.14
7384497339326717952
Output for 5.6.13
2060532724988228096
Output for 5.6.12
2078435660183969280
Output for 5.6.11
7179811023821272064
Output for 5.6.10
6540662633311639552
Output for 5.6.9
1519433907556075520
Output for 5.6.8
609780498516724736
Output for 5.5.35
3262824653878247424
Output for 5.5.34
2552953910320444416
Output for 5.5.33
6058882999277332480
Output for 5.5.32
2653608420106068992
Output for 5.5.31
3843849124937464832
Output for 5.5.30
123056522098187568
Output for 5.5.29
4835012156175267840
Output for 5.5.28
7302353846459500544
Output for 5.5.27
4065421601865787904
Output for 5.5.26
6353659683506267136
Output for 5.5.25
3067517413892780032
Output for 5.5.24
3655678352851050496
Output for 4.3.0 - 5.0.1, 5.0.3 - 5.4.45
0
Output for 5.0.2
7167510602603036672