3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";
Output for 7.1.0
A :0.017580032348633 B :0.017570018768311
Output for 7.0.14
A :0.031922101974487 B :0.029001951217651
Output for 7.0.6
A :0.035960912704468 B :0.031275987625122
Output for 7.0.5
A :0.029973030090332 B :0.026633024215698
Output for 7.0.4
A :0.02411413192749 B :0.024993896484375
Output for 7.0.3
A :0.022755861282349 B :0.021368980407715
Output for 7.0.2
A :0.020095109939575 B :0.020090103149414
Output for 7.0.1
A :0.019566059112549 B :0.019507884979248
Output for 7.0.0
A :0.019982099533081 B :0.020676851272583
Output for 5.6.28
A :0.10480904579163 B :0.083032846450806
Output for 5.6.21
A :0.058852910995483 B :0.058135032653809
Output for 5.6.20
A :0.076547145843506 B :0.057703018188477
Output for 5.6.19
A :0.054909944534302 B :0.05789589881897
Output for 5.6.18
A :0.056480884552002 B :0.056135177612305
Output for 5.6.17
A :0.061302900314331 B :0.060181140899658
Output for 5.6.16
A :0.066826105117798 B :0.057543039321899
Output for 5.6.15
A :0.061192989349365 B :0.05881404876709
Output for 5.6.14
A :0.060017108917236 B :0.05580997467041
Output for 5.6.13
A :0.059174060821533 B :0.055775165557861
Output for 5.6.12
A :0.071526050567627 B :0.060477018356323
Output for 5.6.11
A :0.059664964675903 B :0.055897951126099
Output for 5.6.10
A :0.070796966552734 B :0.057617902755737
Output for 5.6.9
A :0.080241918563843 B :0.058552026748657
Output for 5.6.8
A :0.06860613822937 B :0.056519031524658
Output for 5.5.35
A :0.071171045303345 B :0.05866813659668
Output for 5.5.34
A :0.05467414855957 B :0.054716110229492
Output for 5.5.33
A :0.055936098098755 B :0.055455923080444
Output for 5.5.32
A :0.063217878341675 B :0.062381982803345
Output for 5.5.31
A :0.063706159591675 B :0.054551839828491
Output for 5.5.30
A :0.064682960510254 B :0.054379940032959
Output for 5.5.29
A :0.0676589012146 B :0.056021928787231
Output for 5.5.28
A :0.067786931991577 B :0.069931983947754
Output for 5.5.27
A :0.063436985015869 B :0.063989162445068
Output for 5.5.26
A :0.065080165863037 B :0.057930946350098
Output for 5.5.25
A :0.073769092559814 B :0.058868169784546
Output for 5.5.24
A :0.055293083190918 B :0.055347919464111
Output for 5.4.45
A :0.066629886627197 B :0.056618928909302
Output for 5.4.44
A :0.06026816368103 B :0.058674097061157
Output for 5.4.43
A :0.054796934127808 B :0.05303692817688
Output for 5.4.42
A :0.059209823608398 B :0.053078889846802
Output for 5.4.41
A :0.059506893157959 B :0.052988052368164
Output for 5.4.40
A :0.059902906417847 B :0.053321838378906
Output for 5.4.39
A :0.069642066955566 B :0.055723905563354
Output for 5.4.38
A :0.062365055084229 B :0.052852153778076
Output for 5.4.37
A :0.059309005737305 B :0.052890062332153
Output for 5.4.36
A :0.06903600692749 B :0.055114984512329
Output for 5.4.35
A :0.052767992019653 B :0.052834987640381
Output for 5.4.34
A :0.07194709777832 B :0.056591033935547
Output for 5.4.32
A :0.069822072982788 B :0.05677604675293
Output for 5.4.31
A :0.072000026702881 B :0.056915044784546
Output for 5.4.30
A :0.076921939849854 B :0.060164928436279
Output for 5.4.29
A :0.059637069702148 B :0.058448076248169
Output for 5.4.28
A :0.067970991134644 B :0.052643060684204
Output for 5.4.27
A :0.066528081893921 B :0.056228160858154
Output for 5.4.26
A :0.065286874771118 B :0.054197072982788
Output for 5.4.25
A :0.068471908569336 B :0.055840969085693
Output for 5.4.24
A :0.060892820358276 B :0.05866003036499
Output for 5.4.23
A :0.067891120910645 B :0.056278944015503
Output for 5.4.22
A :0.081650018692017 B :0.067124843597412
Output for 5.4.21
A :0.078073024749756 B :0.061620950698853
Output for 5.4.20
A :0.053957939147949 B :0.057124137878418
Output for 5.4.19
A :0.061789989471436 B :0.0536789894104
Output for 5.4.18
A :0.05351185798645 B :0.052875995635986
Output for 5.4.17
A :0.071218967437744 B :0.054817914962769
Output for 5.4.16
A :0.053385972976685 B :0.053695917129517
Output for 5.4.15
A :0.068947792053223 B :0.054646968841553
Output for 5.4.14
A :0.06503701210022 B :0.054134130477905
Output for 5.4.13
A :0.061965942382812 B :0.05349588394165
Output for 5.4.12
A :0.070100069046021 B :0.058247804641724
Output for 5.4.11
A :0.074811220169067 B :0.076555967330933
Output for 5.4.10
A :0.066081047058105 B :0.058171987533569
Output for 5.4.9
A :0.058908224105835 B :0.059364795684814
Output for 5.4.8
A :0.060107946395874 B :0.05350399017334
Output for 5.4.7
A :0.074657917022705 B :0.058510065078735
Output for 5.4.6
A :0.064348936080933 B :0.055619955062866
Output for 5.4.5
A :0.065452098846436 B :0.060787916183472
Output for 5.4.4
A :0.067199945449829 B :0.055629014968872
Output for 5.4.3
A :0.062610864639282 B :0.062262058258057
Output for 5.4.2
A :0.067346096038818 B :0.055190086364746
Output for 5.4.1
A :0.057816982269287 B :0.053231000900269
Output for 5.4.0
A :0.070457935333252 B :0.056445837020874
Output for 5.3.29
A :0.085059881210327 B :0.067269086837769
Output for 5.3.28
A :0.074623107910156 B :0.06298303604126
Output for 5.3.27
A :0.075469970703125 B :0.062167167663574
Output for 5.3.26
A :0.081534862518311 B :0.064337015151978
Output for 5.3.25
A :0.071723937988281 B :0.061597108840942
Output for 5.3.24
A :0.07775092124939 B :0.06364893913269
Output for 5.3.23
A :0.064659118652344 B :0.063135147094727
Output for 5.3.22
A :0.064587116241455 B :0.062700986862183
Output for 5.3.21
A :0.062751054763794 B :0.062774896621704
Output for 5.3.20
A :0.10233402252197 B :0.10433197021484
Output for 5.3.19
A :0.063793182373047 B :0.063681125640869
Output for 5.3.18
A :0.06427001953125 B :0.06401801109314
Output for 5.3.17
A :0.068511009216309 B :0.062865972518921
Output for 5.3.16
A :0.070994853973389 B :0.06325101852417
Output for 5.3.15
A :0.063507080078125 B :0.063276052474976
Output for 5.3.14
A :0.062229156494141 B :0.062242031097412
Output for 5.3.13
A :0.078874111175537 B :0.062480926513672
Output for 5.3.12
A :0.062464952468872 B :0.062478065490723
Output for 5.3.11
A :0.083806991577148 B :0.065667867660522
Output for 5.3.10
A :0.081546068191528 B :0.066712856292725
Output for 5.3.9
A :0.077755928039551 B :0.064344882965088
Output for 5.3.8
A :0.085652112960815 B :0.065510988235474
Output for 5.3.7
A :0.078469038009644 B :0.076431035995483
Output for 5.3.6
A :0.085723161697388 B :0.066188097000122
Output for 5.3.5
A :0.084323883056641 B :0.066609144210815
Output for 5.3.4
A :0.070131063461304 B :0.063731908798218
Output for 5.3.3
A :0.063666820526123 B :0.063256025314331
Output for 5.3.2
A :0.078792095184326 B :0.064625978469849
Output for 5.3.1
A :0.080619812011719 B :0.066074132919312
Output for 5.3.0
A :0.064206123352051 B :0.064391851425171
Output for 5.2.17
A :0.12038898468018 B :0.094418048858643
Output for 5.2.16
A :0.12185096740723 B :0.09382700920105
Output for 5.2.15
A :0.12391901016235 B :0.094038963317871
Output for 5.2.14
A :0.095717906951904 B :0.094951152801514
Output for 5.2.13
A :0.11265993118286 B :0.092154026031494
Output for 5.2.12
A :0.11861801147461 B :0.09194278717041
Output for 5.2.11
A :0.10889911651611 B :0.09271502494812
Output for 5.2.10
A :0.096953153610229 B :0.093423128128052
Output for 5.2.9
A :0.09931492805481 B :0.093969106674194
Output for 5.2.8
A :0.095160961151123 B :0.11610698699951
Output for 5.2.7
A :0.09553599357605 B :0.096303939819336
Output for 5.2.6
A :0.091752052307129 B :0.089354991912842
Output for 5.2.5
A :0.093334913253784 B :0.093533992767334
Output for 5.2.4
A :0.090852022171021 B :0.090959072113037
Output for 5.2.3
A :0.11951017379761 B :0.092663049697876
Output for 5.2.2
A :0.1157910823822 B :0.09291410446167
Output for 5.2.1
A :0.0902259349823 B :0.087626218795776
Output for 5.2.0
A :0.11694407463074 B :0.10449910163879
Output for 5.1.6
A :0.10026001930237 B :0.10165500640869
Output for 5.1.5
A :0.10057711601257 B :0.092938899993896
Output for 5.1.4
A :0.12019395828247 B :0.094460010528564
Output for 5.1.3
A :0.089877128601074 B :0.089384794235229
Output for 5.1.2
A :0.11970520019531 B :0.14302396774292
Output for 5.1.1
A :0.086210012435913 B :0.10551190376282
Output for 5.1.0
A :0.1033148765564 B :0.12569308280945
Output for 5.0.5
A :0.20939993858337 B :0.21311593055725
Output for 5.0.4
A :0.17470598220825 B :0.17986416816711
Output for 5.0.3
A :0.18034696578979 B :0.16964101791382
Output for 5.0.2
A :0.18832802772522 B :0.17460203170776
Output for 5.0.1
A :0.22654795646667 B :0.27238202095032
Output for 5.0.0
A :0.19314002990723 B :0.19822812080383
Output for 4.4.9
A :0.168305 B :-0.821812
Output for 4.4.8
A :0.188604 B :0.166441
Output for 4.4.7
A :0.186576 B :0.166618
Output for 4.4.6
A :-0.84687 B :0.173304
Output for 4.4.5
A :0.187887 B :0.197132
Output for 4.4.4
A :-0.803105 B :0.170796
Output for 4.4.3
A :0.202962 B :-0.807013
Output for 4.4.2
A :0.150134 B :0.16205
Output for 4.4.1
A :0.151122 B :0.162805
Output for 4.4.0
A :0.193525 B :0.172071
Output for 4.3.11
A :0.170761 B :0.190596
Output for 4.3.10
A :0.142069 B :0.16089
Output for 4.3.9
A :0.143476 B :0.160212
Output for 4.3.8
A :-0.808859 B :0.176664
Output for 4.3.7
A :0.160318 B :0.170113
Output for 4.3.6
A :-0.804291 B :0.232973
Output for 4.3.5
A :0.179303 B :0.169695
Output for 4.3.4
A :-0.85397 B :0.190144
Output for 4.3.3
A :0.176319 B :0.163433
Output for 4.3.2
A :0.181757 B :-0.838498
Output for 4.3.1
A :0.148949 B :0.159978
Output for 4.3.0
A :0.195234 B :-0.83416