3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php srand(22); echo $a = rand(), "\r\n";; echo rand() . "\r\n";; echo rand() . "\r\n";; srand($a); echo rand() . "\r\n"; echo rand() . "\r\n";;
Output for 7.1.0
447665594 1507454018 1034402198 589924184 1420117396
Output for 4.3.0 - 7.0.14
1857631170 1216321778 1361190386 1873379329 1489147907