3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; define ('Foo\null', 1); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = \is_null($i); } var_dump(microtime(true) - $start); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = null === $i; } var_dump(microtime(true) - $start);
based on UNihE
Output for 7.2.0
float(0.00020098686218262) float(0.00014901161193848)
Output for 7.1.10
float(0.00033211708068848) float(0.00029706954956055)
Output for 7.1.7
float(0.00035881996154785) float(0.00032401084899902)
Output for 7.1.6
float(0.00020694732666016) float(0.00021719932556152)
Output for 7.1.5
float(0.00036883354187012) float(0.00031304359436035)
Output for 7.1.0
float(0.00025010108947754) float(0.00021505355834961)
Output for 7.0.20
float(0.00023317337036133) float(0.00023484230041504)
Output for 7.0.6
float(0.00011610984802246) float(0.00011014938354492)
Output for 7.0.5
float(0.00016903877258301) float(0.00016307830810547)
Output for 7.0.4
float(0.00014781951904297) float(0.0001370906829834)
Output for 7.0.3
float(0.00021004676818848) float(0.00020909309387207)
Output for 7.0.2
float(0.00020194053649902) float(0.00018692016601562)
Output for 7.0.1
float(0.00017690658569336) float(0.00016593933105469)
Output for 7.0.0
float(0.00021696090698242) float(0.00021195411682129)
Output for 5.6.28
float(0.00085091590881348) float(0.00056314468383789)
Output for 5.6.21
float(0.0012209415435791) float(0.00055503845214844)
Output for 5.6.20
float(0.00078105926513672) float(0.00036001205444336)
Output for 5.6.19
float(0.00082492828369141) float(0.00038719177246094)
Output for 5.6.18
float(0.0009000301361084) float(0.00042104721069336)
Output for 5.6.17
float(0.0010440349578857) float(0.00052285194396973)
Output for 5.6.16
float(0.0012190341949463) float(0.00055909156799316)
Output for 5.6.15
float(0.00076508522033691) float(0.00037097930908203)
Output for 5.6.14
float(0.001140832901001) float(0.00055813789367676)
Output for 5.6.13
float(0.00076985359191895) float(0.0003960132598877)
Output for 5.6.12
float(0.00076818466186523) float(0.00034308433532715)
Output for 5.6.11
float(0.001298189163208) float(0.00051093101501465)
Output for 5.6.10
float(0.0010018348693848) float(0.00047683715820312)
Output for 5.6.9
float(0.0012819766998291) float(0.00054001808166504)
Output for 5.6.8
float(0.0012111663818359) float(0.00055408477783203)
Output for 5.5.35
float(0.00080585479736328) float(0.00037407875061035)
Output for 5.5.34
float(0.00087404251098633) float(0.00037503242492676)
Output for 5.5.33
float(0.00083112716674805) float(0.00043606758117676)
Output for 5.5.32
float(0.00087904930114746) float(0.00039196014404297)
Output for 5.5.31
float(0.00095009803771973) float(0.00037193298339844)
Output for 5.5.30
float(0.0013370513916016) float(0.00058388710021973)
Output for 5.5.29
float(0.0010318756103516) float(0.00044798851013184)
Output for 5.5.28
float(0.00124192237854) float(0.00055313110351562)
Output for 5.5.27
float(0.0013589859008789) float(0.00058197975158691)
Output for 5.5.26
float(0.0012350082397461) float(0.00053691864013672)
Output for 5.5.25
float(0.0012969970703125) float(0.00057315826416016)
Output for 5.5.24
float(0.0013368129730225) float(0.00039291381835938)
Output for 5.4.45
float(0.0011379718780518) float(0.0004889965057373)
Output for 5.4.44
float(0.001147985458374) float(0.00069713592529297)
Output for 5.4.43
float(0.0011470317840576) float(0.0005791187286377)
Output for 5.4.42
float(0.0014581680297852) float(0.00073981285095215)
Output for 5.4.41
float(0.0012309551239014) float(0.00051093101501465)
Output for 5.4.40
float(0.0011649131774902) float(0.00049400329589844)
Output for 5.4.39
float(0.0012161731719971) float(0.00056695938110352)
Output for 5.4.38
float(0.0017027854919434) float(0.00049018859863281)
Output for 5.4.37
float(0.0011739730834961) float(0.00048995018005371)
Output for 5.4.36
float(0.0013821125030518) float(0.00066113471984863)
Output for 5.4.35
float(0.0011758804321289) float(0.00086092948913574)
Output for 5.4.34
float(0.0015499591827393) float(0.00049209594726562)
Output for 5.4.32
float(0.0011739730834961) float(0.00074505805969238)
Output for 5.4.31
float(0.0011439323425293) float(0.00048995018005371)
Output for 5.4.30
float(0.0013449192047119) float(0.00052499771118164)
Output for 5.4.29
float(0.001227855682373) float(0.00062894821166992)
Output for 5.4.28
float(0.001291036605835) float(0.00052714347839355)
Output for 5.4.27
float(0.0011758804321289) float(0.0005040168762207)
Output for 5.4.26
float(0.0012249946594238) float(0.00068283081054688)
Output for 5.4.25
float(0.0011320114135742) float(0.00050592422485352)
Output for 5.4.24
float(0.0013868808746338) float(0.00048995018005371)
Output for 5.4.23
float(0.0011570453643799) float(0.00049304962158203)
Output for 5.4.22
float(0.001244068145752) float(0.00049304962158203)
Output for 5.4.21
float(0.001154899597168) float(0.00059103965759277)
Output for 5.4.20
float(0.0011670589447021) float(0.00049591064453125)
Output for 5.4.19
float(0.0011610984802246) float(0.00049805641174316)
Output for 5.4.18
float(0.001370906829834) float(0.00049018859863281)
Output for 5.4.17
float(0.0011599063873291) float(0.00060009956359863)
Output for 5.4.16
float(0.0011448860168457) float(0.00049209594726562)
Output for 5.4.15
float(0.0011789798736572) float(0.00074601173400879)
Output for 5.4.14
float(0.0012030601501465) float(0.00049304962158203)
Output for 5.4.13
float(0.0011570453643799) float(0.00057697296142578)
Output for 5.4.12
float(0.0012140274047852) float(0.00083398818969727)
Output for 5.4.11
float(0.0014979839324951) float(0.00083589553833008)
Output for 5.3.29
float(0.0014948844909668) float(0.0016019344329834)
Output for 5.3.28
float(0.0014989376068115) float(0.0013940334320068)
Output for 5.3.27
float(0.0016939640045166) float(0.0012979507446289)
Output for 5.3.26
float(0.0015320777893066) float(0.0014781951904297)
Output for 5.3.25
float(0.0014832019805908) float(0.0012748241424561)
Output for 5.3.24
float(0.0013730525970459) float(0.0012838840484619)
Output for 5.3.23
float(0.0017380714416504) float(0.0015928745269775)
Output for 5.3.22
float(0.0016078948974609) float(0.0014550685882568)
Output for 5.3.21
float(0.0016138553619385) float(0.0014832019805908)