3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { private $a = 5; private $b = 10; private $c = 15; private $d = 20; } $s = microtime(true); for ($i = 0; $i < 1000000; $i++) { new A(); } var_dump(microtime(true) - $s); $instance = new A(); $s = microtime(true); for ($i = 0; $i < 1000000; $i++) { clone $instance; } var_dump(microtime(true) - $s);
based on Z7P4M
Output for 7.1.0
float(0.10149192810059) float(0.084352970123291)
Output for 7.0.14
float(0.084677934646606) float(0.072378158569336)
Output for 7.0.11
float(0.074368000030518) float(0.064113140106201)
Output for 7.0.10
float(0.06358003616333) float(0.063216924667358)
Output for 7.0.9
float(0.065787792205811) float(0.063234806060791)
Output for 7.0.8
float(0.07928991317749) float(0.071363925933838)
Output for 7.0.7
float(0.069667100906372) float(0.067919969558716)
Output for 7.0.6
float(0.078172206878662) float(0.063563108444214)
Output for 7.0.5
float(0.077080965042114) float(0.064627170562744)
Output for 7.0.4
float(0.071660041809082) float(0.064918041229248)
Output for 7.0.3
float(0.067872047424316) float(0.062992095947266)
Output for 7.0.2
float(0.085541009902954) float(0.070436954498291)
Output for 7.0.1
float(0.069674015045166) float(0.064776182174683)
Output for 7.0.0
float(0.069988012313843) float(0.0677330493927)
Output for hhvm-3.13.2
float(0.15968084335327) float(0.11128091812134)
Output for hhvm-3.12.0
float(0.16333603858948) float(0.1072371006012)
Output for hhvm-3.10.0
float(0.19326591491699) float(0.12409400939941)
Output for 5.6.28
float(0.16825485229492) float(-0.045912027359009)
Output for 5.6.26
float(0.14633011817932) float(0.11514210700989)
Output for 5.6.25
float(0.11176300048828) float(0.11374402046204)
Output for 5.6.24
float(0.1235179901123) float(0.11687278747559)
Output for 5.6.23
float(0.11409711837769) float(0.11311388015747)
Output for 5.6.22
float(0.14003491401672) float(0.11062502861023)
Output for 5.6.21
float(0.11912393569946) float(0.12435293197632)
Output for 5.6.20
float(0.14078307151794) float(0.11372685432434)
Output for 5.6.19
float(0.13149905204773) float(0.1166398525238)
Output for 5.6.18
float(0.12192296981812) float(0.11671900749207)
Output for 5.6.17
float(0.13345313072205) float(0.11539888381958)
Output for 5.6.16
float(0.12009501457214) float(0.11859822273254)
Output for 5.6.15
float(0.1348979473114) float(0.11840105056763)
Output for 5.6.14
float(0.12521481513977) float(0.12173509597778)
Output for 5.6.13
float(0.12569499015808) float(0.14970707893372)
Output for 5.6.12
float(0.12194204330444) float(0.11682820320129)
Output for 5.6.11
float(0.13121795654297) float(0.11738300323486)
Output for 5.6.10
float(0.13215684890747) float(0.11758780479431)
Output for 5.6.9
float(0.12493300437927) float(0.1201000213623)
Output for 5.6.8
float(0.13847208023071) float(0.12008094787598)
Output for 5.6.7
float(0.11463522911072) float(0.1147038936615)
Output for 5.6.6
float(0.13613796234131) float(0.11617398262024)
Output for 5.6.5
float(0.14399981498718) float(0.11539006233215)
Output for 5.6.4
float(0.12629008293152) float(0.11767387390137)
Output for 5.6.3
float(0.13115191459656) float(0.11348986625671)
Output for 5.6.2
float(0.14094710350037) float(0.12570190429688)
Output for 5.6.1
float(0.12630915641785) float(0.11600089073181)
Output for 5.6.0
float(0.12474894523621) float(0.11786508560181)
Output for 5.5.38
float(0.11344718933105) float(0.11030006408691)
Output for 5.5.37
float(0.11673808097839) float(0.11061501502991)
Output for 5.5.36
float(0.1205780506134) float(0.11054086685181)
Output for 5.5.35
float(0.13228106498718) float(0.15041089057922)
Output for 5.5.34
float(0.11446905136108) float(0.12594795227051)
Output for 5.5.33
float(0.1179940700531) float(0.12776398658752)
Output for 5.5.32
float(0.12219715118408) float(0.12279582023621)
Output for 5.5.31
float(0.13374280929565) float(0.12403011322021)
Output for 5.5.30
float(0.11979699134827) float(0.12608790397644)
Output for 5.5.29
float(0.11729407310486) float(0.14873218536377)
Output for 5.5.28
float(0.13067698478699) float(0.12082815170288)
Output for 5.5.27
float(0.1247889995575) float(0.12252688407898)
Output for 5.5.26
float(0.12512707710266) float(0.11676788330078)
Output for 5.5.25
float(0.13178706169128) float(0.11843705177307)
Output for 5.5.24
float(0.13690519332886) float(0.11580896377563)
Output for 5.5.23
float(0.12854099273682) float(0.11725282669067)
Output for 5.5.22
float(0.12588000297546) float(0.11739206314087)
Output for 5.5.21
float(0.12193512916565) float(0.11913800239563)
Output for 5.5.20
float(0.12633800506592) float(0.11663699150085)
Output for 5.5.19
float(0.12759494781494) float(0.11906099319458)
Output for 5.5.18
float(0.12938404083252) float(0.12577319145203)
Output for 5.5.16
float(0.13687801361084) float(0.12984800338745)
Output for 5.5.15
float(0.13634586334229) float(0.12114691734314)
Output for 5.5.14
float(0.12029790878296) float(0.14792895317078)
Output for 5.5.13
float(0.12537598609924) float(0.12086319923401)
Output for 5.5.12
float(0.13176107406616) float(0.11986207962036)
Output for 5.5.11
float(0.16150903701782) float(0.16944980621338)
Output for 5.5.10
float(0.14389204978943) float(0.13305902481079)
Output for 5.5.9
float(0.14310383796692) float(0.12511992454529)
Output for 5.5.8
float(0.12045812606812) float(0.12047719955444)
Output for 5.5.7
float(0.14239311218262) float(0.15435886383057)
Output for 5.5.6
float(0.11074209213257) float(0.11588907241821)
Output for 5.5.5
float(0.11293292045593) float(0.11740899085999)
Output for 5.5.4
float(0.11469197273254) float(0.12319183349609)
Output for 5.5.3
float(0.1148669719696) float(0.11686897277832)
Output for 5.5.2
float(0.11468505859375) float(0.15268683433533)
Output for 5.5.1
float(0.13574504852295) float(0.13744807243347)
Output for 5.5.0
float(0.11749911308289) float(0.123202085495)
Output for 5.4.45
float(0.11865186691284) float(0.12124395370483)
Output for 5.4.44
float(0.13841104507446) float(0.12960505485535)
Output for 5.4.43
float(0.1321120262146) float(0.1303448677063)
Output for 5.4.42
float(0.11422300338745) float(0.10837888717651)
Output for 5.4.41
float(0.15050983428955) float(0.16527700424194)
Output for 5.4.40
float(0.13744497299194) float(0.10953497886658)
Output for 5.4.39
float(0.11722993850708) float(0.11987209320068)
Output for 5.4.38
float(0.11953997612) float(0.11813998222351)
Output for 5.4.37
float(0.11030697822571) float(0.11857104301453)
Output for 5.4.36
float(0.11369585990906) float(0.11763715744019)
Output for 5.4.35
float(0.13056111335754) float(0.12022686004639)
Output for 5.4.34
float(0.12468504905701) float(0.11507391929626)
Output for 5.4.32
float(0.12469696998596) float(0.11776995658875)
Output for 5.4.31
float(0.13394212722778) float(0.11735105514526)
Output for 5.4.30
float(0.12208700180054) float(0.11733818054199)
Output for 5.4.29
float(0.13281202316284) float(0.11495614051819)
Output for 5.4.28
float(0.12956380844116) float(0.11056613922119)
Output for 5.4.27
float(0.14098191261292) float(0.11455011367798)
Output for 5.4.26
float(0.11824083328247) float(0.12652707099915)
Output for 5.4.25
float(0.1415798664093) float(0.11917901039124)
Output for 5.4.24
float(0.12309598922729) float(0.11463308334351)
Output for 5.4.23
float(0.13343191146851) float(0.12916278839111)
Output for 5.4.22
float(0.11927080154419) float(0.11029195785522)
Output for 5.4.21
float(0.12425708770752) float(0.12780904769897)
Output for 5.4.20
float(0.10790181159973) float(0.12949585914612)
Output for 5.4.19
float(0.11388802528381) float(0.12500596046448)
Output for 5.4.18
float(0.1148579120636) float(0.12549090385437)
Output for 5.4.17
float(0.1057391166687) float(0.10893893241882)
Output for 5.4.16
float(0.10965585708618) float(0.11136507987976)
Output for 5.4.15
float(0.12793803215027) float(0.10875296592712)
Output for 5.4.14
float(0.13134002685547) float(0.11380004882812)
Output for 5.4.13
float(0.11796402931213) float(0.12211203575134)
Output for 5.4.12
float(0.11931610107422) float(0.12512111663818)
Output for 5.4.11
float(0.12864398956299) float(0.11072707176208)
Output for 5.4.10
float(0.12114810943604) float(0.10856604576111)
Output for 5.4.9
float(0.12938189506531) float(0.10693407058716)
Output for 5.4.8
float(0.12244486808777) float(0.11065816879272)
Output for 5.4.7
float(0.14748787879944) float(0.10922598838806)
Output for 5.4.6
float(0.10986399650574) float(0.10979795455933)
Output for 5.4.5
float(0.12760806083679) float(0.11174201965332)
Output for 5.4.4
float(0.11863708496094) float(0.10813093185425)
Output for 5.4.3
float(0.12493705749512) float(0.11197590827942)
Output for 5.4.2
float(0.13820910453796) float(0.11018109321594)
Output for 5.4.1
float(0.11954402923584) float(0.11100101470947)
Output for 5.4.0
float(0.12792897224426) float(0.11838698387146)
Output for 5.3.29
float(0.25327706336975) float(0.21192598342896)
Output for 5.3.28
float(0.2609920501709) float(0.22192597389221)
Output for 5.3.27
float(0.24701380729675) float(0.21762704849243)
Output for 5.3.26
float(0.24269223213196) float(0.21271014213562)
Output for 5.3.25
float(0.22292518615723) float(0.19785690307617)
Output for 5.3.24
float(0.25334095954895) float(0.21337389945984)
Output for 5.3.23
float(0.26753807067871) float(0.2189769744873)
Output for 5.3.22
float(0.29111790657043) float(0.22007918357849)
Output for 5.3.21
float(0.28988790512085) float(0.22217488288879)
Output for 5.3.20
float(0.28417491912842) float(0.2148609161377)
Output for 5.3.19
float(0.26213598251343) float(0.214674949646)
Output for 5.3.18
float(0.27391290664673) float(0.22563910484314)
Output for 5.3.17
float(0.26325798034668) float(0.23618507385254)
Output for 5.3.16
float(0.29042410850525) float(0.22116899490356)
Output for 5.3.15
float(0.27790307998657) float(0.22075486183167)
Output for 5.3.14
float(0.27387499809265) float(0.21961688995361)
Output for 5.3.13
float(0.26249885559082) float(0.21593189239502)
Output for 5.3.12
float(0.27686595916748) float(0.21697092056274)
Output for 5.3.11
float(0.27703404426575) float(0.21939992904663)
Output for 5.3.10
float(0.25363087654114) float(0.2205491065979)
Output for 5.3.9
float(0.26890921592712) float(0.2227189540863)
Output for 5.3.8
float(0.28842091560364) float(0.22501707077026)
Output for 5.3.7
float(0.27250599861145) float(0.22126984596252)
Output for 5.3.6
float(0.3339900970459) float(0.26712894439697)
Output for 5.3.5
float(0.26780200004578) float(0.22598195075989)
Output for 5.3.4
float(0.27765798568726) float(0.23061299324036)
Output for 5.3.3
float(0.2589910030365) float(0.23781514167786)
Output for 5.3.2
float(0.27201080322266) float(0.22077202796936)
Output for 5.3.1
float(0.26574182510376) float(0.21937918663025)
Output for 5.3.0
float(0.26638793945312) float(0.22270607948303)
Output for 5.2.17
float(0.30238389968872) float(0.22763895988464)
Output for 5.2.16
float(0.28063797950745) float(0.23512196540833)
Output for 5.2.15
float(0.28782105445862) float(0.23520517349243)
Output for 5.2.14
float(0.28287196159363) float(0.23066782951355)
Output for 5.2.13
float(0.281170129776) float(0.22860813140869)
Output for 5.2.12
float(0.29334807395935) float(0.23685383796692)
Output for 5.2.11
float(0.26988792419434) float(0.23272895812988)
Output for 5.2.10
float(0.27699589729309) float(0.23410892486572)
Output for 5.2.9
float(0.28400802612305) float(0.23200297355652)
Output for 5.2.8
float(0.26853394508362) float(0.23360705375671)
Output for 5.2.7
float(0.30448603630066) float(0.23146104812622)
Output for 5.2.6
float(0.28921604156494) float(0.22870588302612)
Output for 5.2.5
float(0.29300713539124) float(0.23108792304993)
Output for 5.2.4
float(0.29029822349548) float(0.23508787155151)
Output for 5.2.3
float(0.28574013710022) float(0.22631812095642)
Output for 5.2.2
float(0.28180193901062) float(0.2300169467926)
Output for 5.2.1
float(0.28673696517944) float(0.2309718132019)
Output for 5.2.0
float(0.32136201858521) float(0.23703384399414)
Output for 5.1.6
float(0.26132893562317) FATAL: emalloc(): Unable to allocate 24 bytes
Process exited with code 1.
Output for 5.1.5
float(0.28054094314575) FATAL: emalloc(): Unable to allocate 24 bytes
Process exited with code 1.
Output for 5.1.4
float(0.27389407157898) FATAL: emalloc(): Unable to allocate 76 bytes
Process exited with code 1.
Output for 5.1.3
float(0.2778959274292) FATAL: emalloc(): Unable to allocate 24 bytes
Process exited with code 1.
Output for 5.1.2
float(0.26623010635376) FATAL: emalloc(): Unable to allocate 76 bytes
Process exited with code 1.
Output for 5.1.1
float(0.29485011100769) FATAL: emalloc(): Unable to allocate 76 bytes
Process exited with code 1.
Output for 5.1.0
float(0.2646791934967) FATAL: emalloc(): Unable to allocate 64 bytes
Process exited with code 1.
Output for 5.0.5
float(0.35211801528931) FATAL: emalloc(): Unable to allocate 24 bytes
Process exited with code 1.
Output for 5.0.4
float(0.33229994773865) FATAL: emalloc(): Unable to allocate 64 bytes
Process exited with code 1.
Output for 5.0.3
float(0.4161171913147) FATAL: emalloc(): Unable to allocate 76 bytes
Process exited with code 1.
Output for 5.0.2
float(0.35098099708557) FATAL: emalloc(): Unable to allocate 24 bytes
Process exited with code 1.
Output for 5.0.1
float(0.35105013847351) FATAL: emalloc(): Unable to allocate 76 bytes
Process exited with code 1.
Output for 5.0.0
float(0.32690596580505) FATAL: emalloc(): Unable to allocate 64 bytes
Process exited with code 1.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/Zbo2Q on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/Zbo2Q on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/Zbo2Q on line 5
Process exited with code 255.