3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1, 500000); $startTime = microtime(true); shuffle($range); echo "Time: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n";
Output for 7.1.0
Time: 0.0283 Seconds
Output for 7.0.14
Time: 0.0199 Seconds
Output for 7.0.10
Time: 0.0224 Seconds
Output for 7.0.9
Time: 0.0161 Seconds
Output for 7.0.8
Time: 0.0282 Seconds
Output for 7.0.7
Time: 0.0180 Seconds
Output for 7.0.6
Time: 0.0181 Seconds
Output for 7.0.5
Time: 0.0193 Seconds
Output for 7.0.4
Time: 0.0216 Seconds
Output for 7.0.3
Time: 0.0174 Seconds
Output for 7.0.2
Time: 0.0167 Seconds
Output for 7.0.1
Time: 0.0170 Seconds
Output for 7.0.0
Time: 0.0173 Seconds
Output for hhvm-3.12.0
Time: 0.0539 Seconds
Output for hhvm-3.10.0
Time: 0.0432 Seconds
Output for 5.3.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/Fs3vG on line 2
Process exited with code 255.
Output for 5.2.6 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/Fs3vG on line 2
Process exited with code 255.
Output for 5.2.1 - 5.2.5
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /in/Fs3vG on line 2
Process exited with code 255.
Output for 5.2.0
Time: 0.1402 Seconds
Output for 5.1.6
Time: 0.1519 Seconds
Output for 5.1.5
Time: 0.1317 Seconds
Output for 5.0.1, 5.1.4
Time: 0.1273 Seconds
Output for 4.3.8, 4.4.5, 5.1.3
Time: 0.1296 Seconds
Output for 5.1.2
Time: 0.1688 Seconds
Output for 5.1.1
Time: 0.1234 Seconds
Output for 5.1.0
Time: 0.1260 Seconds
Output for 5.0.5
Time: 0.1207 Seconds
Output for 5.0.4
Time: 0.1329 Seconds
Output for 5.0.3
Time: 0.1241 Seconds
Output for 5.0.2
Time: 0.1216 Seconds
Output for 5.0.0
Time: 0.1268 Seconds
Output for 4.4.9
Time: 0.1357 Seconds
Output for 4.4.8
Time: 0.1292 Seconds
Output for 4.4.7
Time: 0.1321 Seconds
Output for 4.4.6
Time: 0.1282 Seconds
Output for 4.4.4
Time: 0.1333 Seconds
Output for 4.4.3
Time: 0.1307 Seconds
Output for 4.4.2
Time: 0.1408 Seconds
Output for 4.4.1
Time: 0.1318 Seconds
Output for 4.4.0
Time: 0.1352 Seconds
Output for 4.3.11
Time: 0.1310 Seconds
Output for 4.3.10
Time: 0.1390 Seconds
Output for 4.3.9
Time: 0.1291 Seconds
Output for 4.3.7
Time: 0.1209 Seconds
Output for 4.3.6
Time: 0.1407 Seconds
Output for 4.3.5
Time: 0.1306 Seconds
Output for 4.3.4
Time: 0.1455 Seconds
Output for 4.3.3
Time: 0.1252 Seconds
Output for 4.3.2
Time: 0.1251 Seconds
Output for 4.3.1
Time: 0.1353 Seconds
Output for 4.3.0
Time: 0.1334 Seconds