3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 50; $start = microtime(true); $code = ' $ret = ""; for ($i=0; $i<100; $i++) { $ret.= md5($i.$ret); } return $ret;'; for($i = 0; $i < $count; $i++){ eval($code); } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); $f = function(){ $ret = ''; for ($i=0; $i<100; $i++) { $ret.= md5($i.$ret); } return $ret; }; for($i = 0; $i < $count; $i++){ $f(); } printf("#2, done in %f\n", microtime(true) - $start); ?>
Output for 7.1.0
#1, done in 0.000385 #2, done in 0.016977
Output for 7.0.14
#1, done in 0.000469 #2, done in 0.021918
Output for 7.0.6
#1, done in 0.000539 #2, done in 0.021617
Output for 7.0.5
#1, done in 0.000332 #2, done in 0.014175
Output for 7.0.4
#1, done in 0.000398 #2, done in 0.018250
Output for 7.0.3
#1, done in 0.000299 #2, done in 0.014159
Output for 7.0.2
#1, done in 0.000334 #2, done in 0.015298
Output for 7.0.1
#1, done in 0.000299 #2, done in 0.014334
Output for 7.0.0
#1, done in 0.000341 #2, done in 0.015637
Output for hhvm-3.12.0
#1, done in 0.001027 #2, done in 0.015591
Output for hhvm-3.10.0
#1, done in 0.000908 #2, done in 0.015617
Output for 5.6.28
#1, done in 0.000543 #2, done in 0.023874
Output for 5.6.21
#1, done in 0.000444 #2, done in 0.017873
Output for 5.6.20
#1, done in 0.000428 #2, done in 0.019506
Output for 5.6.19
#1, done in 0.000465 #2, done in 0.020926
Output for 5.6.18
#1, done in 0.000305 #2, done in 0.014184
Output for 5.6.17
#1, done in 0.000301 #2, done in 0.014231
Output for 5.6.16
#1, done in 0.000305 #2, done in 0.014570
Output for 5.6.15
#1, done in 0.000744 #2, done in 0.030951
Output for 5.6.14
#1, done in 0.000348 #2, done in 0.016323
Output for 5.6.13
#1, done in 0.000375 #2, done in 0.015879
Output for 5.6.12
#1, done in 0.000302 #2, done in 0.014200
Output for 5.6.11
#1, done in 0.000444 #2, done in 0.020172
Output for 5.6.10
#1, done in 0.000446 #2, done in 0.020050
Output for 5.6.9
#1, done in 0.000402 #2, done in 0.018462
Output for 5.6.8
#1, done in 0.000299 #2, done in 0.014120
Output for 5.6.7
#1, done in 0.000522 #2, done in 0.023276
Output for 5.5.35
#1, done in 0.000487 #2, done in 0.021908
Output for 5.5.34
#1, done in 0.000668 #2, done in 0.028894
Output for 5.5.33
#1, done in 0.000877 #2, done in 0.033795
Output for 5.5.32
#1, done in 0.000347 #2, done in 0.015771
Output for 5.5.31
#1, done in 0.000314 #2, done in 0.014646
Output for 5.5.30
#1, done in 0.000487 #2, done in 0.022196
Output for 5.5.29
#1, done in 0.000323 #2, done in 0.014824
Output for 5.5.28
#1, done in 0.000492 #2, done in 0.021574
Output for 5.5.27
#1, done in 0.000310 #2, done in 0.014654
Output for 5.5.26
#1, done in 0.000490 #2, done in 0.021890
Output for 5.5.25
#1, done in 0.000512 #2, done in 0.022652
Output for 5.5.24
#1, done in 0.000379 #2, done in 0.017542
Output for 5.4.45
#1, done in 0.000466 #2, done in 0.023518
Output for 5.4.44
#1, done in 0.000549 #2, done in 0.024501
Output for 5.4.43
#1, done in 0.000489 #2, done in 0.021147
Output for 5.4.42
#1, done in 0.000642 #2, done in 0.023529
Output for 5.4.41
#1, done in 0.000472 #2, done in 0.020401
Output for 5.4.40
#1, done in 0.000433 #2, done in 0.019933
Output for 5.4.39
#1, done in 0.000521 #2, done in 0.020692
Output for 5.4.38
#1, done in 0.000450 #2, done in 0.021232
Output for 5.4.37
#1, done in 0.000437 #2, done in 0.020314
Output for 5.4.36
#1, done in 0.000430 #2, done in 0.020005
Output for 5.4.35
#1, done in 0.000591 #2, done in 0.017692
Output for 5.4.34
#1, done in 0.000320 #2, done in 0.016291
Output for 5.4.32
#1, done in 0.000334 #2, done in 0.015658
Output for 5.4.31
#1, done in 0.000297 #2, done in 0.014510
Output for 5.4.30
#1, done in 0.000305 #2, done in 0.014812
Output for 5.4.29
#1, done in 0.000308 #2, done in 0.015218
Output for 5.4.28
#1, done in 0.000329 #2, done in 0.015188
Output for 5.4.27
#1, done in 0.000394 #2, done in 0.016211
Output for 5.4.26
#1, done in 0.000388 #2, done in 0.018100
Output for 5.4.25
#1, done in 0.000329 #2, done in 0.014987
Output for 5.4.24
#1, done in 0.000322 #2, done in 0.014869
Output for 5.4.23
#1, done in 0.000316 #2, done in 0.015098
Output for 5.4.22
#1, done in 0.000331 #2, done in 0.015091
Output for 5.4.21
#1, done in 0.000332 #2, done in 0.015046
Output for 5.4.20
#1, done in 0.000355 #2, done in 0.014990
Output for 5.4.19
#1, done in 0.000338 #2, done in 0.015023
Output for 5.4.18
#1, done in 0.000372 #2, done in 0.015068
Output for 5.4.17
#1, done in 0.000421 #2, done in 0.017904
Output for 5.4.16
#1, done in 0.000374 #2, done in 0.016536
Output for 5.4.15
#1, done in 0.000357 #2, done in 0.015781
Output for 5.4.14
#1, done in 0.000359 #2, done in 0.015681
Output for 5.4.13
#1, done in 0.000445 #2, done in 0.017762
Output for 5.4.12
#1, done in 0.000425 #2, done in 0.018285
Output for 5.4.11
#1, done in 0.000400 #2, done in 0.018164
Output for 5.4.10
#1, done in 0.000336 #2, done in 0.016876
Output for 5.4.9
#1, done in 0.000325 #2, done in 0.018327
Output for 5.4.8
#1, done in 0.000332 #2, done in 0.016511
Output for 5.4.7
#1, done in 0.000360 #2, done in 0.015814
Output for 5.4.6
#1, done in 0.000397 #2, done in 0.015716
Output for 5.4.5
#1, done in 0.000347 #2, done in 0.016021
Output for 5.4.4
#1, done in 0.000351 #2, done in 0.016192
Output for 5.4.3
#1, done in 0.000373 #2, done in 0.015666
Output for 5.4.2
#1, done in 0.000338 #2, done in 0.016606
Output for 5.4.1
#1, done in 0.000388 #2, done in 0.015840
Output for 5.4.0
#1, done in 0.000334 #2, done in 0.015967
Output for 5.3.29
#1, done in 0.000320 #2, done in 0.014955
Output for 5.3.28
#1, done in 0.000400 #2, done in 0.017155
Output for 5.3.27
#1, done in 0.000469 #2, done in 0.019132
Output for 5.3.26
#1, done in 0.000424 #2, done in 0.018981
Output for 5.3.25
#1, done in 0.000447 #2, done in 0.019270
Output for 5.3.24
#1, done in 0.000377 #2, done in 0.016576
Output for 5.3.23
#1, done in 0.000387 #2, done in 0.016989
Output for 5.3.22
#1, done in 0.000376 #2, done in 0.016159
Output for 5.3.21
#1, done in 0.000395 #2, done in 0.016001
Output for 5.3.20
#1, done in 0.000448 #2, done in 0.019289
Output for 5.3.19
#1, done in 0.000450 #2, done in 0.017542
Output for 5.3.18
#1, done in 0.000363 #2, done in 0.015965
Output for 5.3.17
#1, done in 0.000350 #2, done in 0.020119
Output for 5.3.16
#1, done in 0.000339 #2, done in 0.015604
Output for 5.3.15
#1, done in 0.000434 #2, done in 0.019585
Output for 5.3.14
#1, done in 0.000390 #2, done in 0.016425
Output for 5.3.13
#1, done in 0.000340 #2, done in 0.015514
Output for 5.3.12
#1, done in 0.000322 #2, done in 0.015134
Output for 5.3.11
#1, done in 0.000326 #2, done in 0.015289
Output for 5.3.10
#1, done in 0.000363 #2, done in 0.015789
Output for 5.3.9
#1, done in 0.000331 #2, done in 0.015307
Output for 5.3.8
#1, done in 0.000380 #2, done in 0.016780
Output for 5.3.7
#1, done in 0.000359 #2, done in 0.015550
Output for 5.3.6
#1, done in 0.000348 #2, done in 0.016112
Output for 5.3.5
#1, done in 0.000330 #2, done in 0.015246
Output for 5.3.4
#1, done in 0.000321 #2, done in 0.015247
Output for 5.3.3
#1, done in 0.000334 #2, done in 0.015031
Output for 5.3.2
#1, done in 0.000344 #2, done in 0.016015
Output for 5.3.1
#1, done in 0.000352 #2, done in 0.015185
Output for 5.3.0
#1, done in 0.000340 #2, done in 0.015198
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/j33v0 on line 17
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/j33v0 on line 17
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/j33v0 on line 17
Process exited with code 255.