3v4l.org

run code in 200+ 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.2.0
0.0015938282012939 0.0018091201782227
Output for 7.1.7
0.0031590461730957 0.0030879974365234
Output for 7.1.6
0.0031487941741943 0.0019772052764893
Output for 7.1.5
0.0026700496673584 0.0017991065979004
Output for 7.1.4
0.0031638145446777 0.0022361278533936
Output for 7.1.3
0.0044338703155518 0.0027971267700195
Output for 7.1.2
0.0029561519622803 0.0019059181213379
Output for 7.1.1
0.0030181407928467 0.0017380714416504
Output for 7.1.0
0.0024399757385254 0.0017080307006836
Output for 7.0.20
0.003201961517334 0.0019528865814209
Output for 7.0.19
0.002960205078125 0.0018069744110107
Output for 7.0.18
0.0026760101318359 0.0016381740570068
Output for 7.0.17
0.0028297901153564 0.0021181106567383
Output for 7.0.16
0.0033159255981445 0.002190113067627
Output for 7.0.15
0.0031881332397461 0.0019938945770264
Output for 7.0.14
0.003154993057251 0.0021390914916992
Output for 7.0.13
0.0024850368499756 0.0017809867858887
Output for 7.0.12
0.0028541088104248 0.0018818378448486
Output for 7.0.11
0.0057129859924316 0.0038180351257324
Output for 7.0.10
0.004443883895874 0.0026769638061523
Output for 7.0.9
0.0027210712432861 0.0018229484558105
Output for 7.0.8
0.003040075302124 0.0019447803497314
Output for 7.0.7
0.0025219917297363 0.0017819404602051
Output for 7.0.6
0.0027239322662354 0.0020830631256104
Output for 7.0.5
0.0025050640106201 0.0018868446350098
Output for 7.0.4
0.0029017925262451 0.0022091865539551
Output for 7.0.3
0.0045900344848633 0.0027880668640137
Output for 7.0.2
0.0026938915252686 0.0017831325531006
Output for 7.0.1
0.0051229000091553 0.0031640529632568
Output for 7.0.0
0.0031900405883789 0.0022819042205811
Output for hhvm-3.17.3
0.019381046295166 0.0055408477783203
Output for hhvm-3.15.4
0.019225120544434 0.0048539638519287
Output for hhvm-3.13.2
0.016913175582886 0.0041649341583252
Output for hhvm-3.12.14
0.13415193557739 0.0049490928649902
Output for hhvm-3.11.1
0.017359972000122 0.0042450428009033
Output for hhvm-3.10.1
0.009429931640625 0.0049099922180176
Output for 5.6.30
0.0082130432128906 0.0034070014953613
Output for 5.6.29
0.0093820095062256 0.0044159889221191
Output for 5.6.28
0.010804891586304 0.0042190551757812
Output for 5.6.27
0.0086569786071777 0.0035920143127441
Output for 5.6.26
0.0078189373016357 0.0034079551696777
Output for 5.6.25
0.015536069869995 0.0048608779907227
Output for 5.6.24
0.0090270042419434 0.0037891864776611
Output for 5.6.23
0.012821912765503 0.0058679580688477
Output for 5.6.22
0.008105993270874 0.0035128593444824
Output for 5.6.21
0.013595104217529 0.0037038326263428
Output for 5.6.20
0.0080559253692627 0.0034291744232178
Output for 5.6.19
0.011682987213135 0.0046901702880859
Output for 5.6.18
0.013902902603149 0.0052850246429443
Output for 5.6.17
0.010550022125244 0.0045139789581299
Output for 5.6.16
0.0080790519714355 0.0034060478210449
Output for 5.6.15
0.0096330642700195 0.0038738250732422
Output for 5.6.14
0.010184049606323 0.0035879611968994
Output for 5.6.13
0.0082519054412842 0.0035181045532227
Output for 5.6.12
0.011822938919067 0.0050129890441895
Output for 5.6.11
0.011469125747681 0.0038690567016602
Output for 5.6.10
0.017225980758667 0.0052590370178223
Output for 5.6.9
0.0093979835510254 0.0034029483795166
Output for 5.6.8
0.0091300010681152 0.0034887790679932
Output for 5.6.7
0.010894060134888 0.0057120323181152
Output for 5.6.6
0.012562990188599 0.0060510635375977
Output for 5.6.5
0.011897087097168 0.0034070014953613
Output for 5.6.4
0.012866020202637 0.0042829513549805
Output for 5.6.3
0.0084669589996338 0.0035619735717773
Output for 5.6.2
0.011948108673096 0.0040891170501709
Output for 5.6.1
0.0086519718170166 0.0040080547332764
Output for 5.6.0
0.0081720352172852 0.0033969879150391
Output for 5.5.38
0.0089330673217773 0.0035641193389893
Output for 5.5.37
0.01982593536377 0.0059189796447754
Output for 5.5.36
0.0097019672393799 0.0041840076446533
Output for 5.5.35
0.010205030441284 0.0038390159606934
Output for 5.5.34
0.0093889236450195 0.0038630962371826
Output for 5.5.33
0.011526107788086 0.0041499137878418
Output for 5.5.32
0.0088040828704834 0.0035309791564941
Output for 5.5.31
0.010983228683472 0.0039799213409424
Output for 5.5.30
0.0097348690032959 0.0037541389465332
Output for 5.5.29
0.0089659690856934 0.0037500858306885
Output for 5.5.28
0.0093059539794922 0.0036129951477051
Output for 5.5.27
0.0086641311645508 0.0035037994384766
Output for 5.5.26
0.015430927276611 0.0034902095794678
Output for 5.5.25
0.012243032455444 0.0047719478607178
Output for 5.5.24
0.0087649822235107 0.0034389495849609
Output for 5.5.23
0.010443210601807 0.0054819583892822
Output for 5.5.22
0.0095958709716797 0.0041279792785645
Output for 5.5.21
0.015005111694336 0.0050909519195557
Output for 5.5.20
0.0083808898925781 0.003587007522583
Output for 5.5.19
0.012983083724976 0.0039830207824707
Output for 5.5.18
0.017974853515625 0.0054221153259277
Output for 5.5.16
0.0084950923919678 0.0034699440002441
Output for 5.5.15
0.016772031784058 0.0035881996154785
Output for 5.5.14
0.0089688301086426 0.0035521984100342
Output for 5.5.13
0.010066986083984 0.0039680004119873
Output for 5.5.12
0.010818958282471 0.0039920806884766
Output for 5.5.11
0.010651111602783 0.0048818588256836
Output for 5.5.10
0.011307001113892 0.004202127456665
Output for 5.5.9
0.015483856201172 0.0051372051239014
Output for 5.5.8
0.0093998908996582 0.0036101341247559
Output for 5.5.7
0.011789083480835 0.0049610137939453
Output for 5.5.6
0.0088229179382324 0.0034680366516113
Output for 5.5.5
0.010512113571167 0.0038008689880371
Output for 5.5.4
0.0087099075317383 0.0034480094909668
Output for 5.5.3
0.008760929107666 0.003662109375
Output for 5.5.2
0.022922992706299 0.0048630237579346
Output for 5.5.1
0.015343904495239 0.0067811012268066
Output for 5.5.0
0.01242208480835 0.0050399303436279
Output for 5.4.45
0.0081989765167236 0.0034651756286621
Output for 5.4.44
0.009213924407959 0.0039401054382324
Output for 5.4.43
0.0088329315185547 0.0039839744567871
Output for 5.4.42
0.0085189342498779 0.0035080909729004
Output for 5.4.41
0.014440059661865 0.0053510665893555
Output for 5.4.40
0.0080411434173584 0.0034549236297607
Output for 5.4.39
0.00826096534729 0.0035059452056885
Output for 5.4.38
0.010648012161255 0.0034801959991455
Output for 5.4.37
0.00888991355896 0.0035789012908936
Output for 5.4.36
0.008587121963501 0.0036349296569824
Output for 5.4.35
0.010455131530762 0.0040769577026367
Output for 5.4.34
0.0086560249328613 0.0042979717254639
Output for 5.4.32
0.016112804412842 0.0057461261749268
Output for 5.4.31
0.008720874786377 0.0038101673126221
Output for 5.4.30
0.015833854675293 0.0035989284515381
Output for 5.4.29
0.0088930130004883 0.003680944442749
Output for 5.4.28
0.0094840526580811 0.0037870407104492
Output for 5.4.27
0.0088229179382324 0.0035529136657715
Output for 5.4.26
0.014724016189575 0.0048539638519287
Output for 5.4.25
0.0087249279022217 0.0035691261291504
Output for 5.4.24
0.0085561275482178 0.0035898685455322
Output for 5.4.23
0.0086700916290283 0.0037350654602051
Output for 5.4.22
0.0089230537414551 0.0035710334777832
Output for 5.4.21
0.011616945266724 0.0036249160766602
Output for 5.4.20
0.0088341236114502 0.0048840045928955
Output for 5.4.19
0.0083677768707275 0.0034670829772949
Output for 5.4.18
0.0085380077362061 0.0034751892089844
Output for 5.4.17
0.014307975769043 0.0058410167694092
Output for 5.4.16
0.0098249912261963 0.0038681030273438
Output for 5.4.15
0.025037050247192 0.0043740272521973
Output for 5.4.14
0.0093121528625488 0.0034010410308838
Output for 5.4.13
0.010457038879395 0.0032989978790283
Output for 5.4.12
0.0089941024780273 0.0035858154296875
Output for 5.4.11
0.01088809967041 0.0046110153198242
Output for 5.4.10
0.013789176940918 0.003856897354126
Output for 5.4.9
0.0088169574737549 0.0037410259246826
Output for 5.4.8
0.0093491077423096 0.0041189193725586
Output for 5.4.7
0.010399103164673 0.0036718845367432
Output for 5.4.6
0.01016092300415 0.0039069652557373
Output for 5.4.5
0.01233696937561 0.0039300918579102
Output for 5.4.4
0.010961055755615 0.0036439895629883
Output for 5.4.3
0.013472080230713 0.0036420822143555
Output for 5.4.2
0.010554790496826 0.0043680667877197
Output for 5.4.1
0.01173996925354 0.0040969848632812
Output for 5.4.0
0.0083799362182617 0.0034680366516113
Output for 5.3.29
0.012861013412476 0.0060169696807861
Output for 5.3.28
0.010829925537109 0.0041689872741699
Output for 5.3.27
0.01161789894104 0.0045890808105469
Output for 5.3.26
0.013350009918213 0.0053908824920654
Output for 5.3.25
0.0096631050109863 0.0041518211364746
Output for 5.3.24
0.012451171875 0.0047218799591064
Output for 5.3.23
0.017647981643677 0.006195068359375
Output for 5.3.22
0.012149810791016 0.0050890445709229
Output for 5.3.21
0.014424085617065 0.0074429512023926
Output for 5.3.20
0.010632991790771 0.0062751770019531
Output for 5.3.19
0.011075019836426 0.0047328472137451
Output for 5.3.18
0.011569023132324 0.0046119689941406
Output for 5.3.17
0.013045072555542 0.0048010349273682
Output for 5.3.16
0.01028299331665 0.0045108795166016
Output for 5.3.15
0.012428045272827 0.0044889450073242
Output for 5.3.14
0.01006293296814 0.0041189193725586
Output for 5.3.13
0.010550975799561 0.0042049884796143
Output for 5.3.12
0.015185117721558 0.0057458877563477
Output for 5.3.11
0.016880989074707 0.0088329315185547
Output for 5.3.10
0.01000714302063 0.0041189193725586
Output for 5.3.9
0.014849901199341 0.0047969818115234
Output for 5.3.8
0.01298713684082 0.0054118633270264
Output for 5.3.7
0.010069847106934 0.0041780471801758
Output for 5.3.6
0.012233018875122 0.0048210620880127
Output for 5.3.5
0.012465000152588 0.0043611526489258
Output for 5.3.4
0.010637998580933 0.0044400691986084
Output for 5.3.3
0.013108015060425 0.0044100284576416
Output for 5.3.2
0.010162115097046 0.0049889087677002
Output for 5.3.1
0.012356996536255 0.0047831535339355
Output for 5.3.0
0.011330127716064 0.0053718090057373
Output for 5.2.17
0.016195058822632 0.010517835617065
Output for 5.2.16
0.024477005004883 0.0079169273376465
Output for 5.2.15
0.013568878173828 0.0067641735076904
Output for 5.2.14
0.012695789337158 0.0058081150054932
Output for 5.2.13
0.014436006546021 0.007361888885498
Output for 5.2.12
0.018599033355713 0.0077829360961914
Output for 5.2.11
0.011685848236084 0.0061252117156982
Output for 5.2.10
0.013152122497559 0.0070390701293945
Output for 5.2.9
0.016088008880615 0.0068140029907227
Output for 5.2.8
0.023123979568481 0.0088560581207275
Output for 5.2.7
0.013333082199097 0.005871057510376
Output for 5.2.6
0.013569831848145 0.0070340633392334
Output for 5.2.5
0.012098073959351 0.0064449310302734
Output for 5.2.4
0.011237859725952 0.0060210227966309
Output for 5.2.3
0.011279106140137 0.0059809684753418
Output for 5.2.2
0.012435913085938 0.0062880516052246
Output for 5.2.1
0.013046026229858 0.0066759586334229
Output for 5.2.0
0.020308971405029 0.0059421062469482
Output for 5.1.6
0.012687206268311 0.0084209442138672
Output for 5.1.5
0.012315988540649 0.006242036819458
Output for 5.1.4
0.011881113052368 0.0068528652191162
Output for 5.1.3
0.014012098312378 0.009821891784668
Output for 5.1.2
0.010612964630127 0.006101131439209
Output for 5.1.1
0.01146388053894 0.005958080291748
Output for 5.1.0
0.015931844711304 0.007094144821167
Output for 5.0.5
0.021844863891602 0.013088941574097
Output for 5.0.4
0.024678945541382 0.013283967971802
Output for 5.0.3
0.020687103271484 0.012353897094727
Output for 5.0.2
0.032637119293213 0.016190052032471
Output for 5.0.1
0.031709909439087 0.013998031616211
Output for 5.0.0
0.021552085876465 0.01119589805603
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.