3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time=microtime(1); for ($i=0;$i<100000;$i++) new stdClass; echo microtime(1)-$time,': new stdClass'."\n"; $time=microtime(1); for ($i=0;$i<100000;$i++) (object)[]; echo microtime(1)-$time,': (object)[]'."\n";
Output for 7.1.0
0.0054590702056885: new stdClass 0.0051479339599609: (object)[]
Output for 7.0.14
0.0093200206756592: new stdClass 0.0095119476318359: (object)[]
Output for 7.0.6
0.0078480243682861: new stdClass 0.008051872253418: (object)[]
Output for 7.0.5
0.0078079700469971: new stdClass 0.0079290866851807: (object)[]
Output for 7.0.4
0.006274938583374: new stdClass 0.010574102401733: (object)[]
Output for 7.0.3
0.0057058334350586: new stdClass 0.0057499408721924: (object)[]
Output for 7.0.2
0.0049769878387451: new stdClass 0.0052878856658936: (object)[]
Output for 7.0.1
0.0054199695587158: new stdClass 0.0055739879608154: (object)[]
Output for 7.0.0
0.0075678825378418: new stdClass 0.0080928802490234: (object)[]
Output for 5.6.28
0.017174005508423: new stdClass 0.016726970672607: (object)[]
Output for 5.6.21
0.018195152282715: new stdClass 0.016966104507446: (object)[]
Output for 5.6.20
0.012401819229126: new stdClass 0.012947082519531: (object)[]
Output for 5.6.19
0.013475179672241: new stdClass 0.013475894927979: (object)[]
Output for 5.6.18
0.0095038414001465: new stdClass 0.013840913772583: (object)[]
Output for 5.6.17
0.011749029159546: new stdClass 0.0121910572052: (object)[]
Output for 5.6.16
0.012316942214966: new stdClass 0.012372016906738: (object)[]
Output for 5.6.15
0.0084769725799561: new stdClass 0.0086760520935059: (object)[]
Output for 5.6.14
0.013391971588135: new stdClass 0.013055801391602: (object)[]
Output for 5.6.13
0.015462875366211: new stdClass 0.012624025344849: (object)[]
Output for 5.6.12
0.013049125671387: new stdClass 0.012721061706543: (object)[]
Output for 5.6.11
0.0095438957214355: new stdClass 0.0094940662384033: (object)[]
Output for 5.6.10
0.013420104980469: new stdClass 0.012923002243042: (object)[]
Output for 5.6.9
0.012773036956787: new stdClass 0.011631965637207: (object)[]
Output for 5.6.8
0.012771129608154: new stdClass 0.013126134872437: (object)[]
Output for 5.6.7
0.012479066848755: new stdClass 0.012539863586426: (object)[]
Output for 5.5.35
0.012480974197388: new stdClass 0.012760877609253: (object)[]
Output for 5.5.34
0.011096954345703: new stdClass 0.011183023452759: (object)[]
Output for 5.5.33
0.013746976852417: new stdClass 0.01301908493042: (object)[]
Output for 5.5.32
0.010650157928467: new stdClass 0.014291048049927: (object)[]
Output for 5.5.31
0.010974884033203: new stdClass 0.011239051818848: (object)[]
Output for 5.5.30
0.010481834411621: new stdClass 0.010410070419312: (object)[]
Output for 5.5.29
0.0083739757537842: new stdClass 0.0087039470672607: (object)[]
Output for 5.5.28
0.0082790851593018: new stdClass 0.0088088512420654: (object)[]
Output for 5.5.27
0.010057926177979: new stdClass 0.012135982513428: (object)[]
Output for 5.5.26
0.011125087738037: new stdClass 0.011488914489746: (object)[]
Output for 5.5.25
0.0081601142883301: new stdClass 0.008929967880249: (object)[]
Output for 5.5.24
0.0081179141998291: new stdClass 0.0085470676422119: (object)[]
Output for 5.4.45
0.0089280605316162: new stdClass 0.0099711418151855: (object)[]
Output for 5.4.44
0.010792970657349: new stdClass 0.010539054870605: (object)[]
Output for 5.4.43
0.010971069335938: new stdClass 0.015903949737549: (object)[]
Output for 5.4.42
0.012225151062012: new stdClass 0.012414932250977: (object)[]
Output for 5.4.41
0.011420965194702: new stdClass 0.011642932891846: (object)[]
Output for 5.4.40
0.0081288814544678: new stdClass 0.0088050365447998: (object)[]
Output for 5.4.39
0.011274099349976: new stdClass 0.011919021606445: (object)[]
Output for 5.4.38
0.009943962097168: new stdClass 0.010324954986572: (object)[]
Output for 5.4.37
0.011086940765381: new stdClass 0.011819839477539: (object)[]
Output for 5.4.36
0.010762929916382: new stdClass 0.011901140213013: (object)[]
Output for 5.4.35
0.011476993560791: new stdClass 0.01246190071106: (object)[]
Output for 5.4.34
0.0080139636993408: new stdClass 0.0086531639099121: (object)[]
Output for 5.4.32
0.0093660354614258: new stdClass 0.0099630355834961: (object)[]
Output for 5.4.31
0.008188009262085: new stdClass 0.0085539817810059: (object)[]
Output for 5.4.30
0.011691808700562: new stdClass 0.010862112045288: (object)[]
Output for 5.4.29
0.014912843704224: new stdClass 0.01479697227478: (object)[]
Output for 5.4.28
0.010039091110229: new stdClass 0.010411024093628: (object)[]
Output for 5.4.27
0.011162996292114: new stdClass 0.011345863342285: (object)[]
Output for 5.4.26
0.0090141296386719: new stdClass 0.009814977645874: (object)[]
Output for 5.4.25
0.0089139938354492: new stdClass 0.0090339183807373: (object)[]
Output for 5.4.24
0.01282787322998: new stdClass 0.011935949325562: (object)[]
Output for 5.4.23
0.011550903320312: new stdClass 0.011524200439453: (object)[]
Output for 5.4.22
0.012063980102539: new stdClass 0.01217794418335: (object)[]
Output for 5.4.21
0.0083730220794678: new stdClass 0.0089688301086426: (object)[]
Output for 5.4.20
0.012335062026978: new stdClass 0.011909008026123: (object)[]
Output for 5.4.19
0.0090692043304443: new stdClass 0.0095930099487305: (object)[]
Output for 5.4.18
0.0086419582366943: new stdClass 0.009321928024292: (object)[]
Output for 5.4.17
0.0121910572052: new stdClass 0.012093067169189: (object)[]
Output for 5.4.16
0.0094830989837646: new stdClass 0.0099701881408691: (object)[]
Output for 5.4.15
0.010048866271973: new stdClass 0.010565042495728: (object)[]
Output for 5.4.14
0.011551856994629: new stdClass 0.012874126434326: (object)[]
Output for 5.4.13
0.0090467929840088: new stdClass 0.0097780227661133: (object)[]
Output for 5.4.12
0.014024019241333: new stdClass 0.010749101638794: (object)[]
Output for 5.4.11
0.011260986328125: new stdClass 0.011816024780273: (object)[]
Output for 5.4.10
0.0097169876098633: new stdClass 0.010325908660889: (object)[]
Output for 5.4.9
0.007781982421875: new stdClass 0.0086958408355713: (object)[]
Output for 5.4.8
0.012516021728516: new stdClass 0.012460947036743: (object)[]
Output for 5.4.7
0.0078039169311523: new stdClass 0.0089790821075439: (object)[]
Output for 5.4.6
0.0092711448669434: new stdClass 0.0094480514526367: (object)[]
Output for 5.4.5
0.0080411434173584: new stdClass 0.0088329315185547: (object)[]
Output for 5.4.4
0.010321140289307: new stdClass 0.010664939880371: (object)[]
Output for 5.4.3
0.0079429149627686: new stdClass 0.0086021423339844: (object)[]
Output for 5.4.2
0.0080640316009521: new stdClass 0.008720874786377: (object)[]
Output for 5.4.1
0.011116981506348: new stdClass 0.011983156204224: (object)[]
Output for 5.4.0
0.0079150199890137: new stdClass 0.0088441371917725: (object)[]
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/jrVSj 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/jrVSj on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/jrVSj on line 10
Process exited with code 255.