3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $digits = 40; var_dump(rand(pow(10, $digits - 1) - 1, pow(10, $digits) - 1));
Output for 7.0.0 - 7.1.0
Warning: rand() expects parameter 1 to be integer, float given in /in/bkkTo on line 5 NULL
Output for hhvm-3.12.0
Warning: rand() expects parameter 1 to be integer, double given in /in/bkkTo on line 5 NULL
Output for 4.3.0 - 5.0.1, 5.0.3 - 5.6.28, hhvm-3.10.0
int(0)
Output for 5.0.2
int(9223372036854775807)