3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $t = microtime(true); for ($i = 0; $i < 1000000; ++$i) $a[] = rand(); echo (microtime(true) - $t) / 100000;
based on 971h7
Output for 7.2.6
6.7487955093384E-7
Output for 7.2.0
5.4240942001343E-7
Output for 7.1.10
5.3602933883667E-7
Output for 7.1.7
6.6910028457642E-7
Output for 7.1.6
6.93519115448E-7
Output for 7.1.5
6.3012838363647E-7
Output for 7.1.4
6.737494468689E-7
Output for 7.1.3
7.3630094528198E-7
Output for 7.1.2
6.495189666748E-7
Output for 7.1.1
6.1336040496826E-7
Output for 7.1.0
5.8701038360596E-7
Output for 7.0.20
7.1857929229736E-7
Output for 7.0.19
6.7364931106567E-7
Output for 7.0.18
6.4599990844727E-7
Output for 7.0.17
9.6017837524414E-7
Output for 7.0.16
7.6942920684814E-7
Output for 7.0.15
7.221794128418E-7
Output for 7.0.14
6.7812919616699E-7
Output for 7.0.13
6.4949989318848E-7
Output for 7.0.12
7.5835943222046E-7
Output for 7.0.11
8.147120475769E-7
Output for 7.0.10
7.3094129562378E-7
Output for 7.0.9
9.2526197433472E-7
Output for 7.0.8
7.3561906814575E-7
Output for 7.0.7
6.8392992019653E-7
Output for 7.0.6
6.6195011138916E-7
Output for 7.0.5
6.9916009902954E-7
Output for 7.0.4
6.7763090133667E-7
Output for 7.0.3
6.5783977508545E-7
Output for 7.0.2
6.4206123352051E-7
Output for 7.0.1
6.8175077438354E-7
Output for 7.0.0
8.7072134017944E-7
Output for hhvm-3.15.4
1.6834306716919E-6
Output for 5.6.0 - 5.6.30
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/JBLoh on line 8
Process exited with code 255.