3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Init:\n"; $start_t = microtime(true); $arr = []; for($i = 0; $i < 10000; $i++) { $arr[$i] = 'test'; } echo 'Simple array: '; var_dump(microtime(true) - $start_t); $start_t = microtime(true); $iarr = new ArrayIterator; for($i = 0; $i < 10000; $i++) { $iarr[$i] = 'test'; } echo 'ArrayIterator: '; var_dump(microtime(true) - $start_t); $start_t = microtime(true); $sarr = new SplFixedArray(10000); for($i = 0; $i < 10000; $i++) { $sarr[$i] = 'test'; } echo 'SplFixedArray: '; var_dump(microtime(true) - $start_t); echo "Foreach:\n"; $start_t = microtime(true); foreach ($arr as $key => $value) { $arr[$key] = $value . 'bar'; } echo 'Simple array: '; var_dump(microtime(true) - $start_t); $start_t = microtime(true); foreach ($arr as $key => $value) { $iarr[$key] = $value . 'bar'; } echo 'ArrayIterator: '; var_dump(microtime(true) - $start_t); $start_t = microtime(true); foreach ($arr as $key => $value) { $sarr[$key] = $value . 'bar'; } echo 'SplFixedArray: '; var_dump(microtime(true) - $start_t);
Output for 7.1.0
Init: Simple array: float(0.00029206275939941) ArrayIterator: float(0.00034809112548828) SplFixedArray: float(0.00026392936706543) Foreach: Simple array: float(0.00078415870666504) ArrayIterator: float(0.00066399574279785) SplFixedArray: float(0.00063300132751465)
Output for 7.0.14
Init: Simple array: float(0.00037693977355957) ArrayIterator: float(0.0004580020904541) SplFixedArray: float(0.00035190582275391) Foreach: Simple array: float(0.00087904930114746) ArrayIterator: float(0.00081896781921387) SplFixedArray: float(0.00072407722473145)
Output for 7.0.6
Init: Simple array: float(0.00039505958557129) ArrayIterator: float(0.00043106079101562) SplFixedArray: float(0.00031113624572754) Foreach: Simple array: float(0.00069808959960938) ArrayIterator: float(0.00063300132751465) SplFixedArray: float(0.00066494941711426)
Output for 7.0.5
Init: Simple array: float(0.0004580020904541) ArrayIterator: float(0.0005030632019043) SplFixedArray: float(0.00036096572875977) Foreach: Simple array: float(0.00076413154602051) ArrayIterator: float(0.00068402290344238) SplFixedArray: float(0.00073099136352539)
Output for 7.0.4
Init: Simple array: float(0.00026106834411621) ArrayIterator: float(0.00032210350036621) SplFixedArray: float(0.00025296211242676) Foreach: Simple array: float(0.00076198577880859) ArrayIterator: float(0.00062704086303711) SplFixedArray: float(0.00049185752868652)
Output for 7.0.3
Init: Simple array: float(0.00019288063049316) ArrayIterator: float(0.00023794174194336) SplFixedArray: float(0.00018000602722168) Foreach: Simple array: float(0.00052618980407715) ArrayIterator: float(0.00040197372436523) SplFixedArray: float(0.00039005279541016)
Output for 7.0.2
Init: Simple array: float(0.00024199485778809) ArrayIterator: float(0.00027608871459961) SplFixedArray: float(0.00022387504577637) Foreach: Simple array: float(0.00063180923461914) ArrayIterator: float(0.00045394897460938) SplFixedArray: float(0.00040578842163086)
Output for 7.0.1
Init: Simple array: float(0.00024914741516113) ArrayIterator: float(0.00031018257141113) SplFixedArray: float(0.00023603439331055) Foreach: Simple array: float(0.00076389312744141) ArrayIterator: float(0.00054383277893066) SplFixedArray: float(0.00048995018005371)
Output for 7.0.0
Init: Simple array: float(0.0003049373626709) ArrayIterator: float(0.00034213066101074) SplFixedArray: float(0.00026798248291016) Foreach: Simple array: float(0.00084304809570312) ArrayIterator: float(0.00060200691223145) SplFixedArray: float(0.00054597854614258)
Output for 5.6.28
Init: Simple array: float(0.0025269985198975) ArrayIterator: float(0.0022861957550049) SplFixedArray: float(0.0013461112976074) Foreach: Simple array: float(0.0032198429107666) ArrayIterator: float(0.0019750595092773) SplFixedArray: float(0.0017318725585938)
Output for 5.6.21
Init: Simple array: float(0.0013048648834229) ArrayIterator: float(0.0012738704681396) SplFixedArray: float(0.00069499015808105) Foreach: Simple array: float(0.0018651485443115) ArrayIterator: float(0.0011379718780518) SplFixedArray: float(0.00097894668579102)
Output for 5.6.20
Init: Simple array: float(0.0022239685058594) ArrayIterator: float(0.0021548271179199) SplFixedArray: float(0.0011270046234131) Foreach: Simple array: float(0.0031909942626953) ArrayIterator: float(0.0018031597137451) SplFixedArray: float(0.0014731884002686)
Output for 5.6.19
Init: Simple array: float(0.0024521350860596) ArrayIterator: float(0.0022058486938477) SplFixedArray: float(0.0011351108551025) Foreach: Simple array: float(0.0031628608703613) ArrayIterator: float(0.0018730163574219) SplFixedArray: float(0.0015389919281006)
Output for 5.6.18
Init: Simple array: float(0.0013120174407959) ArrayIterator: float(0.0012719631195068) SplFixedArray: float(0.00067400932312012) Foreach: Simple array: float(0.0018570423126221) ArrayIterator: float(0.001121997833252) SplFixedArray: float(0.00094294548034668)
Output for 5.6.17
Init: Simple array: float(0.0017871856689453) ArrayIterator: float(0.0014278888702393) SplFixedArray: float(0.00083398818969727) Foreach: Simple array: float(0.0021548271179199) ArrayIterator: float(0.0013349056243896) SplFixedArray: float(0.0011250972747803)
Output for 5.6.16
Init: Simple array: float(0.0020790100097656) ArrayIterator: float(0.0019679069519043) SplFixedArray: float(0.0010380744934082) Foreach: Simple array: float(0.0027821063995361) ArrayIterator: float(0.0015640258789062) SplFixedArray: float(0.0013530254364014)
Output for 5.6.15
Init: Simple array: float(0.001600980758667) ArrayIterator: float(0.0015208721160889) SplFixedArray: float(0.00078487396240234) Foreach: Simple array: float(0.0021789073944092) ArrayIterator: float(0.0012550354003906) SplFixedArray: float(0.0011310577392578)
Output for 5.6.14
Init: Simple array: float(0.0018408298492432) ArrayIterator: float(0.0017991065979004) SplFixedArray: float(0.00091195106506348) Foreach: Simple array: float(0.0025339126586914) ArrayIterator: float(0.001392126083374) SplFixedArray: float(0.0012650489807129)
Output for 5.6.13
Init: Simple array: float(0.0021569728851318) ArrayIterator: float(0.0020570755004883) SplFixedArray: float(0.0010809898376465) Foreach: Simple array: float(0.0028791427612305) ArrayIterator: float(0.0016641616821289) SplFixedArray: float(0.0015110969543457)
Output for 5.6.12
Init: Simple array: float(0.0013220310211182) ArrayIterator: float(0.0012619495391846) SplFixedArray: float(0.00068283081054688) Foreach: Simple array: float(0.0019080638885498) ArrayIterator: float(0.0011169910430908) SplFixedArray: float(0.00094795227050781)
Output for 5.6.11
Init: Simple array: float(0.0024161338806152) ArrayIterator: float(0.0020408630371094) SplFixedArray: float(0.00105881690979) Foreach: Simple array: float(0.0028901100158691) ArrayIterator: float(0.0027620792388916) SplFixedArray: float(0.0016040802001953)
Output for 5.6.10
Init: Simple array: float(0.0020220279693604) ArrayIterator: float(0.0019378662109375) SplFixedArray: float(0.00099015235900879) Foreach: Simple array: float(0.0027329921722412) ArrayIterator: float(0.0015499591827393) SplFixedArray: float(0.001370906829834)
Output for 5.6.9
Init: Simple array: float(0.002345085144043) ArrayIterator: float(0.0022139549255371) SplFixedArray: float(0.0011451244354248) Foreach: Simple array: float(0.0030710697174072) ArrayIterator: float(0.0017781257629395) SplFixedArray: float(0.0016229152679443)
Output for 5.6.8
Init: Simple array: float(0.0019819736480713) ArrayIterator: float(0.0019011497497559) SplFixedArray: float(0.00096583366394043) Foreach: Simple array: float(0.0026078224182129) ArrayIterator: float(0.0014989376068115) SplFixedArray: float(0.0012800693511963)
Output for 5.6.7
Init: Simple array: float(0.0014941692352295) ArrayIterator: float(0.0013420581817627) SplFixedArray: float(0.00069785118103027) Foreach: Simple array: float(0.0018839836120605) ArrayIterator: float(0.0011179447174072) SplFixedArray: float(0.00095486640930176)
Output for 5.5.35
Init: Simple array: float(0.0011279582977295) ArrayIterator: float(0.0010790824890137) SplFixedArray: float(0.00056695938110352) Foreach: Simple array: float(0.0016088485717773) ArrayIterator: float(0.00091099739074707) SplFixedArray: float(0.0007779598236084)
Output for 5.5.34
Init: Simple array: float(0.0013039112091064) ArrayIterator: float(0.0012450218200684) SplFixedArray: float(0.00066614151000977) Foreach: Simple array: float(0.0018749237060547) ArrayIterator: float(0.0010850429534912) SplFixedArray: float(0.00090408325195312)
Output for 5.5.33
Init: Simple array: float(0.0013148784637451) ArrayIterator: float(0.0013229846954346) SplFixedArray: float(0.00070405006408691) Foreach: Simple array: float(0.0019681453704834) ArrayIterator: float(0.0011241436004639) SplFixedArray: float(0.00092506408691406)
Output for 5.5.32
Init: Simple array: float(0.0013718605041504) ArrayIterator: float(0.0012631416320801) SplFixedArray: float(0.00069093704223633) Foreach: Simple array: float(0.0019268989562988) ArrayIterator: float(0.0011200904846191) SplFixedArray: float(0.0009150505065918)
Output for 5.5.31
Init: Simple array: float(0.0013918876647949) ArrayIterator: float(0.0013179779052734) SplFixedArray: float(0.00070095062255859) Foreach: Simple array: float(0.0019798278808594) ArrayIterator: float(0.0011329650878906) SplFixedArray: float(0.00098800659179688)
Output for 5.5.30
Init: Simple array: float(0.001471996307373) ArrayIterator: float(0.0013871192932129) SplFixedArray: float(0.00071096420288086) Foreach: Simple array: float(0.0020580291748047) ArrayIterator: float(0.001121997833252) SplFixedArray: float(0.00097298622131348)
Output for 5.5.29
Init: Simple array: float(0.0013530254364014) ArrayIterator: float(0.0012738704681396) SplFixedArray: float(0.00070500373840332) Foreach: Simple array: float(0.002504825592041) ArrayIterator: float(0.0019040107727051) SplFixedArray: float(0.0016281604766846)
Output for 5.5.28
Init: Simple array: float(0.0022919178009033) ArrayIterator: float(0.0022170543670654) SplFixedArray: float(0.0011131763458252) Foreach: Simple array: float(0.0031230449676514) ArrayIterator: float(0.0017359256744385) SplFixedArray: float(0.0015029907226562)
Output for 5.5.27
Init: Simple array: float(0.0013699531555176) ArrayIterator: float(0.0013389587402344) SplFixedArray: float(0.00072002410888672) Foreach: Simple array: float(0.0019609928131104) ArrayIterator: float(0.0011091232299805) SplFixedArray: float(0.00094699859619141)
Output for 5.5.26
Init: Simple array: float(0.0019941329956055) ArrayIterator: float(0.0018918514251709) SplFixedArray: float(0.00099515914916992) Foreach: Simple array: float(0.0028250217437744) ArrayIterator: float(0.0015189647674561) SplFixedArray: float(0.0012578964233398)
Output for 5.5.25
Init: Simple array: float(0.0019960403442383) ArrayIterator: float(0.0019137859344482) SplFixedArray: float(0.0010578632354736) Foreach: Simple array: float(0.0027861595153809) ArrayIterator: float(0.0014920234680176) SplFixedArray: float(0.0012919902801514)
Output for 5.5.24
Init: Simple array: float(0.0023720264434814) ArrayIterator: float(0.0021331310272217) SplFixedArray: float(0.0011458396911621) Foreach: Simple array: float(0.0031359195709229) ArrayIterator: float(0.0016820430755615) SplFixedArray: float(0.0014219284057617)
Output for 5.4.45
Init: Simple array: float(0.0022819042205811) ArrayIterator: float(0.0020709037780762) SplFixedArray: float(0.001140832901001) Foreach: Simple array: float(0.0031189918518066) ArrayIterator: float(0.0018689632415771) SplFixedArray: float(0.0019490718841553)
Output for 5.4.44
Init: Simple array: float(0.0014541149139404) ArrayIterator: float(0.0013949871063232) SplFixedArray: float(0.00073003768920898) Foreach: Simple array: float(0.0020899772644043) ArrayIterator: float(0.0011720657348633) SplFixedArray: float(0.0012538433074951)
Output for 5.4.43
Init: Simple array: float(0.002223014831543) ArrayIterator: float(0.0021388530731201) SplFixedArray: float(0.0011029243469238) Foreach: Simple array: float(0.0030949115753174) ArrayIterator: float(0.0018179416656494) SplFixedArray: float(0.0019090175628662)
Output for 5.4.42
Init: Simple array: float(0.0021829605102539) ArrayIterator: float(0.0021278858184814) SplFixedArray: float(0.0010709762573242) Foreach: Simple array: float(0.0030739307403564) ArrayIterator: float(0.0017960071563721) SplFixedArray: float(0.0015890598297119)
Output for 5.4.41
Init: Simple array: float(0.0014579296112061) ArrayIterator: float(0.0014081001281738) SplFixedArray: float(0.00071406364440918) Foreach: Simple array: float(0.0020561218261719) ArrayIterator: float(0.001187801361084) SplFixedArray: float(0.0010199546813965)
Output for 5.4.40
Init: Simple array: float(0.0014529228210449) ArrayIterator: float(0.0013649463653564) SplFixedArray: float(0.00070285797119141) Foreach: Simple array: float(0.002004861831665) ArrayIterator: float(0.0011348724365234) SplFixedArray: float(0.0010159015655518)
Output for 5.4.39
Init: Simple array: float(0.0019440650939941) ArrayIterator: float(0.0018510818481445) SplFixedArray: float(0.00095009803771973) Foreach: Simple array: float(0.0027267932891846) ArrayIterator: float(0.0015549659729004) SplFixedArray: float(0.0014059543609619)
Output for 5.4.38
Init: Simple array: float(0.0017600059509277) ArrayIterator: float(0.0017030239105225) SplFixedArray: float(0.00084900856018066) Foreach: Simple array: float(0.0026810169219971) ArrayIterator: float(0.0014431476593018) SplFixedArray: float(0.0012359619140625)
Output for 5.4.37
Init: Simple array: float(0.0020029544830322) ArrayIterator: float(0.001924991607666) SplFixedArray: float(0.00099897384643555) Foreach: Simple array: float(0.0027961730957031) ArrayIterator: float(0.001662015914917) SplFixedArray: float(0.0014028549194336)
Output for 5.4.36
Init: Simple array: float(0.00148606300354) ArrayIterator: float(0.0014181137084961) SplFixedArray: float(0.00071215629577637) Foreach: Simple array: float(0.0020558834075928) ArrayIterator: float(0.0011370182037354) SplFixedArray: float(0.00098991394042969)
Output for 5.4.35
Init: Simple array: float(0.0021469593048096) ArrayIterator: float(0.001964807510376) SplFixedArray: float(0.0010690689086914) Foreach: Simple array: float(0.0024609565734863) ArrayIterator: float(0.0014481544494629) SplFixedArray: float(0.001291036605835)
Output for 5.4.34
Init: Simple array: float(0.0021069049835205) ArrayIterator: float(0.002011775970459) SplFixedArray: float(0.0010280609130859) Foreach: Simple array: float(0.0029201507568359) ArrayIterator: float(0.0017299652099609) SplFixedArray: float(0.0014851093292236)
Output for 5.4.32
Init: Simple array: float(0.0020349025726318) ArrayIterator: float(0.0019121170043945) SplFixedArray: float(0.0010509490966797) Foreach: Simple array: float(0.00301194190979) ArrayIterator: float(0.0017960071563721) SplFixedArray: float(0.0015151500701904)
Output for 5.4.31
Init: Simple array: float(0.0021171569824219) ArrayIterator: float(0.0018959045410156) SplFixedArray: float(0.0010430812835693) Foreach: Simple array: float(0.0029969215393066) ArrayIterator: float(0.0017919540405273) SplFixedArray: float(0.0015449523925781)
Output for 5.4.30
Init: Simple array: float(0.0022261142730713) ArrayIterator: float(0.0019948482513428) SplFixedArray: float(0.0010690689086914) Foreach: Simple array: float(0.0027799606323242) ArrayIterator: float(0.0016379356384277) SplFixedArray: float(0.0014297962188721)
Output for 5.4.29
Init: Simple array: float(0.0023159980773926) ArrayIterator: float(0.0022189617156982) SplFixedArray: float(0.001133918762207) Foreach: Simple array: float(0.0034220218658447) ArrayIterator: float(0.0018057823181152) SplFixedArray: float(0.0015950202941895)
Output for 5.4.28
Init: Simple array: float(0.0021359920501709) ArrayIterator: float(0.0020740032196045) SplFixedArray: float(0.0010600090026855) Foreach: Simple array: float(0.0031509399414062) ArrayIterator: float(0.0018649101257324) SplFixedArray: float(0.0015499591827393)
Output for 5.4.27
Init: Simple array: float(0.002316951751709) ArrayIterator: float(0.0021870136260986) SplFixedArray: float(0.0011448860168457) Foreach: Simple array: float(0.0032448768615723) ArrayIterator: float(0.0018630027770996) SplFixedArray: float(0.001619815826416)
Output for 5.4.26
Init: Simple array: float(0.0014688968658447) ArrayIterator: float(0.0014071464538574) SplFixedArray: float(0.00070405006408691) Foreach: Simple array: float(0.0020678043365479) ArrayIterator: float(0.0012011528015137) SplFixedArray: float(0.0010261535644531)
Output for 5.4.25
Init: Simple array: float(0.0018389225006104) ArrayIterator: float(0.0018010139465332) SplFixedArray: float(0.00090217590332031) Foreach: Simple array: float(0.0025959014892578) ArrayIterator: float(0.0014610290527344) SplFixedArray: float(0.0012722015380859)
Output for 5.4.24
Init: Simple array: float(0.0022969245910645) ArrayIterator: float(0.0022130012512207) SplFixedArray: float(0.0011320114135742) Foreach: Simple array: float(0.0031380653381348) ArrayIterator: float(0.0018529891967773) SplFixedArray: float(0.0015718936920166)
Output for 5.4.23
Init: Simple array: float(0.00177001953125) ArrayIterator: float(0.0017580986022949) SplFixedArray: float(0.00087714195251465) Foreach: Simple array: float(0.0025129318237305) ArrayIterator: float(0.001460075378418) SplFixedArray: float(0.0012850761413574)
Output for 5.4.22
Init: Simple array: float(0.0019888877868652) ArrayIterator: float(0.0019030570983887) SplFixedArray: float(0.00097203254699707) Foreach: Simple array: float(0.0027410984039307) ArrayIterator: float(0.0015518665313721) SplFixedArray: float(0.0013549327850342)
Output for 5.4.21
Init: Simple array: float(0.002295970916748) ArrayIterator: float(0.0021288394927979) SplFixedArray: float(0.0010840892791748) Foreach: Simple array: float(0.0031518936157227) ArrayIterator: float(0.0018551349639893) SplFixedArray: float(0.0015189647674561)
Output for 5.4.20
Init: Simple array: float(0.0024449825286865) ArrayIterator: float(0.0023510456085205) SplFixedArray: float(0.0012249946594238) Foreach: Simple array: float(0.0032689571380615) ArrayIterator: float(0.0018768310546875) SplFixedArray: float(0.0015950202941895)
Output for 5.4.19
Init: Simple array: float(0.0015871524810791) ArrayIterator: float(0.0015220642089844) SplFixedArray: float(0.00075411796569824) Foreach: Simple array: float(0.0021359920501709) ArrayIterator: float(0.0012798309326172) SplFixedArray: float(0.0011000633239746)
Output for 5.4.18
Init: Simple array: float(0.0014140605926514) ArrayIterator: float(0.0013630390167236) SplFixedArray: float(0.00069093704223633) Foreach: Simple array: float(0.0020058155059814) ArrayIterator: float(0.0011041164398193) SplFixedArray: float(0.00098705291748047)
Output for 5.4.17
Init: Simple array: float(0.0014851093292236) ArrayIterator: float(0.0013861656188965) SplFixedArray: float(0.00072598457336426) Foreach: Simple array: float(0.002018928527832) ArrayIterator: float(0.0011420249938965) SplFixedArray: float(0.00098896026611328)
Output for 5.4.16
Init: Simple array: float(0.0014388561248779) ArrayIterator: float(0.0013771057128906) SplFixedArray: float(0.00070595741271973) Foreach: Simple array: float(0.0019941329956055) ArrayIterator: float(0.0011520385742188) SplFixedArray: float(0.0010130405426025)
Output for 5.4.15
Init: Simple array: float(0.0018379688262939) ArrayIterator: float(0.0017740726470947) SplFixedArray: float(0.00089788436889648) Foreach: Simple array: float(0.0025999546051025) ArrayIterator: float(0.0014858245849609) SplFixedArray: float(0.0012979507446289)
Output for 5.4.14
Init: Simple array: float(0.0021040439605713) ArrayIterator: float(0.0018842220306396) SplFixedArray: float(0.00097179412841797) Foreach: Simple array: float(0.002777099609375) ArrayIterator: float(0.0016679763793945) SplFixedArray: float(0.0014340877532959)
Output for 5.4.13
Init: Simple array: float(0.0014998912811279) ArrayIterator: float(0.0014190673828125) SplFixedArray: float(0.00071310997009277) Foreach: Simple array: float(0.0021281242370605) ArrayIterator: float(0.0012240409851074) SplFixedArray: float(0.0010669231414795)
Output for 5.4.12
Init: Simple array: float(0.0021958351135254) ArrayIterator: float(0.0019850730895996) SplFixedArray: float(0.0010919570922852) Foreach: Simple array: float(0.0029091835021973) ArrayIterator: float(0.0018188953399658) SplFixedArray: float(0.0018341541290283)
Output for 5.4.11
Init: Simple array: float(0.0014739036560059) ArrayIterator: float(0.0014190673828125) SplFixedArray: float(0.00072693824768066) Foreach: Simple array: float(0.0020639896392822) ArrayIterator: float(0.0011520385742188) SplFixedArray: float(0.0010311603546143)
Output for 5.4.10
Init: Simple array: float(0.0021140575408936) ArrayIterator: float(0.0019991397857666) SplFixedArray: float(0.0010159015655518) Foreach: Simple array: float(0.0028600692749023) ArrayIterator: float(0.0017008781433105) SplFixedArray: float(0.0014729499816895)
Output for 5.4.9
Init: Simple array: float(0.0022540092468262) ArrayIterator: float(0.0022358894348145) SplFixedArray: float(0.001133918762207) Foreach: Simple array: float(0.0032351016998291) ArrayIterator: float(0.0018157958984375) SplFixedArray: float(0.0015730857849121)
Output for 5.4.8
Init: Simple array: float(0.0019800662994385) ArrayIterator: float(0.0019629001617432) SplFixedArray: float(0.0010831356048584) Foreach: Simple array: float(0.0033900737762451) ArrayIterator: float(0.0020349025726318) SplFixedArray: float(0.0014050006866455)
Output for 5.4.7
Init: Simple array: float(0.0023589134216309) ArrayIterator: float(0.0021910667419434) SplFixedArray: float(0.0011358261108398) Foreach: Simple array: float(0.0032339096069336) ArrayIterator: float(0.001884937286377) SplFixedArray: float(0.0016019344329834)
Output for 5.4.6
Init: Simple array: float(0.0023248195648193) ArrayIterator: float(0.0022239685058594) SplFixedArray: float(0.0011188983917236) Foreach: Simple array: float(0.0032351016998291) ArrayIterator: float(0.001849889755249) SplFixedArray: float(0.0015888214111328)
Output for 5.4.5
Init: Simple array: float(0.0014669895172119) ArrayIterator: float(0.0013918876647949) SplFixedArray: float(0.00073099136352539) Foreach: Simple array: float(0.0020489692687988) ArrayIterator: float(0.0011718273162842) SplFixedArray: float(0.0010008811950684)
Output for 5.4.4
Init: Simple array: float(0.0020780563354492) ArrayIterator: float(0.0019140243530273) SplFixedArray: float(0.00097799301147461) Foreach: Simple array: float(0.0038249492645264) ArrayIterator: float(0.0016438961029053) SplFixedArray: float(0.0014150142669678)
Output for 5.4.3
Init: Simple array: float(0.0019299983978271) ArrayIterator: float(0.001823902130127) SplFixedArray: float(0.00095200538635254) Foreach: Simple array: float(0.0026869773864746) ArrayIterator: float(0.0015950202941895) SplFixedArray: float(0.001331090927124)
Output for 5.4.2
Init: Simple array: float(0.0017189979553223) ArrayIterator: float(0.0016119480133057) SplFixedArray: float(0.0008389949798584) Foreach: Simple array: float(0.0024430751800537) ArrayIterator: float(0.0013790130615234) SplFixedArray: float(0.0011889934539795)
Output for 5.4.1
Init: Simple array: float(0.0021748542785645) ArrayIterator: float(0.0021040439605713) SplFixedArray: float(0.0010848045349121) Foreach: Simple array: float(0.0029780864715576) ArrayIterator: float(0.0017380714416504) SplFixedArray: float(0.0014989376068115)
Output for 5.4.0
Init: Simple array: float(0.0024371147155762) ArrayIterator: float(0.0022850036621094) SplFixedArray: float(0.0011160373687744) Foreach: Simple array: float(0.0031321048736572) ArrayIterator: float(0.0018539428710938) SplFixedArray: float(0.0015931129455566)
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/aJVXv on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/aJVXv on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/aJVXv on line 5
Process exited with code 255.