3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $times = 10000; $var = null; $var = new stdClass(); $time1 = microtime(true); for ($i = 0; $i <= $times; $i++) { if (!$var) {} } $time1 = microtime(true) - $time1; //echo "Time using '!': $time1\n"; $time2 = microtime(true); for ($i = 0; $i <= $times; $i++) { if ($var === null) {} } $time2 = microtime(true) - $time2; //echo "Time using '===': $time2\n"; if ($time1 > $time2) echo "'===' was faster by {($time1-$time2)/$time2}%"; else echo "'!' was faster by {($time2-$time1)/$time1}%";
Output for 7.1.0
'===' was faster by {(0.00025200843811035-0.00015401840209961)/0.00015401840209961}%
Output for 7.0.14
'===' was faster by {(0.00027799606323242-0.00016999244689941)/0.00016999244689941}%
Output for 7.0.7
'===' was faster by {(0.00023603439331055-0.00013589859008789)/0.00013589859008789}%
Output for 7.0.6
'===' was faster by {(0.00027704238891602-0.00016593933105469)/0.00016593933105469}%
Output for 7.0.5
'===' was faster by {(0.0002589225769043-0.00015711784362793)/0.00015711784362793}%
Output for 7.0.4
'===' was faster by {(0.0002598762512207-0.00015807151794434)/0.00015807151794434}%
Output for 7.0.3
'===' was faster by {(0.00017595291137695-0.0001070499420166)/0.0001070499420166}%
Output for 7.0.2
'===' was faster by {(0.00030899047851562-0.00017309188842773)/0.00017309188842773}%
Output for 7.0.1
'===' was faster by {(0.0001978874206543-0.00011801719665527)/0.00011801719665527}%
Output for 7.0.0
'===' was faster by {(0.00029897689819336-0.00018000602722168)/0.00018000602722168}%
Output for 5.6.28
'===' was faster by {(0.00079679489135742-0.00043487548828125)/0.00043487548828125}%
Output for 5.6.22
'===' was faster by {(0.00079703330993652-0.00047588348388672)/0.00047588348388672}%
Output for 5.6.21
'===' was faster by {(0.0013320446014404-0.00068187713623047)/0.00068187713623047}%
Output for 5.6.20
'===' was faster by {(0.00087904930114746-0.00051593780517578)/0.00051593780517578}%
Output for 5.6.19
'===' was faster by {(0.00063014030456543-0.00038599967956543)/0.00038599967956543}%
Output for 5.6.18
'===' was faster by {(0.00052618980407715-0.00030779838562012)/0.00030779838562012}%
Output for 5.6.17
'===' was faster by {(0.00082802772521973-0.0005340576171875)/0.0005340576171875}%
Output for 5.6.16
'===' was faster by {(0.00090312957763672-0.00049591064453125)/0.00049591064453125}%
Output for 5.6.15
'===' was faster by {(0.00073599815368652-0.00043082237243652)/0.00043082237243652}%
Output for 5.6.14
'===' was faster by {(0.00078892707824707-0.00045108795166016)/0.00045108795166016}%
Output for 5.6.13
'===' was faster by {(0.00052785873413086-0.00030708312988281)/0.00030708312988281}%
Output for 5.6.12
'===' was faster by {(0.00067710876464844-0.00040388107299805)/0.00040388107299805}%
Output for 5.6.11
'===' was faster by {(0.0008699893951416-0.00049996376037598)/0.00049996376037598}%
Output for 5.6.10
'===' was faster by {(0.00070405006408691-0.00039482116699219)/0.00039482116699219}%
Output for 5.6.9
'===' was faster by {(0.00078988075256348-0.00047206878662109)/0.00047206878662109}%
Output for 5.6.8
'===' was faster by {(0.00071287155151367-0.0004119873046875)/0.0004119873046875}%
Output for 5.6.7
'===' was faster by {(0.00085997581481934-0.00053000450134277)/0.00053000450134277}%
Output for 5.6.6
'===' was faster by {(0.00078010559082031-0.00045299530029297)/0.00045299530029297}%
Output for 5.6.5
'===' was faster by {(0.00056314468383789-0.00033283233642578)/0.00033283233642578}%
Output for 5.6.4
'===' was faster by {(0.00085687637329102-0.00049901008605957)/0.00049901008605957}%
Output for 5.6.3
'===' was faster by {(0.0007789134979248-0.00045609474182129)/0.00045609474182129}%
Output for 5.6.2
'===' was faster by {(0.00083804130554199-0.00054407119750977)/0.00054407119750977}%
Output for 5.6.1
'===' was faster by {(0.00093197822570801-0.0005500316619873)/0.0005500316619873}%
Output for 5.6.0
'===' was faster by {(0.00085210800170898-0.00049901008605957)/0.00049901008605957}%
Output for 5.5.36
'===' was faster by {(0.00072193145751953-0.00040912628173828)/0.00040912628173828}%
Output for 5.5.35
'===' was faster by {(0.00071096420288086-0.0003821849822998)/0.0003821849822998}%
Output for 5.5.34
'===' was faster by {(0.0010161399841309-0.00040388107299805)/0.00040388107299805}%
Output for 5.5.33
'===' was faster by {(0.00092291831970215-0.00052809715270996)/0.00052809715270996}%
Output for 5.5.32
'===' was faster by {(0.00049304962158203-0.00029706954956055)/0.00029706954956055}%
Output for 5.5.31
'===' was faster by {(0.00049591064453125-0.0002901554107666)/0.0002901554107666}%
Output for 5.5.30
'===' was faster by {(0.00076484680175781-0.00042390823364258)/0.00042390823364258}%
Output for 5.5.29
'===' was faster by {(0.00084805488586426-0.00048303604125977)/0.00048303604125977}%
Output for 5.5.28
'===' was faster by {(0.00077509880065918-0.00045299530029297)/0.00045299530029297}%
Output for 5.5.27
'===' was faster by {(0.00086188316345215-0.0005030632019043)/0.0005030632019043}%
Output for 5.5.26
'===' was faster by {(0.00081300735473633-0.00047397613525391)/0.00047397613525391}%
Output for 5.5.25
'===' was faster by {(0.00085282325744629-0.00049400329589844)/0.00049400329589844}%
Output for 5.5.24
'===' was faster by {(0.00086784362792969-0.00050902366638184)/0.00050902366638184}%
Output for 5.5.23
'===' was faster by {(0.00075101852416992-0.00043010711669922)/0.00043010711669922}%
Output for 5.5.22
'===' was faster by {(0.00086188316345215-0.00049901008605957)/0.00049901008605957}%
Output for 5.5.21
'===' was faster by {(0.00085616111755371-0.00053596496582031)/0.00053596496582031}%
Output for 5.5.20
'===' was faster by {(0.00091290473937988-0.00054407119750977)/0.00054407119750977}%
Output for 5.5.19
'===' was faster by {(0.0006248950958252-0.00037312507629395)/0.00037312507629395}%
Output for 5.5.18
'===' was faster by {(0.00085210800170898-0.00049996376037598)/0.00049996376037598}%
Output for 5.5.16
'===' was faster by {(0.0008690357208252-0.00050687789916992)/0.00050687789916992}%
Output for 5.5.15
'===' was faster by {(0.00071001052856445-0.00042390823364258)/0.00042390823364258}%
Output for 5.5.14
'===' was faster by {(0.000823974609375-0.00047802925109863)/0.00047802925109863}%
Output for 5.5.13
'===' was faster by {(0.00081491470336914-0.00049114227294922)/0.00049114227294922}%
Output for 5.5.12
'===' was faster by {(0.0008549690246582-0.00050592422485352)/0.00050592422485352}%
Output for 5.5.11
'===' was faster by {(0.00076580047607422-0.00043082237243652)/0.00043082237243652}%
Output for 5.5.10
'===' was faster by {(0.00075292587280273-0.00045394897460938)/0.00045394897460938}%
Output for 5.5.9
'===' was faster by {(0.00091004371643066-0.00053000450134277)/0.00053000450134277}%
Output for 5.5.8
'===' was faster by {(0.00090312957763672-0.00048685073852539)/0.00048685073852539}%
Output for 5.5.7
'===' was faster by {(0.00085902214050293-0.00049901008605957)/0.00049901008605957}%
Output for 5.5.6
'===' was faster by {(0.00088405609130859-0.00053000450134277)/0.00053000450134277}%
Output for 5.5.5
'===' was faster by {(0.00079917907714844-0.00045204162597656)/0.00045204162597656}%
Output for 5.5.4
'===' was faster by {(0.0008389949798584-0.00047397613525391)/0.00047397613525391}%
Output for 5.5.3
'===' was faster by {(0.00085592269897461-0.00051403045654297)/0.00051403045654297}%
Output for 5.5.2
'===' was faster by {(0.00070691108703613-0.00041294097900391)/0.00041294097900391}%
Output for 5.5.1
'===' was faster by {(0.00082993507385254-0.00049901008605957)/0.00049901008605957}%
Output for 5.5.0
'===' was faster by {(0.00087285041809082-0.0005030632019043)/0.0005030632019043}%
Output for 5.4.45
'===' was faster by {(0.00072312355041504-0.00037789344787598)/0.00037789344787598}%
Output for 5.4.44
'===' was faster by {(0.00082707405090332-0.00050806999206543)/0.00050806999206543}%
Output for 5.4.43
'===' was faster by {(0.00048995018005371-0.0002899169921875)/0.0002899169921875}%
Output for 5.4.42
'===' was faster by {(0.00075817108154297-0.00044894218444824)/0.00044894218444824}%
Output for 5.4.41
'===' was faster by {(0.00062799453735352-0.00040483474731445)/0.00040483474731445}%
Output for 5.4.40
'===' was faster by {(0.00080084800720215-0.00049495697021484)/0.00049495697021484}%
Output for 5.4.39
'===' was faster by {(0.00051283836364746-0.00031208992004395)/0.00031208992004395}%
Output for 5.4.38
'===' was faster by {(0.00081300735473633-0.00049090385437012)/0.00049090385437012}%
Output for 5.4.37
'===' was faster by {(0.00068902969360352-0.00040984153747559)/0.00040984153747559}%
Output for 5.4.36
'===' was faster by {(0.00078105926513672-0.00046205520629883)/0.00046205520629883}%
Output for 5.4.35
'===' was faster by {(0.00082492828369141-0.00053501129150391)/0.00053501129150391}%
Output for 5.4.34
'===' was faster by {(0.00075578689575195-0.00044918060302734)/0.00044918060302734}%
Output for 5.4.32
'===' was faster by {(0.00083208084106445-0.00049686431884766)/0.00049686431884766}%
Output for 5.4.31
'===' was faster by {(0.00071096420288086-0.00042891502380371)/0.00042891502380371}%
Output for 5.4.30
'===' was faster by {(0.00048208236694336-0.0003058910369873)/0.0003058910369873}%
Output for 5.4.29
'===' was faster by {(0.000823974609375-0.00055980682373047)/0.00055980682373047}%
Output for 5.4.28
'===' was faster by {(0.00086808204650879-0.00052404403686523)/0.00052404403686523}%
Output for 5.4.2, 5.4.27
'===' was faster by {(0.00082492828369141-0.00049805641174316)/0.00049805641174316}%
Output for 5.4.26
'===' was faster by {(0.00086092948913574-0.00050497055053711)/0.00050497055053711}%
Output for 5.4.25
'===' was faster by {(0.00084090232849121-0.00049901008605957)/0.00049901008605957}%
Output for 5.4.24
'===' was faster by {(0.00089216232299805-0.00051689147949219)/0.00051689147949219}%
Output for 5.4.23
'===' was faster by {(0.00089097023010254-0.00049710273742676)/0.00049710273742676}%
Output for 5.4.22
'===' was faster by {(0.00068187713623047-0.00045013427734375)/0.00045013427734375}%
Output for 5.4.21
'===' was faster by {(0.00082302093505859-0.00052785873413086)/0.00052785873413086}%
Output for 5.4.20
'===' was faster by {(0.00088787078857422-0.00049614906311035)/0.00049614906311035}%
Output for 5.4.19
'===' was faster by {(0.00081682205200195-0.00045895576477051)/0.00045895576477051}%
Output for 5.4.18
'===' was faster by {(0.00084209442138672-0.00050091743469238)/0.00050091743469238}%
Output for 5.4.17
'===' was faster by {(0.00078201293945312-0.00056695938110352)/0.00056695938110352}%
Output for 5.4.16
'===' was faster by {(0.00084400177001953-0.00047111511230469)/0.00047111511230469}%
Output for 5.4.15
'===' was faster by {(0.00064301490783691-0.00037980079650879)/0.00037980079650879}%
Output for 5.4.14
'===' was faster by {(0.00066709518432617-0.00041890144348145)/0.00041890144348145}%
Output for 5.4.13
'===' was faster by {(0.0008389949798584-0.00049495697021484)/0.00049495697021484}%
Output for 5.4.12
'===' was faster by {(0.00066685676574707-0.00051212310791016)/0.00051212310791016}%
Output for 5.4.11
'===' was faster by {(0.00094294548034668-0.00056195259094238)/0.00056195259094238}%
Output for 5.4.10
'===' was faster by {(0.00084114074707031-0.00054693222045898)/0.00054693222045898}%
Output for 5.4.9
'===' was faster by {(0.00076198577880859-0.00044798851013184)/0.00044798851013184}%
Output for 5.4.8
'===' was faster by {(0.00082516670227051-0.00050592422485352)/0.00050592422485352}%
Output for 5.4.7
'===' was faster by {(0.00087594985961914-0.00052309036254883)/0.00052309036254883}%
Output for 5.4.6
'===' was faster by {(0.00088810920715332-0.00051689147949219)/0.00051689147949219}%
Output for 5.4.5
'===' was faster by {(0.00083589553833008-0.0004730224609375)/0.0004730224609375}%
Output for 5.4.4
'===' was faster by {(0.00059103965759277-0.00036787986755371)/0.00036787986755371}%
Output for 5.4.3
'===' was faster by {(0.00082206726074219-0.00051999092102051)/0.00051999092102051}%
Output for 5.4.1
'===' was faster by {(0.0007929801940918-0.00047183036804199)/0.00047183036804199}%
Output for 5.4.0
'===' was faster by {(0.00069499015808105-0.0004270076751709)/0.0004270076751709}%
Output for 5.3.29
'===' was faster by {(0.00082898139953613-0.00058197975158691)/0.00058197975158691}%
Output for 5.3.28
'===' was faster by {(0.00096487998962402-0.00066304206848145)/0.00066304206848145}%
Output for 5.3.27
'===' was faster by {(0.0010230541229248-0.0007178783416748)/0.0007178783416748}%
Output for 5.3.26
'===' was faster by {(0.00098204612731934-0.00066208839416504)/0.00066208839416504}%
Output for 5.3.25
'===' was faster by {(0.00081992149353027-0.00055313110351562)/0.00055313110351562}%
Output for 5.3.24
'===' was faster by {(0.00085306167602539-0.0005791187286377)/0.0005791187286377}%
Output for 5.3.23
'===' was faster by {(0.00094008445739746-0.00064897537231445)/0.00064897537231445}%
Output for 5.3.22
'===' was faster by {(0.00092411041259766-0.00060796737670898)/0.00060796737670898}%
Output for 5.3.21
'===' was faster by {(0.00091385841369629-0.00061488151550293)/0.00061488151550293}%
Output for 5.3.20
'===' was faster by {(0.0010359287261963-0.00067400932312012)/0.00067400932312012}%
Output for 5.3.19
'===' was faster by {(0.00098800659179688-0.00064206123352051)/0.00064206123352051}%
Output for 5.3.18
'===' was faster by {(0.0010318756103516-0.00068306922912598)/0.00068306922912598}%
Output for 5.3.17
'===' was faster by {(0.00097012519836426-0.00063705444335938)/0.00063705444335938}%
Output for 5.3.16
'===' was faster by {(0.00095582008361816-0.00060582160949707)/0.00060582160949707}%
Output for 5.3.15
'===' was faster by {(0.0010380744934082-0.00066399574279785)/0.00066399574279785}%
Output for 5.3.14
'===' was faster by {(0.0010349750518799-0.00067901611328125)/0.00067901611328125}%
Output for 5.3.13
'===' was faster by {(0.00098896026611328-0.00065112113952637)/0.00065112113952637}%
Output for 5.3.12
'===' was faster by {(0.0010190010070801-0.00067901611328125)/0.00067901611328125}%
Output for 5.3.11
'===' was faster by {(0.00079894065856934-0.00053906440734863)/0.00053906440734863}%
Output for 5.3.10
'===' was faster by {(0.0010449886322021-0.00074911117553711)/0.00074911117553711}%
Output for 5.3.9
'===' was faster by {(0.00097084045410156-0.00059199333190918)/0.00059199333190918}%
Output for 5.3.8
'===' was faster by {(0.00090789794921875-0.00058412551879883)/0.00058412551879883}%
Output for 5.3.7
'===' was faster by {(0.0011980533599854-0.00058388710021973)/0.00058388710021973}%
Output for 5.3.6
'===' was faster by {(0.0011031627655029-0.00061893463134766)/0.00061893463134766}%
Output for 5.3.5
'===' was faster by {(0.0010089874267578-0.0006558895111084)/0.0006558895111084}%
Output for 5.3.4
'===' was faster by {(0.0010299682617188-0.00064611434936523)/0.00064611434936523}%
Output for 5.3.3
'===' was faster by {(0.00082182884216309-0.00053000450134277)/0.00053000450134277}%
Output for 5.3.2
'===' was faster by {(0.00093507766723633-0.00061202049255371)/0.00061202049255371}%
Output for 5.3.1
'===' was faster by {(0.00060081481933594-0.00038695335388184)/0.00038695335388184}%
Output for 5.3.0
'===' was faster by {(0.00056290626525879-0.00038814544677734)/0.00038814544677734}%
Output for 5.2.17
'===' was faster by {(0.0012619495391846-0.0009310245513916)/0.0009310245513916}%
Output for 5.2.16
'===' was faster by {(0.00080394744873047-0.00059890747070312)/0.00059890747070312}%
Output for 5.2.15
'===' was faster by {(0.00084710121154785-0.00060606002807617)/0.00060606002807617}%
Output for 5.2.14
'===' was faster by {(0.001162052154541-0.00084996223449707)/0.00084996223449707}%
Output for 5.2.13
'===' was faster by {(0.00099396705627441-0.0007479190826416)/0.0007479190826416}%
Output for 5.2.12
'===' was faster by {(0.0010991096496582-0.00072407722473145)/0.00072407722473145}%
Output for 5.2.11
'===' was faster by {(0.0006721019744873-0.00049614906311035)/0.00049614906311035}%
Output for 5.2.10
'===' was faster by {(0.00066900253295898-0.00050687789916992)/0.00050687789916992}%
Output for 5.2.9
'===' was faster by {(0.00083684921264648-0.00063395500183105)/0.00063395500183105}%
Output for 5.2.8
'===' was faster by {(0.00066900253295898-0.0004878044128418)/0.0004878044128418}%
Output for 5.2.7
'===' was faster by {(0.00067710876464844-0.00048494338989258)/0.00048494338989258}%
Output for 5.2.6
'===' was faster by {(0.00065493583679199-0.0004880428314209)/0.0004880428314209}%
Output for 5.2.5
'===' was faster by {(0.00065398216247559-0.0004889965057373)/0.0004889965057373}%
Output for 5.2.4
'===' was faster by {(0.00067901611328125-0.00048995018005371)/0.00048995018005371}%
Output for 5.2.3
'===' was faster by {(0.00070977210998535-0.00053215026855469)/0.00053215026855469}%
Output for 5.2.2
'===' was faster by {(0.00065994262695312-0.00048995018005371)/0.00048995018005371}%
Output for 5.2.1
'===' was faster by {(0.0006871223449707-0.00052499771118164)/0.00052499771118164}%
Output for 5.2.0
'===' was faster by {(0.00094795227050781-0.00050902366638184)/0.00050902366638184}%
Output for 5.1.6
'===' was faster by {(0.00082087516784668-0.00051617622375488)/0.00051617622375488}%
Output for 5.1.5
'===' was faster by {(0.00065517425537109-0.00051999092102051)/0.00051999092102051}%
Output for 5.1.4
'===' was faster by {(0.00069117546081543-0.00051999092102051)/0.00051999092102051}%
Output for 5.1.3
'===' was faster by {(0.001255989074707-0.00094389915466309)/0.00094389915466309}%
Output for 5.1.2
'!' was faster by {(0.0010280609130859-0.0010139942169189)/0.0010139942169189}%
Output for 5.1.1
'===' was faster by {(0.0011069774627686-0.0010349750518799)/0.0010349750518799}%
Output for 5.1.0
'===' was faster by {(0.00066494941711426-0.0006568431854248)/0.0006568431854248}%
Output for 5.0.5
'!' was faster by {(0.0029559135437012-0.0028440952301025)/0.0028440952301025}%
Output for 5.0.4
'!' was faster by {(0.0026559829711914-0.0025901794433594)/0.0025901794433594}%
Output for 5.0.3
'!' was faster by {(0.0016860961914062-0.0015270709991455)/0.0015270709991455}%
Output for 5.0.2
'===' was faster by {(0.001582145690918-0.0015408992767334)/0.0015408992767334}%
Output for 5.0.1
'!' was faster by {(0.0015749931335449-0.001492977142334)/0.001492977142334}%
Output for 5.0.0
'!' was faster by {(0.0019669532775879-0.0018720626831055)/0.0018720626831055}%
Output for 4.4.9
'!' was faster by {(0.003071-0.002207)/0.002207}%
Output for 4.4.8
'!' was faster by {(0.001562-0.001384)/0.001384}%
Output for 4.4.7
'!' was faster by {(0.001559-0.001407)/0.001407}%
Output for 4.4.6
'!' was faster by {(0.001695-0.001557)/0.001557}%
Output for 4.4.5
'!' was faster by {(0.00148-0.001373)/0.001373}%
Output for 4.4.4
'!' was faster by {(0.001613-0.001528)/0.001528}%
Output for 4.4.3
'!' was faster by {(0.002123-0.001485)/0.001485}%
Output for 4.4.2
'!' was faster by {(0.001567-0.001454)/0.001454}%
Output for 4.4.1
'!' was faster by {(0.002513-0.002356)/0.002356}%
Output for 4.4.0
'!' was faster by {(0.001547-0.001421)/0.001421}%
Output for 4.3.11
'===' was faster by {(0.002329-0.001919)/0.001919}%
Output for 4.3.10
'!' was faster by {(0.00324-0.002832)/0.002832}%
Output for 4.3.9
'!' was faster by {(0.001468-0.001342)/0.001342}%
Output for 4.3.8
'!' was faster by {(0.002226-0.002031)/0.002031}%
Output for 4.3.7
'!' was faster by {(0.002024-0.001867)/0.001867}%
Output for 4.3.6
'!' was faster by {(0.001518-0.001406)/0.001406}%
Output for 4.3.5
'!' was faster by {(0.001876-0.00165)/0.00165}%
Output for 4.3.4
'!' was faster by {(0.00144-0.001421)/0.001421}%
Output for 4.3.3
'!' was faster by {(0.001735-0.001683)/0.001683}%
Output for 4.3.2
'!' was faster by {(0.001462-0.001373)/0.001373}%
Output for 4.3.1
'!' was faster by {(0.00154-0.001441)/0.001441}%
Output for 4.3.0
'===' was faster by {(0.003748-0.003236)/0.003236}%