3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = microtime(1); $i = 0; $cl = function(){}; while (true) { if ( ++$i>10000 ) break; $cl instanceof Closure; } var_dump(microtime(1) - $s);
Output for 7.1.0
float(0.00027203559875488)
Output for 7.0.14
float(0.00026798248291016)
Output for 7.0.6
float(0.00025081634521484)
Output for 7.0.5
float(0.00027799606323242)
Output for 7.0.4
float(0.00021600723266602)
Output for 7.0.3
float(0.00016498565673828)
Output for 7.0.2
float(0.0001978874206543)
Output for 7.0.1
float(0.00024890899658203)
Output for 7.0.0
float(0.00016617774963379)
Output for hhvm-3.12.0
float(0.00047898292541504)
Output for hhvm-3.10.0
float(0.00064587593078613)
Output for 5.5.33, 5.6.28
float(0.00055599212646484)
Output for 5.6.21
float(0.00046181678771973)
Output for 5.6.20
float(0.00051379203796387)
Output for 5.6.19
float(0.00056695938110352)
Output for 5.6.18
float(0.00040411949157715)
Output for 5.6.17
float(0.0004270076751709)
Output for 5.6.16
float(0.00041294097900391)
Output for 5.5.31, 5.6.15
float(0.00050592422485352)
Output for 5.6.14
float(0.0003359317779541)
Output for 5.4.35, 5.6.13
float(0.00051999092102051)
Output for 5.6.12
float(0.00052905082702637)
Output for 5.6.11
float(0.0004119873046875)
Output for 5.6.10
float(0.00043416023254395)
Output for 5.6.9
float(0.00041580200195312)
Output for 5.6.8
float(0.00053691864013672)
Output for 5.5.35
float(0.00034904479980469)
Output for 5.5.34
float(0.00050091743469238)
Output for 5.5.32
float(0.0004730224609375)
Output for 5.5.30
float(0.0003662109375)
Output for 5.5.29
float(0.00055193901062012)
Output for 5.5.28
float(0.0003509521484375)
Output for 5.5.27
float(0.00055503845214844)
Output for 5.4.40, 5.5.26
float(0.00053811073303223)
Output for 5.5.25
float(0.00052595138549805)
Output for 5.5.24
float(0.00034618377685547)
Output for 5.4.45
float(0.00043487548828125)
Output for 5.4.44
float(0.0005040168762207)
Output for 5.4.43
float(0.00037884712219238)
Output for 5.4.42
float(0.00031495094299316)
Output for 5.4.41
float(0.00051689147949219)
Output for 5.4.39
float(0.00044584274291992)
Output for 5.4.38
float(0.00050497055053711)
Output for 5.4.37
float(0.00090289115905762)
Output for 5.4.36
float(0.00051283836364746)
Output for 5.4.34
float(0.00080490112304688)
Output for 5.4.32
float(0.00043201446533203)
Output for 5.4.31
float(0.00040388107299805)
Output for 5.4.30
float(0.0006260871887207)
Output for 5.4.29
float(0.00058698654174805)
Output for 5.4.28
float(0.0015828609466553)
Output for 5.4.27
float(0.00062203407287598)
Output for 5.4.26
float(0.00054216384887695)
Output for 5.4.25
float(0.00061798095703125)
Output for 5.4.10, 5.4.24
float(0.00059795379638672)
Output for 5.4.23
float(0.00059294700622559)
Output for 5.4.22
float(0.00068187713623047)
Output for 5.4.21
float(0.00079989433288574)
Output for 5.4.20
float(0.00075697898864746)
Output for 5.4.19
float(0.0007472038269043)
Output for 5.4.18
float(0.00076603889465332)
Output for 5.4.17
float(0.0007789134979248)
Output for 5.4.16
float(0.00084996223449707)
Output for 5.4.15
float(0.0009920597076416)
Output for 5.4.14
float(0.001115083694458)
Output for 5.4.13
float(0.00062990188598633)
Output for 5.4.12
float(0.0014529228210449)
Output for 5.4.11
float(0.00062894821166992)
Output for 5.4.9
float(0.00058102607727051)
Output for 5.4.8
float(0.00039291381835938)
Output for 5.4.7
float(0.00059890747070312)
Output for 5.4.6
float(0.00063896179199219)
Output for 5.4.5
float(0.00058197975158691)
Output for 5.4.4
float(0.00061893463134766)
Output for 5.4.3
float(0.0018050670623779)
Output for 5.4.2
float(0.00071310997009277)
Output for 5.4.1
float(0.0019509792327881)
Output for 5.4.0
float(0.0006868839263916)
Output for 5.3.29
float(0.00072598457336426)
Output for 5.3.28
float(0.0026779174804688)
Output for 5.3.27
float(0.001460075378418)
Output for 5.3.26
float(0.0029220581054688)
Output for 5.3.25
float(0.0013940334320068)
Output for 5.3.24
float(0.0015511512756348)
Output for 5.3.23
float(0.001471996307373)
Output for 5.3.22
float(0.0015039443969727)
Output for 5.3.21
float(0.0016119480133057)
Output for 5.3.20
float(0.0017890930175781)
Output for 5.3.19
float(0.0015778541564941)
Output for 5.3.18
float(0.0019299983978271)
Output for 5.3.17
float(0.0015809535980225)
Output for 5.3.16
float(0.0014839172363281)
Output for 5.3.15
float(0.0017309188842773)
Output for 5.3.14
float(0.0015389919281006)
Output for 5.3.13
float(0.0016229152679443)
Output for 5.3.12
float(0.0015280246734619)
Output for 5.3.11
float(0.0015189647674561)
Output for 5.3.10
float(0.0014941692352295)
Output for 5.3.8 - 5.3.9
float(0.0016000270843506)
Output for 5.3.7
float(0.0016498565673828)
Output for 5.3.6
float(0.0013461112976074)
Output for 5.3.5
float(0.0017249584197998)
Output for 5.3.4
float(0.0016179084777832)
Output for 5.3.3
float(0.0016469955444336)
Output for 5.3.2
float(0.0017290115356445)
Output for 5.3.1
float(0.0019848346710205)
Output for 5.3.0
float(0.0020871162414551)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/Z155X on line 6
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 T_FUNCTION in /in/Z155X on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Z155X on line 6
Process exited with code 255.