3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // seed with microseconds function make_seed() { $time = microtime(); echo $time; echo '<pre>';explode(' ', $time)); list($usec, $sec) = explode(' ', $time); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand(); echo $randval;
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ')' in /in/mYtXD on line 8
Process exited with code 255.