3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mt_srand(1); var_dump(mt_rand()); var_dump(mt_rand()); var_dump(mt_rand());
Output for 7.1.0
int(895547922) int(2141438069) int(1546885062)
Output for 5.2.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
int(1244335972) int(15217923) int(1546885062)
Output for 4.3.0 - 5.2.0
int(1898087491) int(2091264893) int(1090025303)