3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ts = microtime(true); for($i = 1 ; $i <= 10000; $i++): $array[] = (substr_compare('RouterController', 'Controller', -10)); endfor; $te = microtime(true); echo '<br>' . number_format(($te - $ts), 50, ',', ' '); $ts = microtime(true); for($i = 1 ; $i <= 10000; $i++): $array[] = (substr('RouterController', -10) == 'Controller'); endfor; $te = microtime(true); echo '<br>' . number_format(($te - $ts), 50, ',', ' ');
Output for 7.1.0
<br>0,00188302993774414062500000000000000000000000000000<br>0,00117301940917968750000000000000000000000000000000
Output for 7.0.14
<br>0,00189089775085449218750000000000000000000000000000<br>0,00100684165954589843750000000000000000000000000000
Output for 7.0.6
<br>0,00266814231872558593750000000000000000000000000000<br>0,00175905227661132812500000000000000000000000000000
Output for 7.0.5
<br>0,00128412246704101562500000000000000000000000000000<br>0,00095009803771972656250000000000000000000000000000
Output for 7.0.4
<br>0,00123500823974609375000000000000000000000000000000<br>0,00087213516235351562500000000000000000000000000000
Output for 7.0.3
<br>0,00077009201049804687500000000000000000000000000000<br>0,00055599212646484375000000000000000000000000000000
Output for 7.0.2
<br>0,00079584121704101562500000000000000000000000000000<br>0,00058293342590332031250000000000000000000000000000
Output for 7.0.1
<br>0,00123810768127441406250000000000000000000000000000<br>0,00091814994812011718750000000000000000000000000000
Output for 7.0.0
<br>0,00120782852172851562500000000000000000000000000000<br>0,00087690353393554687500000000000000000000000000000
Output for 5.6.28
<br>0,00490498542785644531250000000000000000000000000000<br>0,00514602661132812500000000000000000000000000000000
Output for 5.6.21
<br>0,00437283515930175781250000000000000000000000000000<br>0,00466609001159667968750000000000000000000000000000
Output for 5.6.20
<br>0,00413203239440917968750000000000000000000000000000<br>0,00409698486328125000000000000000000000000000000000
Output for 5.6.19
<br>0,00310397148132324218750000000000000000000000000000<br>0,00315809249877929687500000000000000000000000000000
Output for 5.6.18
<br>0,00328612327575683593750000000000000000000000000000<br>0,00338697433471679687500000000000000000000000000000
Output for 5.6.17
<br>0,00400495529174804687500000000000000000000000000000<br>0,00463795661926269531250000000000000000000000000000
Output for 5.6.16
<br>0,00406599044799804687500000000000000000000000000000<br>0,00418686866760253906250000000000000000000000000000
Output for 5.6.15
<br>0,00412797927856445312500000000000000000000000000000<br>0,00408005714416503906250000000000000000000000000000
Output for 5.6.14
<br>0,00422692298889160156250000000000000000000000000000<br>0,00429105758666992187500000000000000000000000000000
Output for 5.6.13
<br>0,00266218185424804687500000000000000000000000000000<br>0,00278401374816894531250000000000000000000000000000
Output for 5.6.12
<br>0,00430893898010253906250000000000000000000000000000<br>0,00425410270690917968750000000000000000000000000000
Output for 5.6.11
<br>0,00404000282287597656250000000000000000000000000000<br>0,00404882431030273437500000000000000000000000000000
Output for 5.6.10
<br>0,00377488136291503906250000000000000000000000000000<br>0,00378394126892089843750000000000000000000000000000
Output for 5.6.9
<br>0,00303387641906738281250000000000000000000000000000<br>0,00316119194030761718750000000000000000000000000000
Output for 5.6.8
<br>0,00447201728820800781250000000000000000000000000000<br>0,00457882881164550781250000000000000000000000000000
Output for 5.5.35
<br>0,00217700004577636718750000000000000000000000000000<br>0,00222706794738769531250000000000000000000000000000
Output for 5.5.34
<br>0,00282216072082519531250000000000000000000000000000<br>0,00278615951538085937500000000000000000000000000000
Output for 5.5.33
<br>0,00374603271484375000000000000000000000000000000000<br>0,00403594970703125000000000000000000000000000000000
Output for 5.5.32
<br>0,00270104408264160156250000000000000000000000000000<br>0,00274109840393066406250000000000000000000000000000
Output for 5.5.31
<br>0,00393986701965332031250000000000000000000000000000<br>0,00397491455078125000000000000000000000000000000000
Output for 5.5.30
<br>0,00401401519775390625000000000000000000000000000000<br>0,00407195091247558593750000000000000000000000000000
Output for 5.5.29
<br>0,00310587882995605468750000000000000000000000000000<br>0,00319600105285644531250000000000000000000000000000
Output for 5.5.28
<br>0,00303220748901367187500000000000000000000000000000<br>0,00308394432067871093750000000000000000000000000000
Output for 5.5.27
<br>0,00387191772460937500000000000000000000000000000000<br>0,00390315055847167968750000000000000000000000000000
Output for 5.5.26
<br>0,00416398048400878906250000000000000000000000000000<br>0,00417494773864746093750000000000000000000000000000
Output for 5.5.25
<br>0,00408601760864257812500000000000000000000000000000<br>0,00347685813903808593750000000000000000000000000000
Output for 5.5.24
<br>0,00380587577819824218750000000000000000000000000000<br>0,00384807586669921875000000000000000000000000000000
Output for 5.4.45
<br>0,00392413139343261718750000000000000000000000000000<br>0,00470185279846191406250000000000000000000000000000
Output for 5.4.44
<br>0,00267791748046875000000000000000000000000000000000<br>0,00315284729003906250000000000000000000000000000000
Output for 5.4.43
<br>0,00926709175109863281250000000000000000000000000000<br>0,01435208320617675781250000000000000000000000000000
Output for 5.4.42
<br>0,00788688659667968750000000000000000000000000000000<br>0,00462198257446289062500000000000000000000000000000
Output for 5.4.41
<br>0,00244593620300292968750000000000000000000000000000<br>0,00423502922058105468750000000000000000000000000000
Output for 5.4.40
<br>0,00390291213989257812500000000000000000000000000000<br>0,00270104408264160156250000000000000000000000000000
Output for 5.4.39
<br>0,00456786155700683593750000000000000000000000000000<br>0,00469398498535156250000000000000000000000000000000
Output for 5.4.38
<br>0,00421190261840820312500000000000000000000000000000<br>0,00485897064208984375000000000000000000000000000000
Output for 5.4.37
<br>0,00473594665527343750000000000000000000000000000000<br>0,00484395027160644531250000000000000000000000000000
Output for 5.4.36
<br>0,00497889518737792968750000000000000000000000000000<br>0,00431704521179199218750000000000000000000000000000
Output for 5.4.35
<br>0,00476408004760742187500000000000000000000000000000<br>0,00446891784667968750000000000000000000000000000000
Output for 5.4.34
<br>0,00439620018005371093750000000000000000000000000000<br>0,00453209877014160156250000000000000000000000000000
Output for 5.4.32
<br>0,00296092033386230468750000000000000000000000000000<br>0,00304293632507324218750000000000000000000000000000
Output for 5.4.31
<br>0,00289797782897949218750000000000000000000000000000<br>0,00290608406066894531250000000000000000000000000000
Output for 5.4.30
<br>0,00320410728454589843750000000000000000000000000000<br>0,00327897071838378906250000000000000000000000000000
Output for 5.4.29
<br>0,00311398506164550781250000000000000000000000000000<br>0,00323009490966796875000000000000000000000000000000
Output for 5.4.28
<br>0,00310111045837402343750000000000000000000000000000<br>0,00361299514770507812500000000000000000000000000000
Output for 5.4.27
<br>0,00310707092285156250000000000000000000000000000000<br>0,00296401977539062500000000000000000000000000000000
Output for 5.4.26
<br>0,00382804870605468750000000000000000000000000000000<br>0,00332808494567871093750000000000000000000000000000
Output for 5.4.25
<br>0,00324201583862304687500000000000000000000000000000<br>0,00383710861206054687500000000000000000000000000000
Output for 5.4.24
<br>0,00349092483520507812500000000000000000000000000000<br>0,00320005416870117187500000000000000000000000000000
Output for 5.4.23
<br>0,01201200485229492187500000000000000000000000000000<br>0,00326681137084960937500000000000000000000000000000
Output for 5.4.22
<br>0,00340104103088378906250000000000000000000000000000<br>0,00334692001342773437500000000000000000000000000000
Output for 5.4.21
<br>0,00331807136535644531250000000000000000000000000000<br>0,00328993797302246093750000000000000000000000000000
Output for 5.4.20
<br>0,00329804420471191406250000000000000000000000000000<br>0,00364708900451660156250000000000000000000000000000
Output for 5.4.19
<br>0,00322699546813964843750000000000000000000000000000<br>0,00320315361022949218750000000000000000000000000000
Output for 5.4.18
<br>0,00396609306335449218750000000000000000000000000000<br>0,00337696075439453125000000000000000000000000000000
Output for 5.4.17
<br>0,00509190559387207031250000000000000000000000000000<br>0,00618386268615722656250000000000000000000000000000
Output for 5.4.16
<br>0,00550007820129394531250000000000000000000000000000<br>0,00567197799682617187500000000000000000000000000000
Output for 5.4.15
<br>0,00529813766479492187500000000000000000000000000000<br>0,00548505783081054687500000000000000000000000000000
Output for 5.4.14
<br>0,00548791885375976562500000000000000000000000000000<br>0,00605797767639160156250000000000000000000000000000
Output for 5.4.13
<br>0,00555706024169921875000000000000000000000000000000<br>0,00557708740234375000000000000000000000000000000000
Output for 5.4.12
<br>0,00622487068176269531250000000000000000000000000000<br>0,00591397285461425781250000000000000000000000000000
Output for 5.4.11
<br>0,00384902954101562500000000000000000000000000000000<br>0,00318002700805664062500000000000000000000000000000
Output for 5.4.10
<br>0,01286578178405761718750000000000000000000000000000<br>0,00575494766235351562500000000000000000000000000000
Output for 5.4.9
<br>0,00456786155700683593750000000000000000000000000000<br>0,00406813621520996093750000000000000000000000000000
Output for 5.4.8
<br>0,00407719612121582031250000000000000000000000000000<br>0,00360512733459472656250000000000000000000000000000
Output for 5.4.7
<br>0,00427794456481933593750000000000000000000000000000<br>0,00432682037353515625000000000000000000000000000000
Output for 5.4.6
<br>0,00383615493774414062500000000000000000000000000000<br>0,00351595878601074218750000000000000000000000000000
Output for 5.4.5
<br>0,00367593765258789062500000000000000000000000000000<br>0,00336194038391113281250000000000000000000000000000
Output for 5.4.4
<br>0,00338196754455566406250000000000000000000000000000<br>0,00314593315124511718750000000000000000000000000000
Output for 5.4.3
<br>0,00344395637512207031250000000000000000000000000000<br>0,00320911407470703125000000000000000000000000000000
Output for 5.4.2
<br>0,00455999374389648437500000000000000000000000000000<br>0,00338983535766601562500000000000000000000000000000
Output for 5.4.1
<br>0,00441598892211914062500000000000000000000000000000<br>0,00362801551818847656250000000000000000000000000000
Output for 5.4.0
<br>0,00384998321533203125000000000000000000000000000000<br>0,00364089012145996093750000000000000000000000000000
Output for 5.3.29
<br>0,00351881980895996093750000000000000000000000000000<br>0,00391316413879394531250000000000000000000000000000
Output for 5.3.28
<br>0,00433516502380371093750000000000000000000000000000<br>0,00413513183593750000000000000000000000000000000000
Output for 5.3.27
<br>0,00397086143493652343750000000000000000000000000000<br>0,00353312492370605468750000000000000000000000000000
Output for 5.3.26
<br>0,00379991531372070312500000000000000000000000000000<br>0,00359892845153808593750000000000000000000000000000
Output for 5.3.25
<br>0,00473308563232421875000000000000000000000000000000<br>0,00486397743225097656250000000000000000000000000000
Output for 5.3.24
<br>0,00402712821960449218750000000000000000000000000000<br>0,00348806381225585937500000000000000000000000000000
Output for 5.3.23
<br>0,00476002693176269531250000000000000000000000000000<br>0,00484991073608398437500000000000000000000000000000
Output for 5.3.22
<br>0,00451397895812988281250000000000000000000000000000<br>0,00456905364990234375000000000000000000000000000000
Output for 5.3.21
<br>0,00452899932861328125000000000000000000000000000000<br>0,00505399703979492187500000000000000000000000000000
Output for 5.3.20
<br>0,00427603721618652343750000000000000000000000000000<br>0,00383710861206054687500000000000000000000000000000
Output for 5.3.19
<br>0,00385093688964843750000000000000000000000000000000<br>0,00357699394226074218750000000000000000000000000000
Output for 5.3.18
<br>0,00465297698974609375000000000000000000000000000000<br>0,00394201278686523437500000000000000000000000000000
Output for 5.3.17
<br>0,00395512580871582031250000000000000000000000000000<br>0,00354599952697753906250000000000000000000000000000
Output for 5.3.16
<br>0,00415182113647460937500000000000000000000000000000<br>0,00366806983947753906250000000000000000000000000000
Output for 5.3.15
<br>0,00453495979309082031250000000000000000000000000000<br>0,00367116928100585937500000000000000000000000000000
Output for 5.3.14
<br>0,00434398651123046875000000000000000000000000000000<br>0,00382804870605468750000000000000000000000000000000
Output for 5.3.13
<br>0,00400304794311523437500000000000000000000000000000<br>0,00362396240234375000000000000000000000000000000000
Output for 5.3.12
<br>0,00472497940063476562500000000000000000000000000000<br>0,00392794609069824218750000000000000000000000000000
Output for 5.3.11
<br>0,00416994094848632812500000000000000000000000000000<br>0,00421190261840820312500000000000000000000000000000
Output for 5.3.10
<br>0,00646996498107910156250000000000000000000000000000<br>0,00642299652099609375000000000000000000000000000000
Output for 5.3.9
<br>0,00658512115478515625000000000000000000000000000000<br>0,00552606582641601562500000000000000000000000000000
Output for 5.3.8
<br>0,00403285026550292968750000000000000000000000000000<br>0,00374698638916015625000000000000000000000000000000
Output for 5.3.7
<br>0,00656700134277343750000000000000000000000000000000<br>0,00631880760192871093750000000000000000000000000000
Output for 5.3.6
<br>0,00552201271057128906250000000000000000000000000000<br>0,00561714172363281250000000000000000000000000000000
Output for 5.3.5
<br>0,00410890579223632812500000000000000000000000000000<br>0,00385999679565429687500000000000000000000000000000
Output for 5.3.4
<br>0,00416898727416992187500000000000000000000000000000<br>0,00389504432678222656250000000000000000000000000000
Output for 5.3.3
<br>0,00486493110656738281250000000000000000000000000000<br>0,00492310523986816406250000000000000000000000000000
Output for 5.3.2
<br>0,00471591949462890625000000000000000000000000000000<br>0,00386500358581542968750000000000000000000000000000
Output for 5.3.1
<br>0,00425696372985839843750000000000000000000000000000<br>0,00475096702575683593750000000000000000000000000000
Output for 5.3.0
<br>0,00617790222167968750000000000000000000000000000000<br>0,00548505783081054687500000000000000000000000000000
Output for 5.2.17
<br>0,00502490997314453125000000000000000000000000000000<br>0,00713396072387695312500000000000000000000000000000
Output for 5.2.16
<br>0,00499200820922851562500000000000000000000000000000<br>0,00395894050598144531250000000000000000000000000000
Output for 5.2.15
<br>0,00478577613830566406250000000000000000000000000000<br>0,00659990310668945312500000000000000000000000000000
Output for 5.2.14
<br>0,00495600700378417968750000000000000000000000000000<br>0,00582408905029296875000000000000000000000000000000
Output for 5.2.13
<br>0,00468707084655761718750000000000000000000000000000<br>0,00407385826110839843750000000000000000000000000000
Output for 5.2.12
<br>0,00755786895751953211736173798840354720596224069595<br>0,00714206695556640625000000000000000000000000000000
Output for 5.2.11
<br>0,00803303718566894531250000000000000000000000000000<br>0,00689792633056640625000000000000000000000000000000
Output for 5.2.10
<br>0,00752902030944824305486173798840354720596224069595<br>0,00651979446411132812500000000000000000000000000000
Output for 5.2.9
<br>0,00742006301879882725763826201159645279403775930405<br>0,00650906562805175781250000000000000000000000000000
Output for 5.2.8
<br>0,00551676750183105468750000000000000000000000000000<br>0,00417280197143554687500000000000000000000000000000
Output for 5.2.7
<br>0,00596499443054199218750000000000000000000000000000<br>0,00438690185546875000000000000000000000000000000000
Output for 5.2.6
<br>0,00580906867980957031250000000000000000000000000000<br>0,00454688072204589843750000000000000000000000000000
Output for 5.2.5
<br>0,00603795051574707031250000000000000000000000000000<br>0,00481200218200683593750000000000000000000000000000
Output for 5.2.4
<br>0,00793313980102539062500000000000000000000000000000<br>0,00700306892395019531250000000000000000000000000000
Output for 5.2.3
<br>0,00517916679382324218750000000000000000000000000000<br>0,00447487831115722656250000000000000000000000000000
Output for 5.2.2
<br>0,00634908676147460937500000000000000000000000000000<br>0,00628685951232910156250000000000000000000000000000
Output for 5.2.1
<br>0,00567102432250976562500000000000000000000000000000<br>0,00416707992553710937500000000000000000000000000000
Output for 5.2.0
<br>0,00573992729187011718750000000000000000000000000000<br>0,00588703155517578125000000000000000000000000000000
Output for 5.1.6
<br>0,00674819946289062500000000000000000000000000000000<br>0,00606989860534667968750000000000000000000000000000
Output for 5.1.5
<br>0,00915694236755371093750000000000000000000000000000<br>0,00924611091613769531250000000000000000000000000000
Output for 5.1.4
<br>0,01069092750549316406250000000000000000000000000000<br>0,01268196105957031250000000000000000000000000000000
Output for 5.1.3
<br>0,00618886947631835937500000000000000000000000000000<br>0,00586390495300292968750000000000000000000000000000
Output for 5.1.2
<br>0,00665688514709472656250000000000000000000000000000<br>0,00552582740783691406250000000000000000000000000000
Output for 5.1.1
<br>0,00626111030578613281250000000000000000000000000000<br>0,00549316406250000000000000000000000000000000000000
Output for 5.1.0
<br>0,00557398796081542968750000000000000000000000000000<br>0,00464606285095214843750000000000000000000000000000
Output for 5.0.5
<br>0,00730681419372558593750000000000000000000000000000<br>0,00647091865539550781250000000000000000000000000000
Output for 5.0.4
<br>0,00714302062988281250000000000000000000000000000000<br>0,01094293594360351562500000000000000000000000000000
Output for 5.0.3
<br>0,00650906562805175781250000000000000000000000000000<br>0,00678205490112304687500000000000000000000000000000
Output for 5.0.2
<br>0,01051807403564453125000000000000000000000000000000<br>0,01039409637451171875000000000000000000000000000000
Output for 5.0.1
<br>0,00967216491699218750000000000000000000000000000000<br>0,00747585296630859375000000000000000000000000000000
Output for 5.0.0
<br>0,00776004791259765625000000000000000000000000000000<br>0,01040220260620117187500000000000000000000000000000
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: substr_compare() in /in/rcsaX on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: substr_compare() in /in/rcsaX on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: substr_compare() in /in/rcsaX on line 6