3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Module { protected $_name; protected $_version; public function __construct(string $name, string $version) { $this->_name = $name; $this->_version = $version; } } $s = microtime(true); for ($i = 0; $i < 1000; $i++) { new Module('Framework', '1.10'); } var_dump(microtime(true) - $s); $s = microtime(true); for ($i = 0; $i < 1000; $i++) { new class extends Module { public function __construct() { } protected $_name = 'Framework'; protected $_version = '1.10'; }; } var_dump(microtime(true) - $s);
Output for 7.3.0beta2
float(0.00015807151794434) float(0.00010800361633301)
Output for 7.3.0beta1
float(0.00013184547424316) float(0.00014185905456543)
Output for 7.3.0alpha4
float(0.00012707710266113) float(0.00012087821960449)
Output for 7.3.0alpha3
float(0.00012803077697754) float(0.00010991096496582)
Output for 7.3.0alpha2
float(0.012878894805908) float(0.00021886825561523)
Output for 7.3.0alpha1
float(0.00014209747314453) float(9.918212890625E-5)
Output for 7.2.9
float(0.00024914741516113) float(0.00025391578674316)
Output for 7.2.8
float(0.00030183792114258) float(0.00023198127746582)
Output for 7.2.7
float(0.00014996528625488) float(0.00011682510375977)
Output for 7.2.6
float(0.00015497207641602) float(0.00012803077697754)
Output for 7.2.5
float(0.0014629364013672) float(0.00016117095947266)
Output for 7.2.4
float(0.00180983543396) float(0.00015997886657715)
Output for 7.2.3
float(0.0033109188079834) float(0.00030303001403809)
Output for 7.2.2
float(0.0036401748657227) float(0.00015807151794434)
Output for 7.2.1
float(0.00036120414733887) float(0.00040411949157715)
Output for 7.2.0
float(0.00013995170593262) float(0.00011491775512695)
Output for 7.1.21
float(0.00015616416931152) float(0.00015902519226074)
Output for 7.1.20
float(0.00034308433532715) float(0.00027799606323242)
Output for 7.1.19
float(0.00017499923706055) float(0.00014495849609375)
Output for 7.1.18
float(0.00019407272338867) float(0.00016617774963379)
Output for 7.1.17
float(0.00015091896057129) float(0.00016593933105469)
Output for 7.1.16
float(0.00029993057250977) float(0.00024604797363281)
Output for 7.1.15
float(0.00014996528625488) float(0.00013113021850586)
Output for 7.1.14
float(0.00034213066101074) float(0.0002899169921875)
Output for 7.1.13
float(0.00015807151794434) float(0.00016689300537109)
Output for 7.1.12
float(0.0062270164489746) float(0.00013399124145508)
Output for 7.1.11
float(0.00014710426330566) float(0.00016117095947266)
Output for 7.1.10
float(0.00017595291137695) float(0.00014805793762207)
Output for 7.1.9
float(0.00034880638122559) float(0.00083398818969727)
Output for 7.1.8
float(0.00029802322387695) float(0.00023818016052246)
Output for 7.1.7
float(0.0049278736114502) float(0.00032591819763184)
Output for 7.1.6
float(0.00019717216491699) float(0.00018596649169922)
Output for 7.1.5
float(0.00022506713867188) float(0.00014805793762207)
Output for 7.1.4
float(0.00034618377685547) float(0.00037217140197754)
Output for 7.1.3
float(0.0059788227081299) float(0.00021600723266602)
Output for 7.1.2
float(0.0052838325500488) float(0.00023293495178223)
Output for 7.1.1
float(0.0083208084106445) float(0.0009160041809082)
Output for 7.1.0
float(0.00014805793762207) float(0.00016093254089355)
Output for 7.0.31
float(0.00031304359436035) float(0.00024509429931641)
Output for 7.0.30
float(0.00014519691467285) float(0.00011491775512695)
Output for 7.0.29
float(0.00031208992004395) float(0.00020909309387207)
Output for 7.0.28
float(0.0034170150756836) float(0.00020813941955566)
Output for 7.0.27
float(0.0001990795135498) float(0.00018191337585449)
Output for 7.0.26
float(0.00014615058898926) float(0.00014901161193848)
Output for 7.0.25
float(0.00014495849609375) float(0.00011801719665527)
Output for 7.0.24
float(0.0018408298492432) float(0.00030899047851562)
Output for 7.0.23
float(0.0015249252319336) float(0.0001680850982666)
Output for 7.0.22
float(0.00015807151794434) float(0.00012087821960449)
Output for 7.0.21
float(0.0065340995788574) float(0.00023293495178223)
Output for 7.0.20
float(0.00017404556274414) float(0.0001368522644043)
Output for 7.0.19
float(0.00014710426330566) float(0.00011396408081055)
Output for 7.0.18
float(0.0037131309509277) float(0.00011897087097168)
Output for 7.0.17
float(0.0029919147491455) float(0.00018692016601562)
Output for 7.0.16
float(0.0047848224639893) float(0.0002598762512207)
Output for 7.0.15
float(0.00014710426330566) float(0.00011110305786133)
Output for 7.0.14
float(0.00015091896057129) float(0.00015711784362793)
Output for 7.0.13
float(0.00029301643371582) float(0.00022196769714355)
Output for 7.0.12
float(0.00014495849609375) float(0.00012683868408203)
Output for 7.0.11
float(0.00028586387634277) float(0.00020909309387207)
Output for 7.0.10
float(0.00018310546875) float(0.00014019012451172)
Output for 7.0.9
float(0.0002899169921875) float(0.00028395652770996)
Output for 7.0.8
float(0.00025391578674316) float(0.00012803077697754)
Output for 7.0.7
float(0.00015902519226074) float(0.00014400482177734)
Output for 7.0.6
float(0.00036978721618652) float(0.00030994415283203)
Output for 7.0.5
float(0.00017094612121582) float(0.00015020370483398)
Output for 7.0.4
float(0.0003349781036377) float(0.00027298927307129)
Output for 7.0.3
float(0.00017595291137695) float(0.00011897087097168)
Output for 7.0.2
float(0.00019717216491699) float(0.00013184547424316)
Output for 7.0.1
float(0.00031208992004395) float(0.00022387504577637)
Output for 7.0.0
float(0.00037717819213867) float(0.0003211498260498)
Output for hhvm-3.22.0
float(0.00058484077453613) float(0.00036835670471191)
Output for hhvm-3.21.3
float(0.0065467357635498) float(0.00031733512878418)
Output for hhvm-3.21.0
float(0.00037932395935059) float(0.00020551681518555)
Output for hhvm-3.20.2
float(0.00039482116699219) float(0.00017476081848145)
Output for hhvm-3.19.2
float(0.00064301490783691) float(0.00043201446533203)
Output for hhvm-3.18.5
float(0.00054192543029785) float(0.00023913383483887)
Output for hhvm-3.18.4
float(0.00039482116699219) float(0.00019407272338867)
Output for hhvm-3.15.4
float(0.00039291381835938) float(0.00015783309936523)
Output for 5.6.30
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/EvnKv on line 27
Process exited with code 255.