3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 2; $code = ' $ret = ""; for ($j=0; $j<100; $j++) { $ret.= md5($i.$j.$ret); } return $i;'; $fName = create_function('$i', $code); $start = microtime(true); for($i = 0; $i < $count; $i++){ echo eval($code)."<br />"; } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); for($i = 0; $i < $count; $i++){ echo $fName($i)."<br />"; } printf("#2, done in %f\n", microtime(true) - $start); ?>
Output for 7.1.0
0<br />1<br />#1, done in 0.000534 0<br />1<br />#2, done in 0.000505
Output for 7.0.14
0<br />1<br />#1, done in 0.000999 0<br />1<br />#2, done in 0.000953
Output for 7.0.6
0<br />1<br />#1, done in 0.000907 0<br />1<br />#2, done in 0.000833
Output for 7.0.5
0<br />1<br />#1, done in 0.000626 0<br />1<br />#2, done in 0.000579
Output for 7.0.4
0<br />1<br />#1, done in 0.000831 0<br />1<br />#2, done in 0.000774
Output for 7.0.3
0<br />1<br />#1, done in 0.000710 0<br />1<br />#2, done in 0.000639
Output for 7.0.2
0<br />1<br />#1, done in 0.000637 0<br />1<br />#2, done in 0.000580
Output for 7.0.1
0<br />1<br />#1, done in 0.000604 0<br />1<br />#2, done in 0.000580
Output for 7.0.0
0<br />1<br />#1, done in 0.000694 0<br />1<br />#2, done in 0.000675
Output for hhvm-3.12.0
0<br />1<br />#1, done in 0.001370 0<br />1<br />#2, done in 0.000695
Output for hhvm-3.10.0
0<br />1<br />#1, done in 0.001263 0<br />1<br />#2, done in 0.000671
Output for 5.6.28
0<br />1<br />#1, done in 0.001092 0<br />1<br />#2, done in 0.001010
Output for 5.6.21
0<br />1<br />#1, done in 0.001005 0<br />1<br />#2, done in 0.000951
Output for 5.6.20
0<br />1<br />#1, done in 0.000640 0<br />1<br />#2, done in 0.000605
Output for 5.6.19
0<br />1<br />#1, done in 0.000963 0<br />1<br />#2, done in 0.000865
Output for 5.6.18
0<br />1<br />#1, done in 0.000630 0<br />1<br />#2, done in 0.000584
Output for 5.6.17
0<br />1<br />#1, done in 0.000617 0<br />1<br />#2, done in 0.000598
Output for 5.6.16
0<br />1<br />#1, done in 0.000730 0<br />1<br />#2, done in 0.000644
Output for 5.6.15
0<br />1<br />#1, done in 0.000870 0<br />1<br />#2, done in 0.000823
Output for 5.6.14
0<br />1<br />#1, done in 0.000783 0<br />1<br />#2, done in 0.000748
Output for 5.6.13
0<br />1<br />#1, done in 0.000707 0<br />1<br />#2, done in 0.000666
Output for 5.6.12
0<br />1<br />#1, done in 0.000618 0<br />1<br />#2, done in 0.000587
Output for 5.6.11
0<br />1<br />#1, done in 0.000851 0<br />1<br />#2, done in 0.000774
Output for 5.6.10
0<br />1<br />#1, done in 0.001024 0<br />1<br />#2, done in 0.000987
Output for 5.6.9
0<br />1<br />#1, done in 0.001029 0<br />1<br />#2, done in 0.000949
Output for 5.6.8
0<br />1<br />#1, done in 0.000613 0<br />1<br />#2, done in 0.000586
Output for 5.6.7
0<br />1<br />#1, done in 0.000879 0<br />1<br />#2, done in 0.000835
Output for 5.5.35
0<br />1<br />#1, done in 0.000842 0<br />1<br />#2, done in 0.000798
Output for 5.5.34
0<br />1<br />#1, done in 0.001060 0<br />1<br />#2, done in 0.001012
Output for 5.5.33
0<br />1<br />#1, done in 0.000966 0<br />1<br />#2, done in 0.000929
Output for 5.5.32
0<br />1<br />#1, done in 0.000881 0<br />1<br />#2, done in 0.000768
Output for 5.5.31
0<br />1<br />#1, done in 0.000668 0<br />1<br />#2, done in 0.000611
Output for 5.5.30
0<br />1<br />#1, done in 0.001066 0<br />1<br />#2, done in 0.001000
Output for 5.5.29
0<br />1<br />#1, done in 0.001057 0<br />1<br />#2, done in 0.000999
Output for 5.5.28
0<br />1<br />#1, done in 0.000765 0<br />1<br />#2, done in 0.000725
Output for 5.5.27
0<br />1<br />#1, done in 0.000651 0<br />1<br />#2, done in 0.000614
Output for 5.5.26
0<br />1<br />#1, done in 0.001076 0<br />1<br />#2, done in 0.001044
Output for 5.5.25
0<br />1<br />#1, done in 0.000937 0<br />1<br />#2, done in 0.000868
Output for 5.5.24
0<br />1<br />#1, done in 0.000922 0<br />1<br />#2, done in 0.000874
Output for 5.4.45
0<br />1<br />#1, done in 0.000986 0<br />1<br />#2, done in 0.000829
Output for 5.4.44
0<br />1<br />#1, done in 0.001181 0<br />1<br />#2, done in 0.001173
Output for 5.4.43
0<br />1<br />#1, done in 0.000949 0<br />1<br />#2, done in 0.000825
Output for 5.4.42
0<br />1<br />#1, done in 0.001446 0<br />1<br />#2, done in 0.001131
Output for 5.4.41
0<br />1<br />#1, done in 0.001012 0<br />1<br />#2, done in 0.000861
Output for 5.4.40
0<br />1<br />#1, done in 0.001269 0<br />1<br />#2, done in 0.001085
Output for 5.4.39
0<br />1<br />#1, done in 0.001118 0<br />1<br />#2, done in 0.001072
Output for 5.4.38
0<br />1<br />#1, done in 0.001312 0<br />1<br />#2, done in 0.001141
Output for 5.4.37
0<br />1<br />#1, done in 0.001007 0<br />1<br />#2, done in 0.000894
Output for 5.4.36
0<br />1<br />#1, done in 0.001059 0<br />1<br />#2, done in 0.000940
Output for 5.4.35
0<br />1<br />#1, done in 0.003043 0<br />1<br />#2, done in 0.000810
Output for 5.4.34
0<br />1<br />#1, done in 0.000982 0<br />1<br />#2, done in 0.000925
Output for 5.4.32
0<br />1<br />#1, done in 0.000880 0<br />1<br />#2, done in 0.000798
Output for 5.4.31
0<br />1<br />#1, done in 0.000751 0<br />1<br />#2, done in 0.000711
Output for 5.4.30
0<br />1<br />#1, done in 0.000767 0<br />1<br />#2, done in 0.000715
Output for 5.4.29
0<br />1<br />#1, done in 0.000764 0<br />1<br />#2, done in 0.000774
Output for 5.4.28
0<br />1<br />#1, done in 0.000736 0<br />1<br />#2, done in 0.000693
Output for 5.4.27
0<br />1<br />#1, done in 0.000715 0<br />1<br />#2, done in 0.000695
Output for 5.4.26
0<br />1<br />#1, done in 0.000837 0<br />1<br />#2, done in 0.000748
Output for 5.4.25
0<br />1<br />#1, done in 0.000794 0<br />1<br />#2, done in 0.000773
Output for 5.4.24
0<br />1<br />#1, done in 0.000838 0<br />1<br />#2, done in 0.000724
Output for 5.4.23
0<br />1<br />#1, done in 0.001055 0<br />1<br />#2, done in 0.000825
Output for 5.4.22
0<br />1<br />#1, done in 0.000791 0<br />1<br />#2, done in 0.000712
Output for 5.4.21
0<br />1<br />#1, done in 0.000913 0<br />1<br />#2, done in 0.000815
Output for 5.4.20
0<br />1<br />#1, done in 0.000894 0<br />1<br />#2, done in 0.000736
Output for 5.4.19
0<br />1<br />#1, done in 0.000893 0<br />1<br />#2, done in 0.000811
Output for 5.4.18
0<br />1<br />#1, done in 0.001011 0<br />1<br />#2, done in 0.013249
Output for 5.4.17
0<br />1<br />#1, done in 0.000922 0<br />1<br />#2, done in 0.000802
Output for 5.4.16
0<br />1<br />#1, done in 0.000930 0<br />1<br />#2, done in 0.000814
Output for 5.4.15
0<br />1<br />#1, done in 0.001003 0<br />1<br />#2, done in 0.000976
Output for 5.4.14
0<br />1<br />#1, done in 0.000870 0<br />1<br />#2, done in 0.000797
Output for 5.4.13
0<br />1<br />#1, done in 0.000853 0<br />1<br />#2, done in 0.000778
Output for 5.4.12
0<br />1<br />#1, done in 0.000784 0<br />1<br />#2, done in 0.000792
Output for 5.4.11
0<br />1<br />#1, done in 0.000785 0<br />1<br />#2, done in 0.000744
Output for 5.4.10
0<br />1<br />#1, done in 0.000988 0<br />1<br />#2, done in 0.000963
Output for 5.4.9
0<br />1<br />#1, done in 0.000761 0<br />1<br />#2, done in 0.000727
Output for 5.4.8
0<br />1<br />#1, done in 0.000838 0<br />1<br />#2, done in 0.000796
Output for 5.4.7
0<br />1<br />#1, done in 0.000912 0<br />1<br />#2, done in 0.000764
Output for 5.4.6
0<br />1<br />#1, done in 0.000747 0<br />1<br />#2, done in 0.000704
Output for 5.4.5
0<br />1<br />#1, done in 0.000768 0<br />1<br />#2, done in 0.000728
Output for 5.4.4
0<br />1<br />#1, done in 0.000791 0<br />1<br />#2, done in 0.000743
Output for 5.4.3
0<br />1<br />#1, done in 0.000775 0<br />1<br />#2, done in 0.000715
Output for 5.4.2
0<br />1<br />#1, done in 0.000743 0<br />1<br />#2, done in 0.000683
Output for 5.4.1
0<br />1<br />#1, done in 0.000842 0<br />1<br />#2, done in 0.000769
Output for 5.4.0
0<br />1<br />#1, done in 0.000745 0<br />1<br />#2, done in 0.000754
Output for 5.3.29
0<br />1<br />#1, done in 0.000701 0<br />1<br />#2, done in 0.000663
Output for 5.3.28
0<br />1<br />#1, done in 0.000722 0<br />1<br />#2, done in 0.000670
Output for 5.3.27
0<br />1<br />#1, done in 0.000786 0<br />1<br />#2, done in 0.000818
Output for 5.3.26
0<br />1<br />#1, done in 0.000785 0<br />1<br />#2, done in 0.000763
Output for 5.3.25
0<br />1<br />#1, done in 0.000925 0<br />1<br />#2, done in 0.000884
Output for 5.3.24
0<br />1<br />#1, done in 0.000922 0<br />1<br />#2, done in 0.000892
Output for 5.3.23
0<br />1<br />#1, done in 0.000942 0<br />1<br />#2, done in 0.000884
Output for 5.3.22
0<br />1<br />#1, done in 0.000807 0<br />1<br />#2, done in 0.000775
Output for 5.3.21
0<br />1<br />#1, done in 0.000792 0<br />1<br />#2, done in 0.000810
Output for 5.3.20
0<br />1<br />#1, done in 0.000773 0<br />1<br />#2, done in 0.000673
Output for 5.3.19
0<br />1<br />#1, done in 0.000852 0<br />1<br />#2, done in 0.000820
Output for 5.3.18
0<br />1<br />#1, done in 0.000762 0<br />1<br />#2, done in 0.000773
Output for 5.3.17
0<br />1<br />#1, done in 0.000765 0<br />1<br />#2, done in 0.000765
Output for 5.3.16
0<br />1<br />#1, done in 0.000932 0<br />1<br />#2, done in 0.000863
Output for 5.3.15
0<br />1<br />#1, done in 0.000819 0<br />1<br />#2, done in 0.000786
Output for 5.3.14
0<br />1<br />#1, done in 0.000816 0<br />1<br />#2, done in 0.000706
Output for 5.3.13
0<br />1<br />#1, done in 0.000851 0<br />1<br />#2, done in 0.000714
Output for 5.3.12
0<br />1<br />#1, done in 0.000825 0<br />1<br />#2, done in 0.000797
Output for 5.3.11
0<br />1<br />#1, done in 0.000835 0<br />1<br />#2, done in 0.000875
Output for 5.3.10
0<br />1<br />#1, done in 0.000780 0<br />1<br />#2, done in 0.000773
Output for 5.3.9
0<br />1<br />#1, done in 0.000852 0<br />1<br />#2, done in 0.000816
Output for 5.3.8
0<br />1<br />#1, done in 0.000804 0<br />1<br />#2, done in 0.000799
Output for 5.3.7
0<br />1<br />#1, done in 0.000811 0<br />1<br />#2, done in 0.000734
Output for 5.3.6
0<br />1<br />#1, done in 0.000832 0<br />1<br />#2, done in 0.000747
Output for 5.3.5
0<br />1<br />#1, done in 0.000819 0<br />1<br />#2, done in 0.000866
Output for 5.3.4
0<br />1<br />#1, done in 0.000799 0<br />1<br />#2, done in 0.000721
Output for 5.3.3
0<br />1<br />#1, done in 0.000864 0<br />1<br />#2, done in 0.000817
Output for 5.3.2
0<br />1<br />#1, done in 0.000942 0<br />1<br />#2, done in 0.000869
Output for 5.3.1
0<br />1<br />#1, done in 0.000789 0<br />1<br />#2, done in 0.000788
Output for 5.3.0
0<br />1<br />#1, done in 0.000768 0<br />1<br />#2, done in 0.000735
Output for 5.2.17
0<br />1<br />#1, done in 0.000825 0<br />1<br />#2, done in 0.000771
Output for 5.2.16
0<br />1<br />#1, done in 0.000961 0<br />1<br />#2, done in 0.000870
Output for 5.2.15
0<br />1<br />#1, done in 0.000963 0<br />1<br />#2, done in 0.000926
Output for 5.2.14
0<br />1<br />#1, done in 0.000926 0<br />1<br />#2, done in 0.000863
Output for 5.2.13
0<br />1<br />#1, done in 0.000921 0<br />1<br />#2, done in 0.000842
Output for 5.2.12
0<br />1<br />#1, done in 0.000879 0<br />1<br />#2, done in 0.000817
Output for 5.2.11
0<br />1<br />#1, done in 0.000857 0<br />1<br />#2, done in 0.000802
Output for 5.2.10
0<br />1<br />#1, done in 0.000846 0<br />1<br />#2, done in 0.000786
Output for 5.2.9
0<br />1<br />#1, done in 0.000878 0<br />1<br />#2, done in 0.000845
Output for 5.2.8
0<br />1<br />#1, done in 0.000873 0<br />1<br />#2, done in 0.000772
Output for 5.2.7
0<br />1<br />#1, done in 0.000892 0<br />1<br />#2, done in 0.000833
Output for 5.2.6
0<br />1<br />#1, done in 0.001179 0<br />1<br />#2, done in 0.001090
Output for 5.2.5
0<br />1<br />#1, done in 0.000886 0<br />1<br />#2, done in 0.000850
Output for 5.2.4
0<br />1<br />#1, done in 0.000893 0<br />1<br />#2, done in 0.000783
Output for 5.2.3
0<br />1<br />#1, done in 0.000923 0<br />1<br />#2, done in 0.000851
Output for 5.2.2
0<br />1<br />#1, done in 0.001590 0<br />1<br />#2, done in 0.001604
Output for 5.2.1
0<br />1<br />#1, done in 0.001286 0<br />1<br />#2, done in 0.001644
Output for 5.2.0
0<br />1<br />#1, done in 0.001778 0<br />1<br />#2, done in 0.001512
Output for 5.1.6
0<br />1<br />#1, done in 0.001494 0<br />1<br />#2, done in 0.001630
Output for 5.1.5
0<br />1<br />#1, done in 0.001651 0<br />1<br />#2, done in 0.001098
Output for 5.1.4
0<br />1<br />#1, done in 0.001167 0<br />1<br />#2, done in 0.001162
Output for 5.1.3
0<br />1<br />#1, done in 0.001293 0<br />1<br />#2, done in 0.001185
Output for 5.1.2
0<br />1<br />#1, done in 0.001653 0<br />1<br />#2, done in 0.001699
Output for 5.1.1
0<br />1<br />#1, done in 0.001437 0<br />1<br />#2, done in 0.001141
Output for 5.1.0
0<br />1<br />#1, done in 0.001126 0<br />1<br />#2, done in 0.001212
Output for 5.0.5
0<br />1<br />#1, done in 0.001215 0<br />1<br />#2, done in 0.001200
Output for 5.0.4
0<br />1<br />#1, done in 0.001296 0<br />1<br />#2, done in 0.001216
Output for 5.0.3
0<br />1<br />#1, done in 0.001225 0<br />1<br />#2, done in 0.001407
Output for 5.0.2
0<br />1<br />#1, done in 0.001299 0<br />1<br />#2, done in 0.001189
Output for 5.0.1
0<br />1<br />#1, done in 0.001395 0<br />1<br />#2, done in 0.001237
Output for 5.0.0
0<br />1<br />#1, done in 0.001344 0<br />1<br />#2, done in 0.001204
Output for 4.4.9
0<br />1<br />#1, done in 0.001890 0<br />1<br />#2, done in 0.001724
Output for 4.4.8
0<br />1<br />#1, done in 0.001930 0<br />1<br />#2, done in 0.001751
Output for 4.4.7
0<br />1<br />#1, done in 0.001892 0<br />1<br />#2, done in 0.001824
Output for 4.4.6
0<br />1<br />#1, done in 0.001377 0<br />1<br />#2, done in 0.001251
Output for 4.4.5
0<br />1<br />#1, done in 0.001285 0<br />1<br />#2, done in 0.001222
Output for 4.4.4
0<br />1<br />#1, done in 0.001347 0<br />1<br />#2, done in 0.001241
Output for 4.4.3
0<br />1<br />#1, done in 0.001351 0<br />1<br />#2, done in 0.001159
Output for 4.4.2
0<br />1<br />#1, done in 0.001273 0<br />1<br />#2, done in 0.001207
Output for 4.4.1
0<br />1<br />#1, done in 0.001299 0<br />1<br />#2, done in 0.001253
Output for 4.4.0
0<br />1<br />#1, done in 0.001199 0<br />1<br />#2, done in 0.001147
Output for 4.3.11
0<br />1<br />#1, done in 0.001201 0<br />1<br />#2, done in 0.001124
Output for 4.3.10
0<br />1<br />#1, done in 0.001337 0<br />1<br />#2, done in 0.001263
Output for 4.3.9
0<br />1<br />#1, done in 0.001241 0<br />1<br />#2, done in 0.001250
Output for 4.3.8
0<br />1<br />#1, done in 0.001279 0<br />1<br />#2, done in 0.001282
Output for 4.3.7
0<br />1<br />#1, done in 0.001362 0<br />1<br />#2, done in 0.001317
Output for 4.3.6
0<br />1<br />#1, done in 0.001894 0<br />1<br />#2, done in 0.001873
Output for 4.3.5
0<br />1<br />#1, done in 0.001286 0<br />1<br />#2, done in 0.001543
Output for 4.3.4
0<br />1<br />#1, done in 0.001205 0<br />1<br />#2, done in 0.001171
Output for 4.3.3
0<br />1<br />#1, done in 0.001167 0<br />1<br />#2, done in 0.001093
Output for 4.3.2
0<br />1<br />#1, done in 0.001267 0<br />1<br />#2, done in 0.001207
Output for 4.3.1
0<br />1<br />#1, done in 0.001301 0<br />1<br />#2, done in 0.001300
Output for 4.3.0
0<br />1<br />#1, done in 0.001833 0<br />1<br />#2, done in 0.002148