3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t1 = microtime(true); 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 VDcuv
Output for 7.1.0
0.00060701370239258
Output for 7.0.14
0.00059103965759277
Output for 7.0.6
0.00057387351989746
Output for 7.0.5
0.00053215026855469
Output for 7.0.4
0.00044798851013184
Output for 7.0.3
0.0004429817199707
Output for 7.0.2
0.00034999847412109
Output for 7.0.1
0.00054502487182617
Output for 7.0.0
0.0004279613494873
Output for hhvm-3.12.0
0.00073719024658203
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
0.0053341388702393
Output for 5.6.21
0.0055100917816162
Output for 5.6.20
0.0061571598052979
Output for 5.6.19
0.0038399696350098
Output for 5.6.18
0.0032250881195068
Output for 5.6.17
0.0043411254882812
Output for 5.6.16
0.0054779052734375
Output for 5.6.15
0.0037829875946045
Output for 5.6.14
0.0048630237579346
Output for 5.6.13
0.0045120716094971
Output for 5.6.12
0.0037589073181152
Output for 5.6.11
0.0054938793182373
Output for 5.6.10
0.0047769546508789
Output for 5.6.9
0.0050430297851562
Output for 5.6.8
0.004525899887085
Output for 5.6.7
0.0031890869140625
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/ZTkbu on line 4
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/ZTkbu on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ZTkbu on line 4
Process exited with code 255.