3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t1 = microtime(true); for($i = 1; $i < 1000; $i++) { for($i = 1; $i < 1000; $i++) { $varArray1[] = $i ** ($i * 2); if($i%2==0) $varArray2[] = $i ** ($i * 2); else $varArray2[] = $i ** ($i * 4); } array_diff($varArray1,$varArray2); } $t2 = microtime(true); echo $t2 - $t1;
based on ZTkbu
Output for 7.1.0
0.00080704689025879
Output for 7.0.14
0.00058293342590332
Output for 7.0.6
0.00058412551879883
Output for 7.0.5
0.00055813789367676
Output for 7.0.4
0.00048995018005371
Output for 7.0.3
0.00047707557678223
Output for 7.0.2
0.00052285194396973
Output for 7.0.1
0.00050687789916992
Output for 7.0.0
0.0005190372467041
Output for hhvm-3.12.0
0.00063109397888184
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
0.0055570602416992
Output for 5.6.21
0.0050480365753174
Output for 5.6.20
0.004971981048584
Output for 5.6.19
0.0042879581451416
Output for 5.6.18
0.0032188892364502
Output for 5.6.17
0.0042688846588135
Output for 5.6.16
0.0034258365631104
Output for 5.6.15
0.0033888816833496
Output for 5.6.14
0.0052030086517334
Output for 5.6.13
0.0034358501434326
Output for 5.6.12
0.0034940242767334
Output for 5.6.11
0.0050129890441895
Output for 5.6.10
0.0040450096130371
Output for 5.6.9
0.0040960311889648
Output for 5.6.8
0.0050919055938721
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/B7HSa on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '*' in /in/B7HSa on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/B7HSa on line 5
Process exited with code 255.