3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = microtime(true); for($i = 0; $i < 2000; $i++) { $t = function() { return 'hi'; }; $t(); } echo microtime(true) - $s;
based on 1PEDG
Output for 7.1.0
0.00040006637573242
Output for 7.0.14
0.00041508674621582
Output for 7.0.6
0.00039410591125488
Output for 7.0.5
0.00043296813964844
Output for 7.0.4
0.00038695335388184
Output for 7.0.3
0.00030303001403809
Output for 7.0.2
0.00029420852661133
Output for 7.0.1
0.00037217140197754
Output for 7.0.0
0.00036478042602539
Output for 5.6.28
0.00061821937561035
Output for 5.6.21
0.00040698051452637
Output for 5.6.20
0.0005948543548584
Output for 5.6.19
0.0003509521484375
Output for 5.6.18
0.00047111511230469
Output for 5.4.25, 5.6.17
0.00046610832214355
Output for 5.6.16
0.00043201446533203
Output for 5.6.15
0.00039792060852051
Output for 5.4.21, 5.6.14
0.00039196014404297
Output for 5.6.13
0.00055193901062012
Output for 5.6.12
0.00049304962158203
Output for 5.6.11
0.00057387351989746
Output for 5.6.10
0.00055909156799316
Output for 5.6.9
0.00036501884460449
Output for 5.6.8
0.00041699409484863
Output for 5.5.35
0.00045490264892578
Output for 5.5.34
0.00031590461730957
Output for 5.5.33
0.00037097930908203
Output for 5.5.32
0.00031709671020508
Output for 5.5.31
0.0005030632019043
Output for 5.5.30
0.00046896934509277
Output for 5.5.29
0.00051498413085938
Output for 5.5.28
0.00032281875610352
Output for 5.5.27
0.00042486190795898
Output for 5.5.26
0.00044894218444824
Output for 5.5.25
0.00049400329589844
Output for 5.5.24
0.00072789192199707
Output for 5.4.45
0.00046706199645996
Output for 5.4.44
0.00051712989807129
Output for 5.4.43
0.00049901008605957
Output for 5.4.42
0.00053000450134277
Output for 5.4.41
0.00050520896911621
Output for 5.4.40
0.00054001808166504
Output for 5.4.39
0.00094699859619141
Output for 5.4.38
0.00062990188598633
Output for 5.4.12, 5.4.37
0.0003969669342041
Output for 5.4.6, 5.4.36
0.00035595893859863
Output for 5.4.35
0.00050711631774902
Output for 5.4.8, 5.4.16, 5.4.34
0.00035691261291504
Output for 5.4.32
0.00034999847412109
Output for 5.4.31
0.00039505958557129
Output for 5.4.30
0.0045630931854248
Output for 5.4.9, 5.4.29
0.00069904327392578
Output for 5.4.28
0.00074291229248047
Output for 5.4.13, 5.4.27
0.0003669261932373
Output for 5.4.26
0.00029706954956055
Output for 5.4.24
0.00037193298339844
Output for 5.4.23
0.00034403800964355
Output for 5.4.19, 5.4.22
0.00036096572875977
Output for 5.4.20
0.0003960132598877
Output for 5.4.18
0.00037288665771484
Output for 5.4.17
0.00039291381835938
Output for 5.4.15
0.00037598609924316
Output for 5.4.14
0.00034785270690918
Output for 5.4.11
0.00038385391235352
Output for 5.4.10
0.0004119873046875
Output for 5.4.7
0.00040602684020996
Output for 5.4.5
0.0004270076751709
Output for 5.4.4
0.00036907196044922
Output for 5.4.3
0.00042009353637695
Output for 5.4.2
0.00039100646972656
Output for 5.4.1
0.00038599967956543
Output for 5.4.0
0.00035905838012695
Output for 5.3.29
0.0005190372467041
Output for 5.3.15, 5.3.28
0.00042200088500977
Output for 5.3.0, 5.3.27
0.00046300888061523
Output for 5.3.26
0.0007481575012207
Output for 5.3.25
0.0010521411895752
Output for 5.3.20, 5.3.24
0.00045013427734375
Output for 5.3.23
0.00045418739318848
Output for 5.3.22
0.0008549690246582
Output for 5.3.21
0.0004889965057373
Output for 5.3.19
0.00084495544433594
Output for 5.3.18
0.00047397613525391
Output for 5.3.6, 5.3.17
0.00047898292541504
Output for 5.3.16
0.00048208236694336
Output for 5.3.14
0.00044107437133789
Output for 5.3.13
0.00046014785766602
Output for 5.3.12
0.00047183036804199
Output for 5.3.11
0.00050020217895508
Output for 5.3.10
0.00043702125549316
Output for 5.3.9
0.00043892860412598
Output for 5.3.8
0.00043106079101562
Output for 5.3.7
0.00056815147399902
Output for 5.3.5
0.00057101249694824
Output for 5.3.4
0.00051593780517578
Output for 5.3.3
0.00048685073852539
Output for 5.3.2
0.00047802925109863
Output for 5.3.1
0.00050878524780273
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/55kMR on line 7
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/55kMR on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/55kMR on line 7
Process exited with code 255.