3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 50; $code = ' $ret = ""; for ($j=0; $j<100; $j++) { $ret.= md5($i.$j.$ret); } return $ret;'; $fName = create_function('$i', $code); $start = microtime(true); for($i = 0; $i < $count; $i++){ eval($code); } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); for($i = 0; $i < $count; $i++){ $fName($i); } printf("#2, done in %f\n", microtime(true) - $start); ?>
Output for 7.1.0
#1, done in 0.012696 #2, done in 0.012417
Output for 7.0.14
#1, done in 0.021700 #2, done in 0.019633
Output for 7.0.6
#1, done in 0.021907 #2, done in 0.019740
Output for 7.0.5
#1, done in 0.019669 #2, done in 0.017942
Output for 7.0.4
#1, done in 0.022179 #2, done in 0.019927
Output for 7.0.3
#1, done in 0.017906 #2, done in 0.016644
Output for 7.0.2
#1, done in 0.015246 #2, done in 0.014743
Output for 7.0.1
#1, done in 0.017323 #2, done in 0.016117
Output for 7.0.0
#1, done in 0.014618 #2, done in 0.014377
Output for hhvm-3.12.0
#1, done in 0.027916 #2, done in 0.023685
Output for hhvm-3.10.0
#1, done in 0.357191 #2, done in 0.025502
Output for 5.6.28
#1, done in 0.016478 #2, done in 0.015545
Output for 5.6.21
#1, done in 0.015381 #2, done in 0.015015
Output for 5.6.20
#1, done in 0.023579 #2, done in 0.020882
Output for 5.6.19
#1, done in 0.015469 #2, done in 0.014581
Output for 5.6.18
#1, done in 0.015362 #2, done in 0.014982
Output for 5.6.17
#1, done in 0.020857 #2, done in 0.018263
Output for 5.6.16
#1, done in 0.015540 #2, done in 0.015143
Output for 5.6.15
#1, done in 0.015882 #2, done in 0.015081
Output for 5.6.14
#1, done in 0.020871 #2, done in 0.019023
Output for 5.6.13
#1, done in 0.019967 #2, done in 0.018145
Output for 5.6.12
#1, done in 0.022189 #2, done in 0.020002
Output for 5.6.11
#1, done in 0.015411 #2, done in 0.015004
Output for 5.6.10
#1, done in 0.020925 #2, done in 0.017521
Output for 5.6.9
#1, done in 0.016324 #2, done in 0.015660
Output for 5.6.8
#1, done in 0.015455 #2, done in 0.015114
Output for 5.5.35
#1, done in 0.015353 #2, done in 0.015033
Output for 5.5.34
#1, done in 0.017540 #2, done in 0.016242
Output for 5.5.33
#1, done in 0.018208 #2, done in 0.017376
Output for 5.5.32
#1, done in 0.020977 #2, done in 0.019087
Output for 5.5.31
#1, done in 0.021802 #2, done in 0.019593
Output for 5.5.30
#1, done in 0.016601 #2, done in 0.016469
Output for 5.5.29
#1, done in 0.022858 #2, done in 0.020498
Output for 5.5.28
#1, done in 0.020726 #2, done in 0.018827
Output for 5.5.27
#1, done in 0.016492 #2, done in 0.015320
Output for 5.5.26
#1, done in 0.021494 #2, done in 0.019820
Output for 5.5.25
#1, done in 0.015598 #2, done in 0.015117
Output for 5.5.24
#1, done in 0.019070 #2, done in 0.018172
Output for 5.4.45
#1, done in 0.021314 #2, done in 0.021123
Output for 5.4.44
#1, done in 0.024832 #2, done in 0.028706
Output for 5.4.43
#1, done in 0.023537 #2, done in 0.020477
Output for 5.4.42
#1, done in 0.030839 #2, done in 0.042960
Output for 5.4.41
#1, done in 0.023244 #2, done in 0.020704
Output for 5.4.40
#1, done in 0.027922 #2, done in 0.033933
Output for 5.4.39
#1, done in 0.022052 #2, done in 0.022836
Output for 5.4.38
#1, done in 0.021850 #2, done in 0.020782
Output for 5.4.37
#1, done in 0.020694 #2, done in 0.019542
Output for 5.4.36
#1, done in 0.020824 #2, done in 0.016528
Output for 5.4.35
#1, done in 0.017124 #2, done in 0.015724
Output for 5.4.34
#1, done in 0.017252 #2, done in 0.017364
Output for 5.4.32
#1, done in 0.017485 #2, done in 0.018389
Output for 5.4.31
#1, done in 0.016386 #2, done in 0.015764
Output for 5.4.30
#1, done in 0.016398 #2, done in 0.015686
Output for 5.4.29
#1, done in 0.015758 #2, done in 0.015615
Output for 5.4.28
#1, done in 0.017380 #2, done in 0.020005
Output for 5.4.27
#1, done in 0.016084 #2, done in 0.015660
Output for 5.4.26
#1, done in 0.015931 #2, done in 0.015661
Output for 5.4.25
#1, done in 0.016684 #2, done in 0.015978
Output for 5.4.24
#1, done in 0.016932 #2, done in 0.019214
Output for 5.4.23
#1, done in 0.017152 #2, done in 0.016391
Output for 5.4.22
#1, done in 0.020137 #2, done in 0.019534
Output for 5.4.21
#1, done in 0.020367 #2, done in 0.019488
Output for 5.4.20
#1, done in 0.016854 #2, done in 0.016336
Output for 5.4.19
#1, done in 0.016551 #2, done in 0.016162
Output for 5.4.18
#1, done in 0.016425 #2, done in 0.015709
Output for 5.4.17
#1, done in 0.016819 #2, done in 0.015846
Output for 5.4.16
#1, done in 0.016325 #2, done in 0.015894
Output for 5.4.15
#1, done in 0.016533 #2, done in 0.015971
Output for 5.4.14
#1, done in 0.016627 #2, done in 0.016274
Output for 5.4.13
#1, done in 0.016741 #2, done in 0.016056
Output for 5.4.12
#1, done in 0.017158 #2, done in 0.016321
Output for 5.4.11
#1, done in 0.016611 #2, done in 0.016295
Output for 5.4.10
#1, done in 0.016429 #2, done in 0.015944
Output for 5.4.9
#1, done in 0.017898 #2, done in 0.016164
Output for 5.4.8
#1, done in 0.016481 #2, done in 0.016048
Output for 5.4.7
#1, done in 0.016800 #2, done in 0.015786
Output for 5.4.6
#1, done in 0.017945 #2, done in 0.016252
Output for 5.4.5
#1, done in 0.016712 #2, done in 0.016026
Output for 5.4.4
#1, done in 0.016359 #2, done in 0.015787
Output for 5.4.3
#1, done in 0.017136 #2, done in 0.016288
Output for 5.4.2
#1, done in 0.016690 #2, done in 0.015540
Output for 5.4.1
#1, done in 0.016503 #2, done in 0.016101
Output for 5.4.0
#1, done in 0.016317 #2, done in 0.015833
Output for 5.3.29
#1, done in 0.015814 #2, done in 0.015544
Output for 5.3.28
#1, done in 0.015978 #2, done in 0.015744
Output for 5.3.27
#1, done in 0.016577 #2, done in 0.016244
Output for 5.3.26
#1, done in 0.021642 #2, done in 0.019778
Output for 5.3.25
#1, done in 0.016497 #2, done in 0.016050
Output for 5.3.24
#1, done in 0.016336 #2, done in 0.016102
Output for 5.3.23
#1, done in 0.016342 #2, done in 0.016204
Output for 5.3.22
#1, done in 0.016569 #2, done in 0.016006
Output for 5.3.21
#1, done in 0.016797 #2, done in 0.016307
Output for 5.3.20
#1, done in 0.016679 #2, done in 0.016876
Output for 5.3.19
#1, done in 0.016407 #2, done in 0.015976
Output for 5.3.18
#1, done in 0.016527 #2, done in 0.016162
Output for 5.3.17
#1, done in 0.016703 #2, done in 0.016102
Output for 5.3.16
#1, done in 0.016318 #2, done in 0.015895
Output for 5.3.15
#1, done in 0.016331 #2, done in 0.015896
Output for 5.3.14
#1, done in 0.016125 #2, done in 0.015813
Output for 5.3.13
#1, done in 0.016248 #2, done in 0.016411
Output for 5.3.12
#1, done in 0.016448 #2, done in 0.016280
Output for 5.3.11
#1, done in 0.016346 #2, done in 0.016391
Output for 5.3.10
#1, done in 0.017240 #2, done in 0.018279
Output for 5.3.9
#1, done in 0.016302 #2, done in 0.015708
Output for 5.3.8
#1, done in 0.016390 #2, done in 0.015902
Output for 5.3.7
#1, done in 0.016090 #2, done in 0.015608
Output for 5.3.6
#1, done in 0.016251 #2, done in 0.016010
Output for 5.3.5
#1, done in 0.016427 #2, done in 0.015913
Output for 5.3.4
#1, done in 0.016081 #2, done in 0.015987
Output for 5.3.3
#1, done in 0.016145 #2, done in 0.015450
Output for 5.3.2
#1, done in 0.016278 #2, done in 0.015842
Output for 5.3.1
#1, done in 0.017771 #2, done in 0.015369
Output for 5.3.0
#1, done in 0.017947 #2, done in 0.016100
Output for 5.2.17
#1, done in 0.021390 #2, done in 0.020118
Output for 5.2.16
#1, done in 0.018678 #2, done in 0.018317
Output for 5.2.15
#1, done in 0.019040 #2, done in 0.018382
Output for 5.2.14
#1, done in 0.019123 #2, done in 0.018378
Output for 5.2.13
#1, done in 0.018609 #2, done in 0.018089
Output for 5.2.12
#1, done in 0.019003 #2, done in 0.018275
Output for 5.2.11
#1, done in 0.019087 #2, done in 0.018782
Output for 5.2.10
#1, done in 0.019067 #2, done in 0.018461
Output for 5.2.9
#1, done in 0.018623 #2, done in 0.018022
Output for 5.2.8
#1, done in 0.018749 #2, done in 0.018133
Output for 5.2.7
#1, done in 0.019093 #2, done in 0.018576
Output for 5.2.6
#1, done in 0.019086 #2, done in 0.019176
Output for 5.2.5
#1, done in 0.019366 #2, done in 0.019124
Output for 5.2.4
#1, done in 0.020221 #2, done in 0.018939
Output for 5.2.3
#1, done in 0.018555 #2, done in 0.018629
Output for 5.2.2
#1, done in 0.028095 #2, done in 0.026131
Output for 5.2.1
#1, done in 0.028002 #2, done in 0.028156
Output for 5.2.0
#1, done in 0.029015 #2, done in 0.025109
Output for 5.1.6
#1, done in 0.027448 #2, done in 0.026804
Output for 5.1.5
#1, done in 0.028331 #2, done in 0.029150
Output for 5.1.4
#1, done in 0.028912 #2, done in 0.030703
Output for 5.1.3
#1, done in 0.026068 #2, done in 0.025255
Output for 5.1.2
#1, done in 0.026590 #2, done in 0.025647
Output for 5.1.1
#1, done in 0.033517 #2, done in 0.025482
Output for 5.1.0
#1, done in 0.035687 #2, done in 0.026874
Output for 5.0.5
#1, done in 0.028340 #2, done in 0.027087
Output for 5.0.4
#1, done in 0.028556 #2, done in 0.027478
Output for 5.0.3
#1, done in 0.027971 #2, done in 0.026910
Output for 5.0.2
#1, done in 0.044207 #2, done in 0.041530
Output for 5.0.1
#1, done in 0.028051 #2, done in 0.028368
Output for 5.0.0
#1, done in 0.038941 #2, done in 0.037802
Output for 4.4.9
#1, done in 0.029262 #2, done in 0.028553
Output for 4.4.8
#1, done in 0.028213 #2, done in 0.028007
Output for 4.4.7
#1, done in 0.029706 #2, done in 0.031026
Output for 4.4.6
#1, done in 0.028685 #2, done in 0.028101
Output for 4.4.5
#1, done in 0.030287 #2, done in 0.030329
Output for 4.4.4
#1, done in 0.030997 #2, done in 0.030910
Output for 4.4.3
#1, done in 0.031051 #2, done in -0.970349
Output for 4.4.2
#1, done in 0.029391 #2, done in 0.029887
Output for 4.4.1
#1, done in 0.028340 #2, done in 0.028061
Output for 4.4.0
#1, done in 0.028693 #2, done in 0.028866
Output for 4.3.11
#1, done in 0.028290 #2, done in 0.027478
Output for 4.3.10
#1, done in 0.029245 #2, done in 0.028179
Output for 4.3.9
#1, done in 0.028841 #2, done in 0.027869
Output for 4.3.8
#1, done in 0.028109 #2, done in 0.027068
Output for 4.3.7
#1, done in 0.028929 #2, done in 0.027772
Output for 4.3.6
#1, done in 0.028134 #2, done in 0.028151
Output for 4.3.5
#1, done in 0.027155 #2, done in 0.026201
Output for 4.3.4
#1, done in 0.027459 #2, done in 0.027175
Output for 4.3.3
#1, done in 0.032871 #2, done in 0.035838
Output for 4.3.2
#1, done in 0.027291 #2, done in 0.026989
Output for 4.3.1
#1, done in 0.031849 #2, done in 0.026473
Output for 4.3.0
#1, done in 0.037242 #2, done in 0.038086