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)."\r\n"; } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); for($i = 0; $i < $count; $i++){ echo $fName($i)."\r\n"; } printf("#2, done in %f\n", microtime(true) - $start); ?>
Output for 7.1.0
0 1 #1, done in 0.000959 0 1 #2, done in 0.000911
Output for 7.0.14
0 1 #1, done in 0.001000 0 1 #2, done in 0.000952
Output for 7.0.6
0 1 #1, done in 0.000844 0 1 #2, done in 0.000712
Output for 7.0.5
0 1 #1, done in 0.000829 0 1 #2, done in 0.000795
Output for 7.0.4
0 1 #1, done in 0.000659 0 1 #2, done in 0.000622
Output for 7.0.3
0 1 #1, done in 0.000654 0 1 #2, done in 0.000651
Output for 7.0.2
0 1 #1, done in 0.000766 0 1 #2, done in 0.000735
Output for 7.0.1
0 1 #1, done in 0.000588 0 1 #2, done in 0.000562
Output for 7.0.0
0 1 #1, done in 0.000712 0 1 #2, done in 0.000658
Output for hhvm-3.12.0
0 1 #1, done in 0.001908 0 1 #2, done in 0.000847
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
0 1 #1, done in 0.001062 0 1 #2, done in 0.000994
Output for 5.6.21
0 1 #1, done in 0.000635 0 1 #2, done in 0.000604
Output for 5.6.20
0 1 #1, done in 0.000624 0 1 #2, done in 0.000592
Output for 5.6.19
0 1 #1, done in 0.000646 0 1 #2, done in 0.000585
Output for 5.6.18
0 1 #1, done in 0.000876 0 1 #2, done in 0.000791
Output for 5.6.17
0 1 #1, done in 0.000874 0 1 #2, done in 0.000838
Output for 5.6.16
0 1 #1, done in 0.000619 0 1 #2, done in 0.000594
Output for 5.6.15
0 1 #1, done in 0.000627 0 1 #2, done in 0.000597
Output for 5.6.14
0 1 #1, done in 0.000938 0 1 #2, done in 0.000896
Output for 5.6.13
0 1 #1, done in 0.000965 0 1 #2, done in 0.000918
Output for 5.6.12
0 1 #1, done in 0.000897 0 1 #2, done in 0.000832
Output for 5.6.11
0 1 #1, done in 0.000931 0 1 #2, done in 0.000866
Output for 5.6.10
0 1 #1, done in 0.001026 0 1 #2, done in 0.000962
Output for 5.6.9
0 1 #1, done in 0.000687 0 1 #2, done in 0.000673
Output for 5.6.8
0 1 #1, done in 0.000937 0 1 #2, done in 0.000889
Output for 5.6.7
0 1 #1, done in 0.000583 0 1 #2, done in 0.000542
Output for 5.5.35
0 1 #1, done in 0.000926 0 1 #2, done in 0.000909
Output for 5.5.34
0 1 #1, done in 0.001009 0 1 #2, done in 0.000955
Output for 5.5.33
0 1 #1, done in 0.000994 0 1 #2, done in 0.000976
Output for 5.5.32
0 1 #1, done in 0.000767 0 1 #2, done in 0.000700
Output for 5.5.31
0 1 #1, done in 0.000923 0 1 #2, done in 0.000870
Output for 5.5.30
0 1 #1, done in 0.000843 0 1 #2, done in 0.000801
Output for 5.5.29
0 1 #1, done in 0.000655 0 1 #2, done in 0.000624
Output for 5.5.28
0 1 #1, done in 0.000893 0 1 #2, done in 0.000852
Output for 5.5.27
0 1 #1, done in 0.000787 0 1 #2, done in 0.000713
Output for 5.5.26
0 1 #1, done in 0.001003 0 1 #2, done in 0.000951
Output for 5.5.25
0 1 #1, done in 0.000789 0 1 #2, done in 0.000704
Output for 5.5.24
0 1 #1, done in 0.000827 0 1 #2, done in 0.000784
Output for 5.4.45
0 1 #1, done in 0.000993 0 1 #2, done in 0.000904
Output for 5.4.44
0 1 #1, done in 0.000945 0 1 #2, done in 0.000873
Output for 5.4.43
0 1 #1, done in 0.001025 0 1 #2, done in 0.000996
Output for 5.4.42
0 1 #1, done in 0.001161 0 1 #2, done in 0.000891
Output for 5.4.41
0 1 #1, done in 0.001341 0 1 #2, done in 0.001134
Output for 5.4.40
0 1 #1, done in 0.001116 0 1 #2, done in 0.001065
Output for 5.4.39
0 1 #1, done in 0.001236 0 1 #2, done in 0.001043
Output for 5.4.38
0 1 #1, done in 0.001203 0 1 #2, done in 0.001008
Output for 5.4.37
0 1 #1, done in 0.001025 0 1 #2, done in 0.000929
Output for 5.4.36
0 1 #1, done in 0.001237 0 1 #2, done in 0.001052
Output for 5.4.35
0 1 #1, done in 0.000805 0 1 #2, done in 0.000720
Output for 5.4.34
0 1 #1, done in 0.014690 0 1 #2, done in 0.000750
Output for 5.4.32
0 1 #1, done in 0.000730 0 1 #2, done in 0.000692
Output for 5.4.31
0 1 #1, done in 0.000760 0 1 #2, done in 0.000702
Output for 5.4.30
0 1 #1, done in 0.000861 0 1 #2, done in 0.000768
Output for 5.4.29
0 1 #1, done in 0.000768 0 1 #2, done in 0.000684
Output for 5.4.28
0 1 #1, done in 0.000765 0 1 #2, done in 0.000678
Output for 5.4.27
0 1 #1, done in 0.000798 0 1 #2, done in 0.000817
Output for 5.4.26
0 1 #1, done in 0.000761 0 1 #2, done in 0.000717
Output for 5.4.25
0 1 #1, done in 0.000755 0 1 #2, done in 0.000668
Output for 5.4.24
0 1 #1, done in 0.000779 0 1 #2, done in 0.000701
Output for 5.4.23
0 1 #1, done in 0.000732 0 1 #2, done in 0.000656
Output for 5.4.22
0 1 #1, done in 0.000765 0 1 #2, done in 0.000722
Output for 5.4.21
0 1 #1, done in 0.000778 0 1 #2, done in 0.000927
Output for 5.4.20
0 1 #1, done in 0.000911 0 1 #2, done in 0.000825
Output for 5.4.19
0 1 #1, done in 0.000881 0 1 #2, done in 0.000822
Output for 5.4.18
0 1 #1, done in 0.000959 0 1 #2, done in 0.000933
Output for 5.4.17
0 1 #1, done in 0.000939 0 1 #2, done in 0.000927
Output for 5.4.16
0 1 #1, done in 0.000989 0 1 #2, done in 0.000918
Output for 5.4.15
0 1 #1, done in 0.000740 0 1 #2, done in 0.000698
Output for 5.4.14
0 1 #1, done in 0.000797 0 1 #2, done in 0.000729
Output for 5.4.13
0 1 #1, done in 0.000847 0 1 #2, done in 0.000805
Output for 5.4.12
0 1 #1, done in 0.000956 0 1 #2, done in 0.000909
Output for 5.4.11
0 1 #1, done in 0.000943 0 1 #2, done in 0.000921
Output for 5.4.10
0 1 #1, done in 0.000953 0 1 #2, done in 0.000947
Output for 5.4.9
0 1 #1, done in 0.000775 0 1 #2, done in 0.000722
Output for 5.4.8
0 1 #1, done in 0.000796 0 1 #2, done in 0.000691
Output for 5.4.7
0 1 #1, done in 0.000794 0 1 #2, done in 0.000742
Output for 5.4.6
0 1 #1, done in 0.000798 0 1 #2, done in 0.000725
Output for 5.4.5
0 1 #1, done in 0.000940 0 1 #2, done in 0.000864
Output for 5.4.4
0 1 #1, done in 0.000774 0 1 #2, done in 0.000735
Output for 5.4.3
0 1 #1, done in 0.000768 0 1 #2, done in 0.000652
Output for 5.4.2
0 1 #1, done in 0.000724 0 1 #2, done in 0.000668
Output for 5.4.1
0 1 #1, done in 0.000777 0 1 #2, done in 0.000729
Output for 5.4.0
0 1 #1, done in 0.000752 0 1 #2, done in 0.000701
Output for 5.3.29
0 1 #1, done in 0.000737 0 1 #2, done in 0.000668
Output for 5.3.28
0 1 #1, done in 0.000730 0 1 #2, done in 0.000720
Output for 5.3.27
0 1 #1, done in 0.000799 0 1 #2, done in 0.000956
Output for 5.3.26
0 1 #1, done in 0.000751 0 1 #2, done in 0.000708
Output for 5.3.25
0 1 #1, done in 0.000735 0 1 #2, done in 0.000713
Output for 5.3.24
0 1 #1, done in 0.001001 0 1 #2, done in 0.000991
Output for 5.3.23
0 1 #1, done in 0.000995 0 1 #2, done in 0.000978
Output for 5.3.22
0 1 #1, done in 0.001004 0 1 #2, done in 0.000989
Output for 5.3.21
0 1 #1, done in 0.000790 0 1 #2, done in 0.000752
Output for 5.3.20
0 1 #1, done in 0.000772 0 1 #2, done in 0.000777
Output for 5.3.19
0 1 #1, done in 0.000813 0 1 #2, done in 0.000736
Output for 5.3.18
0 1 #1, done in 0.000794 0 1 #2, done in 0.000708
Output for 5.3.17
0 1 #1, done in 0.000776 0 1 #2, done in 0.000819
Output for 5.3.16
0 1 #1, done in 0.000763 0 1 #2, done in 0.000668
Output for 5.3.15
0 1 #1, done in 0.000765 0 1 #2, done in 0.000749
Output for 5.3.14
0 1 #1, done in 0.000764 0 1 #2, done in 0.000695
Output for 5.3.13
0 1 #1, done in 0.000760 0 1 #2, done in 0.000706
Output for 5.3.12
0 1 #1, done in 0.000739 0 1 #2, done in 0.000707
Output for 5.3.11
0 1 #1, done in 0.000780 0 1 #2, done in 0.000754
Output for 5.3.10
0 1 #1, done in 0.000760 0 1 #2, done in 0.000698
Output for 5.3.9
0 1 #1, done in 0.000870 0 1 #2, done in 0.000824
Output for 5.3.8
0 1 #1, done in 0.000734 0 1 #2, done in 0.000679
Output for 5.3.7
0 1 #1, done in 0.000765 0 1 #2, done in 0.000752
Output for 5.3.6
0 1 #1, done in 0.000717 0 1 #2, done in 0.000684
Output for 5.3.5
0 1 #1, done in 0.000770 0 1 #2, done in 0.000754
Output for 5.3.4
0 1 #1, done in 0.000746 0 1 #2, done in 0.000698
Output for 5.3.3
0 1 #1, done in 0.000730 0 1 #2, done in 0.000666
Output for 5.3.2
0 1 #1, done in 0.000768 0 1 #2, done in 0.000696
Output for 5.3.1
0 1 #1, done in 0.000769 0 1 #2, done in 0.000745
Output for 5.3.0
0 1 #1, done in 0.000738 0 1 #2, done in 0.000724
Output for 5.2.17
0 1 #1, done in 0.000895 0 1 #2, done in 0.000849
Output for 5.2.16
0 1 #1, done in 0.000933 0 1 #2, done in 0.000842
Output for 5.2.15
0 1 #1, done in 0.000863 0 1 #2, done in 0.000898
Output for 5.2.14
0 1 #1, done in 0.000878 0 1 #2, done in 0.000820
Output for 5.2.13
0 1 #1, done in 0.000870 0 1 #2, done in 0.000817
Output for 5.2.12
0 1 #1, done in 0.000891 0 1 #2, done in 0.000864
Output for 5.2.11
0 1 #1, done in 0.000844 0 1 #2, done in 0.000811
Output for 5.2.10
0 1 #1, done in 0.001042 0 1 #2, done in 0.000901
Output for 5.2.9
0 1 #1, done in 0.000905 0 1 #2, done in 0.000854
Output for 5.2.8
0 1 #1, done in 0.000891 0 1 #2, done in 0.000868
Output for 5.2.7
0 1 #1, done in 0.000946 0 1 #2, done in 0.000834
Output for 5.2.6
0 1 #1, done in 0.000963 0 1 #2, done in 0.000860
Output for 5.2.5
0 1 #1, done in 0.000924 0 1 #2, done in 0.000841
Output for 5.2.4
0 1 #1, done in 0.000819 0 1 #2, done in 0.000779
Output for 5.2.3
0 1 #1, done in 0.000868 0 1 #2, done in 0.000847
Output for 5.2.2
0 1 #1, done in 0.001139 0 1 #2, done in 0.001125
Output for 5.2.1
0 1 #1, done in 0.001795 0 1 #2, done in 0.001696
Output for 5.2.0
0 1 #1, done in 0.001142 0 1 #2, done in 0.001088
Output for 5.1.6
0 1 #1, done in 0.001156 0 1 #2, done in 0.001230
Output for 5.1.5
0 1 #1, done in 0.001171 0 1 #2, done in 0.001222
Output for 5.1.4
0 1 #1, done in 0.001149 0 1 #2, done in 0.001112
Output for 5.1.3
0 1 #1, done in 0.001448 0 1 #2, done in 0.001184
Output for 5.1.2
0 1 #1, done in 0.001474 0 1 #2, done in 0.001278
Output for 5.1.1
0 1 #1, done in 0.001359 0 1 #2, done in 0.001348
Output for 5.1.0
0 1 #1, done in 0.001180 0 1 #2, done in 0.001169
Output for 5.0.5
0 1 #1, done in 0.001317 0 1 #2, done in 0.001376
Output for 5.0.4
0 1 #1, done in 0.001404 0 1 #2, done in 0.001228
Output for 5.0.3
0 1 #1, done in 0.001396 0 1 #2, done in 0.001194
Output for 5.0.2
0 1 #1, done in 0.001252 0 1 #2, done in 0.001287
Output for 5.0.1
0 1 #1, done in 0.001237 0 1 #2, done in 0.001301
Output for 5.0.0
0 1 #1, done in 0.001224 0 1 #2, done in 0.001182
Output for 4.4.9
0 1 #1, done in 0.001289 0 1 #2, done in 0.001264
Output for 4.4.8
0 1 #1, done in 0.001542 0 1 #2, done in 0.001270
Output for 4.4.7
0 1 #1, done in 0.001327 0 1 #2, done in 0.001227
Output for 4.4.6
0 1 #1, done in 0.001326 0 1 #2, done in 0.001297
Output for 4.4.5
0 1 #1, done in 0.001426 0 1 #2, done in 0.001792
Output for 4.4.4
0 1 #1, done in 0.001390 0 1 #2, done in 0.001332
Output for 4.4.3
0 1 #1, done in 0.001259 0 1 #2, done in 0.001292
Output for 4.4.2
0 1 #1, done in 0.001296 0 1 #2, done in 0.001280
Output for 4.4.1
0 1 #1, done in 0.001300 0 1 #2, done in 0.001255
Output for 4.4.0
0 1 #1, done in 0.001333 0 1 #2, done in 0.001288
Output for 4.3.11
0 1 #1, done in 0.001913 0 1 #2, done in 0.001770
Output for 4.3.10
0 1 #1, done in 0.001277 0 1 #2, done in 0.001245
Output for 4.3.9
0 1 #1, done in 0.001231 0 1 #2, done in 0.001174
Output for 4.3.8
0 1 #1, done in 0.001302 0 1 #2, done in 0.001251
Output for 4.3.7
0 1 #1, done in 0.001268 0 1 #2, done in 0.001178
Output for 4.3.6
0 1 #1, done in 0.001306 0 1 #2, done in 0.001283
Output for 4.3.5
0 1 #1, done in 0.001279 0 1 #2, done in 0.001200
Output for 4.3.4
0 1 #1, done in 0.001384 0 1 #2, done in 0.001338
Output for 4.3.3
0 1 #1, done in 0.001215 0 1 #2, done in 0.001183
Output for 4.3.2
0 1 #1, done in 0.001188 0 1 #2, done in 0.001195
Output for 4.3.1
0 1 #1, done in 0.001205 0 1 #2, done in 0.001378
Output for 4.3.0
0 1 #1, done in 0.001591 0 1 #2, done in 0.001892