3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { rand(); } $end = microtime(true); printf("%0.6F\n"); $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { mt_rand(); } $end = microtime(true); printf("%0.6F\n");
Output for 4.3.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: printf(): Too few arguments in /in/sAiic on line 8 Warning: printf(): Too few arguments in /in/sAiic on line 15
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: arguments: (too few) in /in/sAiic on line 8 Warning: Invalid argument: arguments: (too few) in /in/sAiic on line 15
Output for 4.3.2
Warning: printf(): Too few arguments in /in/sAiic on line 8
Process exited with code 137.
Output for 4.3.0 - 4.3.1
Warning: printf() [http://www.php.net/function.printf]: Too few arguments in /in/sAiic on line 8
Process exited with code 137.