3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 100000; ++$i) $a[] = rand(); $t = microtime(true); echo (microtime(true) - $t) * 1000000;
Output for 7.0.3 - 7.0.4, 7.0.6, 7.0.12, 7.0.18, 7.1.0, 7.1.2 - 7.1.3, 7.1.7 - 7.1.10, 7.2.6
0.95367431640625
Output for 7.0.0, 7.0.2, 7.0.5, 7.0.7, 7.0.9, 7.0.11, 7.0.13 - 7.0.15, 7.0.20, 7.1.1, 7.1.4 - 7.1.6, 7.2.0
0
Output for 7.0.1, 7.0.8, 7.0.16 - 7.0.17, 7.0.19
1.1920928955078
Output for 7.0.10
2.1457672119141

preferences:
57.05 ms | 401 KiB | 37 Q