3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // seed with microseconds function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand();
Output for 4.3.0 - 7.1.0