3v4l.org

run code in 300+ PHP versions simultaneously
<?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.2.0
2.250232
Process exited with code 137.
Output for 7.1.7
2.090396
Process exited with code 137.
Output for 7.1.6
2.011689
Process exited with code 137.
Output for 7.1.5
1.973073
Process exited with code 137.
Output for 7.1.0
0.419843
Process exited with code 137.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.14 - 7.0.20

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.

preferences:
117.74 ms | 401 KiB | 216 Q