3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for ($i = 0; $i < 100000000; $i++) { rand(); } $end = microtime(true) - $start; printf("%0.6F\n", $end); $start = microtime(true); for ($i = 0; $i < 100000000; $i++) { mt_rand(); } $end = microtime(true) - $start; printf("%0.6F\n", $end);
Output for 7.1.0
0.419843
Process exited with code 137.
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.14

Process exited with code 137.
Output for 7.0.10
1.965020
Process exited with code 137.
Output for 7.0.9
2.088669
Process exited with code 137.
Output for 7.0.8
1.836093
Process exited with code 137.
Output for 7.0.7
1.862233
Process exited with code 137.
Output for 7.0.6
1.921273
Process exited with code 137.
Output for 7.0.5
1.981621
Process exited with code 137.
Output for 7.0.4
2.128161
Process exited with code 137.
Output for 7.0.3
1.941176
Process exited with code 137.
Output for 7.0.2
2.098281
Process exited with code 137.
Output for 7.0.1
1.974083
Process exited with code 137.
Output for 7.0.0
2.005519
Process exited with code 137.