3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array(); $i = 0; $start = microtime(true); for($i = 0; $i < 100000; $i++) { if(count($test)) { throw new Exception(); } } $middle = microtime(true); for($i = 0; $i < 100000; $i++) { if (!empty($test)) { throw new Exception(); } } $end = microtime(true); echo ($middle - $start) . chr(10); echo ($end - $middle) . chr(10); ?>
Output for 7.1.0
0.0036649703979492 0.0024828910827637
Output for 7.0.14
0.0044450759887695 0.0030460357666016
Output for 7.0.10
0.0030670166015625 0.0021789073944092
Output for 7.0.9
0.0027601718902588 0.0019209384918213
Output for 7.0.8
0.0047988891601562 0.0026249885559082
Output for 7.0.7
0.0031139850616455 0.0021829605102539
Output for 7.0.6
0.0038158893585205 0.0025761127471924
Output for 7.0.5
0.0037291049957275 0.002593994140625
Output for 7.0.4
0.0044240951538086 0.003018856048584
Output for 7.0.3
0.0035200119018555 0.0024008750915527
Output for 7.0.2
0.0031859874725342 0.0024621486663818
Output for 7.0.1
0.0034780502319336 0.0025429725646973
Output for 7.0.0
0.0034589767456055 0.0024449825286865
Output for hhvm-3.12.0
0.022109985351562 0.0055890083312988
Output for hhvm-3.10.0
0.013972997665405 0.0070409774780273
Output for 5.6.28
0.016408205032349 0.0073239803314209
Output for 5.6.25
0.012748003005981 0.0053830146789551
Output for 5.6.24
0.010350942611694 0.0043411254882812
Output for 5.6.23
0.011190176010132 0.0042009353637695
Output for 5.6.22
0.012050867080688 0.0051009654998779
Output for 5.6.21
0.0086438655853271 0.0035309791564941
Output for 5.6.20
0.011940956115723 0.0042150020599365
Output for 5.6.19
0.013741970062256 0.0055739879608154
Output for 5.6.18
0.011088848114014 0.0045080184936523
Output for 5.6.17
0.010793924331665 0.0044839382171631
Output for 5.6.16
0.0099480152130127 0.0039091110229492
Output for 5.6.15
0.012686014175415 0.0051009654998779
Output for 5.6.14
0.013991832733154 0.0043990612030029
Output for 5.6.13
0.012497186660767 0.0050590038299561
Output for 5.6.12
0.011593818664551 0.004755973815918
Output for 5.6.11
0.013398885726929 0.0057041645050049
Output for 5.6.10
0.011964797973633 0.0048751831054688
Output for 5.6.9
0.013206005096436 0.0055398941040039
Output for 5.6.8
0.013733863830566 0.0047650337219238
Output for 5.6.7
0.011611938476562 0.0041821002960205
Output for 5.6.6
0.013598203659058 0.0056049823760986
Output for 5.6.5
0.011255025863647 0.0047800540924072
Output for 5.6.4
0.0094051361083984 0.0040218830108643
Output for 5.6.3
0.01235294342041 0.0050489902496338
Output for 5.6.2
0.013935089111328 0.0045130252838135
Output for 5.6.1
0.012064933776855 0.0048549175262451
Output for 5.6.0
0.013895034790039 0.0055580139160156
Output for 5.5.38
0.010915994644165 0.0046610832214355
Output for 5.5.37
0.011013984680176 0.0045170783996582
Output for 5.5.36
0.01082706451416 0.004784107208252
Output for 5.5.35
0.013140916824341 0.00502610206604
Output for 5.5.34
0.013581991195679 0.0051538944244385
Output for 5.5.33
0.012948036193848 0.0046870708465576
Output for 5.5.32
0.01237416267395 0.0048699378967285
Output for 5.5.31
0.01438307762146 0.005702018737793
Output for 5.5.30
0.014621019363403 0.0056619644165039
Output for 5.5.29
0.011602878570557 0.0046060085296631
Output for 5.5.28
0.012203931808472 0.004673957824707
Output for 5.5.27
0.014053106307983 0.0056748390197754
Output for 5.5.26
0.015146017074585 0.0056509971618652
Output for 5.5.25
0.011775016784668 0.0045628547668457
Output for 5.5.24
0.012115001678467 0.0046939849853516
Output for 5.5.23
0.013853073120117 0.0054159164428711
Output for 5.5.22
0.012269020080566 0.0049078464508057
Output for 5.5.21
0.01211404800415 0.0048339366912842
Output for 5.5.20
0.012148857116699 0.0047011375427246
Output for 5.5.19
0.013646125793457 0.0051519870758057
Output for 5.5.18
0.013333082199097 0.0041980743408203
Output for 5.5.16
0.013041019439697 0.004047155380249
Output for 5.5.15
0.013273000717163 0.0053160190582275
Output for 5.5.14
0.01474404335022 0.0051870346069336
Output for 5.5.13
0.012502908706665 0.0048770904541016
Output for 5.5.12
0.018746852874756 0.0070869922637939
Output for 5.5.11
0.014765024185181 0.005634069442749
Output for 5.5.10
0.012419939041138 0.0048370361328125
Output for 5.5.9
0.014265060424805 0.0056970119476318
Output for 5.5.8
0.014376163482666 0.0057389736175537
Output for 5.5.7
0.012325048446655 0.0046329498291016
Output for 5.5.6
0.012395143508911 0.0048658847808838
Output for 5.5.5
0.014111042022705 0.0055990219116211
Output for 5.5.4
0.012311935424805 0.0049259662628174
Output for 5.5.3
0.011018037796021 0.0043880939483643
Output for 5.5.2
0.014684915542603 0.0055820941925049
Output for 5.5.1
0.013701200485229 0.0041618347167969
Output for 5.5.0
0.014182090759277 0.0056478977203369
Output for 5.4.45
0.012331008911133 0.0049271583557129
Output for 5.4.44
0.01366400718689 0.0056419372558594
Output for 5.4.43
0.012768983840942 0.0043511390686035
Output for 5.4.42
0.012952089309692 0.0052309036254883
Output for 5.4.41
0.01183295249939 0.0047390460968018
Output for 5.4.40
0.011828899383545 0.0050680637359619
Output for 5.4.39
0.027057886123657 0.0062811374664307
Output for 5.4.38
0.012428998947144 0.0049469470977783
Output for 5.4.37
0.013087034225464 0.0053038597106934
Output for 5.4.36
0.013360023498535 0.0053739547729492
Output for 5.4.35
0.01352596282959 0.0054349899291992
Output for 5.4.34
0.014036178588867 0.0056178569793701
Output for 5.4.32
0.013949155807495 0.0045540332794189
Output for 5.4.31
0.012984991073608 0.0053169727325439
Output for 5.4.30
0.011493921279907 0.0052211284637451
Output for 5.4.29
0.014123916625977 0.0049169063568115
Output for 5.4.28
0.010945081710815 0.0038049221038818
Output for 5.4.27
0.014220952987671 0.0052750110626221
Output for 5.4.26
0.01156210899353 0.0045509338378906
Output for 5.4.25
0.014058113098145 0.0056009292602539
Output for 5.4.24
0.014317035675049 0.0049350261688232
Output for 5.4.23
0.013618946075439 0.0041599273681641
Output for 5.4.22
0.013705015182495 0.0053670406341553
Output for 5.4.21
0.012058019638062 0.0047948360443115
Output for 5.4.20
0.011160135269165 0.0044469833374023
Output for 5.4.19
0.012825012207031 0.0049118995666504
Output for 5.4.18
0.014420986175537 0.0056509971618652
Output for 5.4.17
0.011814117431641 0.0045540332794189
Output for 5.4.16
0.011226892471313 0.0037992000579834
Output for 5.4.15
0.010996103286743 0.0042309761047363
Output for 5.4.14
0.01301908493042 0.0051889419555664
Output for 5.4.13
0.013255834579468 0.0043470859527588
Output for 5.4.12
0.012500047683716 0.0049068927764893
Output for 5.4.11
0.01193904876709 0.004723072052002
Output for 5.4.10
0.01461386680603 0.0061511993408203
Output for 5.4.9
0.013998031616211 0.0061941146850586
Output for 5.4.8
0.013475179672241 0.0055668354034424
Output for 5.4.7
0.012403011322021 0.0052638053894043
Output for 5.4.6
0.011140108108521 0.0037989616394043
Output for 5.4.5
0.012135028839111 0.0051529407501221
Output for 5.4.4
0.011323213577271 0.0042228698730469
Output for 5.4.3
0.015197992324829 0.0062460899353027
Output for 5.4.2
0.013288974761963 0.0053510665893555
Output for 5.4.1
0.013649940490723 0.0046792030334473
Output for 5.4.0
0.013468027114868 0.0048789978027344
Output for 5.3.29
0.01547908782959 0.0061290264129639
Output for 5.3.28
0.012396097183228 0.0051910877227783
Output for 5.3.27
0.011571884155273 0.0046391487121582
Output for 5.3.26
0.017422914505005 0.0066299438476562
Output for 5.3.25
0.016453981399536 0.0064578056335449
Output for 5.3.24
0.017343997955322 0.0075600147247314
Output for 5.3.23
0.014102935791016 0.0099649429321289
Output for 5.3.22
0.015049934387207 0.0058770179748535
Output for 5.3.21
0.015647888183594 0.0060021877288818
Output for 5.3.20
0.014862060546875 0.0047218799591064
Output for 5.3.19
0.015726089477539 0.0066390037536621
Output for 5.3.18
0.015803098678589 0.0051250457763672
Output for 5.3.17
0.014369010925293 0.0058178901672363
Output for 5.3.16
0.013715028762817 0.0045008659362793
Output for 5.3.15
0.016165018081665 0.0063619613647461
Output for 5.3.14
0.013292074203491 0.0054059028625488
Output for 5.3.13
0.014375925064087 0.0057260990142822
Output for 5.3.12
0.013899087905884 0.0056159496307373
Output for 5.3.11
0.017060995101929 0.0067009925842285
Output for 5.3.10
0.015087842941284 0.0059449672698975
Output for 5.3.9
0.014060020446777 0.0047597885131836
Output for 5.3.8
0.014603137969971 0.0055418014526367
Output for 5.3.7
0.011132001876831 0.0045700073242188
Output for 5.3.6
0.010941982269287 0.004749059677124
Output for 5.3.5
0.012701034545898 0.0051178932189941
Output for 5.3.4
0.015553951263428 0.0059618949890137
Output for 5.3.3
0.018435001373291 0.0063879489898682
Output for 5.3.2
0.016212940216064 0.0064451694488525
Output for 5.3.1
0.017831087112427 0.0068249702453613
Output for 5.3.0
0.014852046966553 0.0059490203857422
Output for 5.2.17
0.01697301864624 0.0084760189056396
Output for 5.2.16
0.021168947219849 0.010320901870728
Output for 5.2.15
0.023056030273438 0.011512041091919
Output for 5.2.14
0.020277976989746 0.0096349716186523
Output for 5.2.13
0.020917892456055 0.0099220275878906
Output for 5.2.12
0.015790939331055 0.0078480243682861
Output for 5.2.11
0.019954919815063 0.0098280906677246
Output for 5.2.10
0.019258975982666 0.0084550380706787
Output for 5.2.9
0.018105030059814 0.0089778900146484
Output for 5.2.8
0.021011114120483 0.0091090202331543
Output for 5.2.7
0.017937898635864 0.0085470676422119
Output for 5.2.6
0.019141912460327 0.0094020366668701
Output for 5.2.5
0.020510911941528 0.0098030567169189
Output for 5.2.4
0.020639896392822 0.010383129119873
Output for 5.2.3
0.018939971923828 0.0092201232910156
Output for 5.2.2
0.017422914505005 0.008540153503418
Output for 5.2.1
0.017441034317017 0.0092461109161377
Output for 5.2.0
0.01584005355835 0.0080928802490234
Output for 5.1.6
0.01488995552063 0.0083651542663574
Output for 5.1.5
0.019042015075684 0.010267972946167
Output for 5.1.4
0.018752098083496 0.010211944580078
Output for 5.1.3
0.018285036087036 0.010236024856567
Output for 5.1.2
0.017730236053467 0.0087788105010986
Output for 5.1.1
0.016863107681274 0.0098869800567627
Output for 5.1.0
0.017915010452271 0.0092110633850098
Output for 5.0.5
0.039185047149658 0.019989967346191
Output for 5.0.4
0.036864995956421 0.019045114517212
Output for 5.0.3
0.033623933792114 0.01354193687439
Output for 5.0.2
0.03740406036377 0.018808126449585
Output for 5.0.1
0.034059047698975 0.014948129653931
Output for 5.0.0
0.030400991439819 0.015986919403076
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/3ShnG on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/3ShnG on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/3ShnG on line 9
Process exited with code 255.