3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo; define ('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 eFFA9
Output for 7.2.0
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00013899803161621) float(0.00012516975402832)
Output for 7.1.10
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00019693374633789) float(0.00016999244689941)
Output for 7.1.7
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00014877319335938) float(0.00013303756713867)
Output for 7.1.6
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00031399726867676) float(0.00028109550476074)
Output for 7.1.5
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00033307075500488) float(0.0002901554107666)
Output for 7.1.0
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00026106834411621) float(0.00023412704467773)
Output for 7.0.20
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0001521110534668) float(0.00014591217041016)
Output for 7.0.6
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00017786026000977) float(0.00017285346984863)
Output for 7.0.5
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00022792816162109) float(0.00021195411682129)
Output for 7.0.4
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00014901161193848) float(0.00013399124145508)
Output for 7.0.3
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00017786026000977) float(0.00016498565673828)
Output for 7.0.2
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00014090538024902) float(0.00012898445129395)
Output for 7.0.1
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0002288818359375) float(0.00020313262939453)
Output for 7.0.0
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00021600723266602) float(0.00020098686218262)
Output for 5.6.28
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012259483337402) float(0.0007929801940918)
Output for 5.6.21
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00089406967163086) float(0.00039005279541016)
Output for 5.6.20
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00081181526184082) float(0.00038695335388184)
Output for 5.6.19
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00098299980163574) float(0.00041508674621582)
Output for 5.6.18
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0010480880737305) float(0.0004570484161377)
Output for 5.6.17
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00089597702026367) float(0.00039100646972656)
Output for 5.6.16
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012071132659912) float(0.00052309036254883)
Output for 5.6.15
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00084710121154785) float(0.00036478042602539)
Output for 5.6.14
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012059211730957) float(0.00055193901062012)
Output for 5.6.13
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0010700225830078) float(0.00046086311340332)
Output for 5.6.12
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00074911117553711) float(0.00033688545227051)
Output for 5.6.11
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0010459423065186) float(0.00048303604125977)
Output for 5.6.10
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013010501861572) float(0.00060915946960449)
Output for 5.6.9
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012509822845459) float(0.00056290626525879)
Output for 5.6.8
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013549327850342) float(0.00057411193847656)
Output for 5.5.35
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0010478496551514) float(0.00047087669372559)
Output for 5.5.34
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012421607971191) float(0.00052309036254883)
Output for 5.5.33
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00081181526184082) float(0.00033116340637207)
Output for 5.5.32
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00093722343444824) float(0.00038695335388184)
Output for 5.5.31
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0010519027709961) float(0.00046205520629883)
Output for 5.5.30
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012149810791016) float(0.00043892860412598)
Output for 5.5.29
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013151168823242) float(0.00055289268493652)
Output for 5.5.28
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00081205368041992) float(0.00033211708068848)
Output for 5.5.27
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00089907646179199) float(0.00036382675170898)
Output for 5.5.26
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013570785522461) float(0.00054597854614258)
Output for 5.5.25
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001338005065918) float(0.00051999092102051)
Output for 5.5.24
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013868808746338) float(0.00049209594726562)
Output for 5.4.45
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013389587402344) float(0.00047397613525391)
Output for 5.4.44
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001338005065918) float(0.00059103965759277)
Output for 5.4.43
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001539945602417) float(0.00064897537231445)
Output for 5.4.42
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0023429393768311) float(0.00074887275695801)
Output for 5.4.41
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011730194091797) float(0.00049710273742676)
Output for 5.4.40
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001147985458374) float(0.0004730224609375)
Output for 5.4.39
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011739730834961) float(0.00047397613525391)
Output for 5.4.38
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011639595031738) float(0.00051403045654297)
Output for 5.4.37
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013430118560791) float(0.00050806999206543)
Output for 5.4.36
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013799667358398) float(0.00068902969360352)
Output for 5.4.35
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0021481513977051) float(0.0009310245513916)
Output for 5.4.34
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0015859603881836) float(0.00049614906311035)
Output for 5.4.32
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0030500888824463) float(0.0011589527130127)
Output for 5.4.31
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0018818378448486) float(0.0006098747253418)
Output for 5.4.30
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012490749359131) float(0.00047588348388672)
Output for 5.4.29
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012221336364746) float(0.00050497055053711)
Output for 5.4.28
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0028698444366455) float(0.001460075378418)
Output for 5.4.27
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011720657348633) float(0.00048208236694336)
Output for 5.4.26
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013749599456787) float(0.00057506561279297)
Output for 5.4.25
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001209020614624) float(0.00049400329589844)
Output for 5.4.24
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0019469261169434) float(0.00069499015808105)
Output for 5.4.23
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0022749900817871) float(0.00083613395690918)
Output for 5.4.22
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00124192237854) float(0.00063395500183105)
Output for 5.4.21
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011658668518066) float(0.0004730224609375)
Output for 5.4.20
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012218952178955) float(0.00055503845214844)
Output for 5.4.19
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0016419887542725) float(0.001168966293335)
Output for 5.4.18
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0033700466156006) float(0.00074505805969238)
Output for 5.4.17
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012149810791016) float(0.00049686431884766)
Output for 5.4.16
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0011289119720459) float(0.00047683715820312)
Output for 5.4.15
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0012497901916504) float(0.00065183639526367)
Output for 5.4.14
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0016200542449951) float(0.00085902214050293)
Output for 5.4.13
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0015180110931396) float(0.0006718635559082)
Output for 5.4.12
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0015301704406738) float(0.0009608268737793)
Output for 5.4.11
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0041041374206543) float(0.0012362003326416)
Output for 5.3.29
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0027890205383301) float(0.0032620429992676)
Output for 5.3.28
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00173020362854) float(0.0021660327911377)
Output for 5.3.27
Notice: Constant null already defined in /in/UNihE on line 4 float(0.001741886138916) float(0.0024490356445312)
Output for 5.3.26
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013749599456787) float(0.0015931129455566)
Output for 5.3.25
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0021328926086426) float(0.0015339851379395)
Output for 5.3.24
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0013720989227295) float(0.0017180442810059)
Output for 5.3.23
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0017340183258057) float(0.0015468597412109)
Output for 5.3.22
Notice: Constant null already defined in /in/UNihE on line 4 float(0.00199294090271) float(0.0021679401397705)
Output for 5.3.21
Notice: Constant null already defined in /in/UNihE on line 4 float(0.0014441013336182) float(0.001662015914917)