3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = 0; for($i = 0;$i<1000;$i++) { if($i % 3 == 0 || $i % 5 == 0) { $result += $i; } echo $result; }
Output for git.master, git.master_jit, rfc.property-hooks
00033814141423333345454560606078789811911911914316816819519519522522522525825829332932932936840840845045045049549549554354359364464464469875375381081081087087087093393399810641064106411331203120312751275127513501350135014281428150815891589158916731758175818451845184519351935193520282028212322192219221923182418241825202520252026252625262527332733284329542954295430683183318333003300330034203420342035433543366837943794379439234053405341854185418543204320432044584458459847394739473948835028502851755175517553255325532554785478563357895789578959486108610862706270627064356435643566036603677369446944694471187293729374707470747076507650765078337833801882048204820483938583858387758775877589708970897091689168936895699569956997739978997810185101851018510395103951039510608106081082311039110391103911258114781147811700117001170011925119251192512153121531238312614126141261412848130831308313320133201332013560135601356013803138031404814294142941429414543147931479315045150451504515300153001530015558155581581816079160791607916343166081660816875168751687517145171451714517418174181769317969179691796918248185281852818810188101881019095190951909519383193831967319964199641996420258205532055320850208502085021150211502115021453214532175822064220642206422373226832268322995229952299523310233102331023628236282394824269242692426924593249182491825245252452524525575255752557525908259082624326579265792657926918272582725827600276002760027945279452794528293282932864328994289942899429348297032970330060300603006030420304203042030783307833114831514315143151431883322533225332625326253262533000330003300033378333783375834139341393413934523349083490835295352953529535685356853568536078360783647336869368693686937268376683766838070380703807038475384753847538883388833929339704397043970440118405334053340950409504095041370413704137041793417934221842644426444264443073435034350343935439354393544370443704437044808448084524845689456894568946133465784657847025470254702547475474754747547928479284838348839488394883949298497584975850220502205022050685506855068551153511535162352094520945209452568530435304353520535205352054000540005400054483544835496855454554545545455943564335643356925569255692557420574205742057918579185841858919589195891959423599285992860435604356043560945609456094561458614586197362489624896248963008635286352864050640506405064575645756457565103651036563366164661646616466698672336723367770677706777068310683106831068853688536939869944699446994470493710437104371595715957159572150721507215072708727087326873829738297382974393749587495875525755257552576095760957609576668766687724377819778197781978398789787897879560795607956080145801458014580733807338132381914819148191482508831038310383700837008370084300843008430084903849038550886114861148611486723873338733387945879458794588560885608856089178891788979890419904199041991043916689166892295922959229592925929259292593558935589419394829948299482995468961089610896750967509675097395973959739598043980439869399344993449934499998100653100653101310101310101310101970101970101970102633102633103298103964103964103964104633105303105303105975105975105975106650106650106650107328107328108008108689108689108689109373110058110058110745110745110745111435111435111435112128112128112823113519113519113519114218114918114918115620115620115620116325116325116325117033117033117743118454118454118454119168119883119883120600120600120600121320121320121320122043122043122768123494123494123494124223124953124953125685125685125685126420126420126420127158127158127898128639128639128639129383130128130128130875130875130875131625131625131625132378132378133133133889133889133889134648135408135408136170136170136170136935136935136935137703137703138473139244139244139244140018140793140793141570141570141570142350142350142350143133143133143918144704144704144704145493146283146283147075147075147075147870147870147870148668148668149468150269150269150269151073151878151878152685152685152685153495153495153495154308154308155123155939155939155939156758157578157578158400158400158400159225159225159225160053160053160883161714161714161714162548163383163383164220164220164220165060165060165060165903165903166748167594167594167594168443169293169293170145170145170145171000171000171000171858171858172718173579173579173579174443175308175308176175176175176175177045177045177045177918177918178793179669179669179669180548181428181428182310182310182310183195183195183195184083184083184973185864185864185864186758187653187653188550188550188550189450189450189450190353190353191258192164192164192164193073193983193983194895194895194895195810195810195810196728196728197648198569198569198569199493200418200418201345201345201345202275202275202275203208203208204143205079205079205079206018206958206958207900207900207900208845208845208845209793209793210743211694211694211694212648213603213603214560214560214560215520215520215520216483216483217448218414218414218414219383220353220353221325221325221325222300222300222300223278223278224258225239225239225239226223227208227208228195228195228195229185229185229185230178230178231173232169232169232169233168

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.92 ms | 413 KiB | 8 Q