3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time=microtime(1); for ($i=0;$i<1000000;$i++) new stdClass; echo microtime(1)-$time,': new stdClass'."\n"; $time=microtime(1); for ($i=0;$i<1000000;$i++) (object)[]; echo microtime(1)-$time,': (object)[]'."\n";
Output for 7.1.0
-0.021941900253296: new stdClass -0.057751178741455: (object)[]
Output for 7.0.14
0.078630924224854: new stdClass 0.06372594833374: (object)[]
Output for 7.0.10
0.062611818313599: new stdClass 0.051604032516479: (object)[]
Output for 7.0.9
0.061406135559082: new stdClass 0.053498029708862: (object)[]
Output for 7.0.8
0.067721128463745: new stdClass 0.060564994812012: (object)[]
Output for 7.0.7
0.065217971801758: new stdClass 0.057083129882812: (object)[]
Output for 7.0.6
0.05455207824707: new stdClass 0.053573846817017: (object)[]
Output for 7.0.5
0.072638034820557: new stdClass 0.060175895690918: (object)[]
Output for 7.0.4
0.056216955184937: new stdClass 0.053628921508789: (object)[]
Output for 7.0.3
0.071137189865112: new stdClass 0.055335998535156: (object)[]
Output for 7.0.2
0.074173927307129: new stdClass 0.061161994934082: (object)[]
Output for 7.0.1
0.05320405960083: new stdClass 0.052341938018799: (object)[]
Output for 7.0.0
0.064797163009644: new stdClass 0.056120872497559: (object)[]
Output for 5.6.28
-0.038082838058472: new stdClass -0.11279511451721: (object)[]
Output for 5.6.25
0.094748020172119: new stdClass 0.085672855377197: (object)[]
Output for 5.6.24
0.10542488098145: new stdClass 0.085690021514893: (object)[]
Output for 5.6.23
0.10647201538086: new stdClass 0.088701009750366: (object)[]
Output for 5.6.22
0.079757928848267: new stdClass 0.083991050720215: (object)[]
Output for 5.6.21
0.082237005233765: new stdClass 0.088507890701294: (object)[]
Output for 5.6.20
0.10056400299072: new stdClass 0.088709115982056: (object)[]
Output for 5.6.19
0.096230030059814: new stdClass 0.093935966491699: (object)[]
Output for 5.6.18
0.098371028900146: new stdClass 0.086833953857422: (object)[]
Output for 5.6.17
0.090162038803101: new stdClass 0.090593814849854: (object)[]
Output for 5.6.16
0.092037916183472: new stdClass 0.087664842605591: (object)[]
Output for 5.6.15
0.10793495178223: new stdClass 0.1133439540863: (object)[]
Output for 5.6.14
0.097440958023071: new stdClass 0.093277931213379: (object)[]
Output for 5.6.13
0.11874914169312: new stdClass 0.092361927032471: (object)[]
Output for 5.6.12
0.14579105377197: new stdClass 0.089075088500977: (object)[]
Output for 5.6.11
0.098391056060791: new stdClass 0.089285850524902: (object)[]
Output for 5.6.10
0.10219693183899: new stdClass 0.08882999420166: (object)[]
Output for 5.6.9
0.087584972381592: new stdClass 0.087707996368408: (object)[]
Output for 5.6.8
0.093482971191406: new stdClass 0.093601942062378: (object)[]
Output for 5.6.7
0.080700159072876: new stdClass 0.094616889953613: (object)[]
Output for 5.6.6
0.097721099853516: new stdClass 0.088778018951416: (object)[]
Output for 5.6.5
0.11229515075684: new stdClass 0.091964960098267: (object)[]
Output for 5.6.4
0.11461687088013: new stdClass 0.093204021453857: (object)[]
Output for 5.6.3
0.09400200843811: new stdClass 0.088082075119019: (object)[]
Output for 5.6.2
0.089580059051514: new stdClass 0.10423493385315: (object)[]
Output for 5.6.1
0.093394994735718: new stdClass 0.08730411529541: (object)[]
Output for 5.6.0
0.082944869995117: new stdClass 0.086865901947021: (object)[]
Output for 5.5.38
0.085587978363037: new stdClass 0.085354804992676: (object)[]
Output for 5.5.37
0.099388122558594: new stdClass 0.088231801986694: (object)[]
Output for 5.5.36
0.088538885116577: new stdClass 0.09001898765564: (object)[]
Output for 5.5.35
0.11092495918274: new stdClass 0.087404012680054: (object)[]
Output for 5.5.34
0.11378717422485: new stdClass 0.092516183853149: (object)[]
Output for 5.5.33
0.096979856491089: new stdClass 0.086523056030273: (object)[]
Output for 5.5.32
0.10028505325317: new stdClass 0.092229127883911: (object)[]
Output for 5.5.31
0.098258018493652: new stdClass 0.087467908859253: (object)[]
Output for 5.5.30
0.084248065948486: new stdClass 0.087422847747803: (object)[]
Output for 5.5.29
0.10346388816833: new stdClass 0.088515043258667: (object)[]
Output for 5.5.28
0.11446309089661: new stdClass 0.092628955841064: (object)[]
Output for 5.5.27
0.10079598426819: new stdClass 0.08896017074585: (object)[]
Output for 5.5.26
0.088119029998779: new stdClass 0.089983940124512: (object)[]
Output for 5.5.25
0.082978010177612: new stdClass 0.088951826095581: (object)[]
Output for 5.5.24
0.08417010307312: new stdClass 0.089839935302734: (object)[]
Output for 5.5.23
0.10172486305237: new stdClass 0.090476036071777: (object)[]
Output for 5.5.22
0.10326600074768: new stdClass 0.087828874588013: (object)[]
Output for 5.5.21
0.085145950317383: new stdClass 0.089004039764404: (object)[]
Output for 5.5.20
0.083375930786133: new stdClass 0.084442853927612: (object)[]
Output for 5.5.19
0.087412118911743: new stdClass 0.084456920623779: (object)[]
Output for 5.5.18
0.098536968231201: new stdClass 0.089818000793457: (object)[]
Output for 5.5.16
0.091073989868164: new stdClass 0.089127063751221: (object)[]
Output for 5.5.15
0.09263801574707: new stdClass 0.08918285369873: (object)[]
Output for 5.5.14
0.093398809432983: new stdClass 0.088293075561523: (object)[]
Output for 5.5.13
0.099679946899414: new stdClass 0.079906940460205: (object)[]
Output for 5.5.12
0.11973786354065: new stdClass 0.10059285163879: (object)[]
Output for 5.5.11
0.10733985900879: new stdClass 0.090882062911987: (object)[]
Output for 5.5.10
0.10722994804382: new stdClass 0.092841863632202: (object)[]
Output for 5.5.9
0.11252403259277: new stdClass 0.092717885971069: (object)[]
Output for 5.5.8
0.11746215820312: new stdClass 0.11179614067078: (object)[]
Output for 5.5.7
0.10917997360229: new stdClass 0.084827184677124: (object)[]
Output for 5.5.6
0.11076784133911: new stdClass 0.10029292106628: (object)[]
Output for 5.5.5
0.1013720035553: new stdClass 0.0885910987854: (object)[]
Output for 5.5.4
0.1032919883728: new stdClass 0.088079214096069: (object)[]
Output for 5.5.3
0.084790945053101: new stdClass 0.093934059143066: (object)[]
Output for 5.5.2
0.084208965301514: new stdClass 0.088457107543945: (object)[]
Output for 5.5.1
0.082556009292603: new stdClass 0.088679790496826: (object)[]
Output for 5.5.0
0.082587003707886: new stdClass 0.075620889663696: (object)[]
Output for 5.4.45
0.10583305358887: new stdClass 0.093242168426514: (object)[]
Output for 5.4.44
0.096457004547119: new stdClass 0.086215019226074: (object)[]
Output for 5.4.43
0.11275815963745: new stdClass 0.092014074325562: (object)[]
Output for 5.4.42
0.091226100921631: new stdClass 0.084770917892456: (object)[]
Output for 5.4.41
0.091962814331055: new stdClass 0.092259883880615: (object)[]
Output for 5.4.40
0.092674016952515: new stdClass 0.088192939758301: (object)[]
Output for 5.4.39
0.08635401725769: new stdClass 0.083992958068848: (object)[]
Output for 5.4.38
0.098920106887817: new stdClass 0.088466167449951: (object)[]
Output for 5.4.37
0.11116313934326: new stdClass 0.086358070373535: (object)[]
Output for 5.4.36
0.11289596557617: new stdClass 0.093358039855957: (object)[]
Output for 5.4.35
0.1111319065094: new stdClass 0.086349010467529: (object)[]
Output for 5.4.34
0.090553998947144: new stdClass 0.092190027236938: (object)[]
Output for 5.4.32
0.091325044631958: new stdClass 0.086189031600952: (object)[]
Output for 5.4.31
0.11099314689636: new stdClass 0.089529991149902: (object)[]
Output for 5.4.30
0.099621057510376: new stdClass 0.087399959564209: (object)[]
Output for 5.4.29
0.098640918731689: new stdClass 0.10033082962036: (object)[]
Output for 5.4.28
0.095844030380249: new stdClass 0.089093923568726: (object)[]
Output for 5.4.27
0.12177801132202: new stdClass 0.096374034881592: (object)[]
Output for 5.4.26
0.094751119613647: new stdClass 0.087260007858276: (object)[]
Output for 5.4.25
0.090740919113159: new stdClass 0.088878870010376: (object)[]
Output for 5.4.24
0.093341112136841: new stdClass 0.092678785324097: (object)[]
Output for 5.4.23
0.10981798171997: new stdClass 0.087896108627319: (object)[]
Output for 5.4.22
0.12225198745728: new stdClass 0.11974406242371: (object)[]
Output for 5.4.21
0.10576009750366: new stdClass 0.091793060302734: (object)[]
Output for 5.4.20
0.093034982681274: new stdClass 0.11840200424194: (object)[]
Output for 5.4.19
0.091880798339844: new stdClass 0.086781978607178: (object)[]
Output for 5.4.18
0.079107046127319: new stdClass 0.087690114974976: (object)[]
Output for 5.4.17
0.07922101020813: new stdClass 0.10567188262939: (object)[]
Output for 5.4.16
0.076421976089478: new stdClass 0.07848596572876: (object)[]
Output for 5.4.15
0.079181909561157: new stdClass 0.074939012527466: (object)[]
Output for 5.4.14
0.065664052963257: new stdClass 0.071522951126099: (object)[]
Output for 5.4.13
0.089996814727783: new stdClass 0.097490787506104: (object)[]
Output for 5.4.12
0.087228059768677: new stdClass 0.089715003967285: (object)[]
Output for 5.4.11
0.081203937530518: new stdClass 0.089030981063843: (object)[]
Output for 5.4.10
0.085606098175049: new stdClass 0.095283985137939: (object)[]
Output for 5.4.9
0.068722009658813: new stdClass 0.074109077453613: (object)[]
Output for 5.4.8
0.08632493019104: new stdClass 0.088361024856567: (object)[]
Output for 5.4.7
0.064355134963989: new stdClass 0.073277235031128: (object)[]
Output for 5.4.6
0.097328901290894: new stdClass 0.10157203674316: (object)[]
Output for 5.4.5
0.066635847091675: new stdClass 0.072672128677368: (object)[]
Output for 5.4.4
0.068732976913452: new stdClass 0.075378894805908: (object)[]
Output for 5.4.3
0.068071842193604: new stdClass 0.072917938232422: (object)[]
Output for 5.4.2
0.076241016387939: new stdClass 0.073331117630005: (object)[]
Output for 5.4.1
0.10511517524719: new stdClass 0.086072206497192: (object)[]
Output for 5.4.0
0.098295927047729: new stdClass 0.087149143218994: (object)[]
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/aHTDP on line 10
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/aHTDP on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/aHTDP on line 10
Process exited with code 255.