3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = null; $var = new stdClass(); $time1 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if (!$var) {} } $time1 = microtime(true) - $time1; echo "Time using '!': $time1\n"; $time2 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if ($var === null) {} } $time2 = microtime(true) - $time2; echo "Time using '===': $time2\n"; if ($time1 > $time2) echo '"===" was faster'; else echo '"!" was faster';
Output for 7.1.0
Time using '!': 0.026869058609009 Time using '===': 0.015838861465454 "===" was faster
Output for 7.0.14
Time using '!': 0.02519702911377 Time using '===': 0.015106916427612 "===" was faster
Output for 7.0.12
Time using '!': 0.024714946746826 Time using '===': 0.013957023620605 "===" was faster
Output for 7.0.6
Time using '!': 0.022726058959961 Time using '===': 0.01309609413147 "===" was faster
Output for 7.0.5
Time using '!': 0.0173499584198 Time using '===': 0.01033091545105 "===" was faster
Output for 7.0.4
Time using '!': 0.023432016372681 Time using '===': 0.011475801467896 "===" was faster
Output for 7.0.3
Time using '!': 0.017202138900757 Time using '===': 0.010475158691406 "===" was faster
Output for 7.0.2
Time using '!': 0.023975133895874 Time using '===': 0.01305890083313 "===" was faster
Output for 7.0.1
Time using '!': 0.016497135162354 Time using '===': 0.010231971740723 "===" was faster
Output for 7.0.0
Time using '!': 0.024214029312134 Time using '===': 0.014722108840942 "===" was faster
Output for hhvm-3.12.0
Time using '!': 0.043926000595093 Time using '===': 0.044049978256226 "!" was faster
Output for hhvm-3.10.0
Time using '!': 0.052442073822021 Time using '===': 0.050789833068848 "===" was faster
Output for 5.6.28
Time using '!': 0.071782112121582 Time using '===': 0.034066200256348 "===" was faster
Output for 5.6.21
Time using '!': 0.066746950149536 Time using '===': 0.030098915100098 "===" was faster
Output for 5.6.20
Time using '!': 0.069244146347046 Time using '===': 0.030948877334595 "===" was faster
Output for 5.6.19
Time using '!': 0.053505897521973 Time using '===': 0.029359102249146 "===" was faster
Output for 5.6.18
Time using '!': 0.052265882492065 Time using '===': 0.028235912322998 "===" was faster
Output for 5.6.17
Time using '!': 0.062891960144043 Time using '===': 0.030115127563477 "===" was faster
Output for 5.6.16
Time using '!': 0.060406923294067 Time using '===': 0.028725147247314 "===" was faster
Output for 5.6.15
Time using '!': 0.061141014099121 Time using '===': 0.030137062072754 "===" was faster
Output for 5.6.14
Time using '!': 0.062452793121338 Time using '===': 0.030487060546875 "===" was faster
Output for 5.6.13
Time using '!': 0.056437969207764 Time using '===': 0.028949022293091 "===" was faster
Output for 5.6.12
Time using '!': 0.050006151199341 Time using '===': 0.028560876846313 "===" was faster
Output for 5.6.11
Time using '!': 0.056220054626465 Time using '===': 0.028294086456299 "===" was faster
Output for 5.6.10
Time using '!': 0.051236867904663 Time using '===': 0.028825998306274 "===" was faster
Output for 5.6.9
Time using '!': 0.053797960281372 Time using '===': 0.028352022171021 "===" was faster
Output for 5.6.8
Time using '!': 0.067608833312988 Time using '===': 0.032397985458374 "===" was faster
Output for 5.6.7
Time using '!': 0.080636024475098 Time using '===': 0.034918069839478 "===" was faster
Output for 5.5.35
Time using '!': 0.049355030059814 Time using '===': 0.028046131134033 "===" was faster
Output for 5.5.34
Time using '!': 0.068011045455933 Time using '===': 0.03246283531189 "===" was faster
Output for 5.5.33
Time using '!': 0.053977012634277 Time using '===': 0.028276920318604 "===" was faster
Output for 5.5.32
Time using '!': 0.065683126449585 Time using '===': 0.031347990036011 "===" was faster
Output for 5.5.31
Time using '!': 0.054842948913574 Time using '===': 0.030547142028809 "===" was faster
Output for 5.5.30
Time using '!': 0.057100057601929 Time using '===': 0.028124094009399 "===" was faster
Output for 5.5.29
Time using '!': 0.06838583946228 Time using '===': 0.032553911209106 "===" was faster
Output for 5.5.28
Time using '!': 0.066303014755249 Time using '===': 0.03144097328186 "===" was faster
Output for 5.5.27
Time using '!': 0.066605091094971 Time using '===': 0.032608032226562 "===" was faster
Output for 5.5.26
Time using '!': 0.062052965164185 Time using '===': 0.029158115386963 "===" was faster
Output for 5.5.25
Time using '!': 0.067471027374268 Time using '===': 0.031795024871826 "===" was faster
Output for 5.5.24
Time using '!': 0.069145202636719 Time using '===': 0.032803058624268 "===" was faster
Output for 5.4.45
Time using '!': 0.047382831573486 Time using '===': 0.051277875900269 "!" was faster
Output for 5.4.44
Time using '!': 0.066812992095947 Time using '===': 0.032924890518188 "===" was faster
Output for 5.4.43
Time using '!': 0.064099073410034 Time using '===': 0.031598091125488 "===" was faster
Output for 5.4.42
Time using '!': 0.066750049591064 Time using '===': 0.028980016708374 "===" was faster
Output for 5.4.41
Time using '!': 0.048237085342407 Time using '===': 0.027613878250122 "===" was faster
Output for 5.4.40
Time using '!': 0.066365003585815 Time using '===': 0.032729148864746 "===" was faster
Output for 5.4.39
Time using '!': 0.067301988601685 Time using '===': 0.03274393081665 "===" was faster
Output for 5.4.38
Time using '!': 0.069049835205078 Time using '===': 0.03231406211853 "===" was faster
Output for 5.4.37
Time using '!': 0.070065021514893 Time using '===': 0.033151149749756 "===" was faster
Output for 5.4.36
Time using '!': 0.069453954696655 Time using '===': 0.033826112747192 "===" was faster
Output for 5.4.35
Time using '!': 0.047427892684937 Time using '===': 0.027567148208618 "===" was faster
Output for 5.4.34
Time using '!': 0.047444820404053 Time using '===': 0.027575969696045 "===" was faster
Output for 5.4.32
Time using '!': 0.04982590675354 Time using '===': 0.027487993240356 "===" was faster
Output for 5.4.31
Time using '!': 0.067299127578735 Time using '===': 0.032656908035278 "===" was faster
Output for 5.4.30
Time using '!': 0.052765846252441 Time using '===': 0.027799129486084 "===" was faster
Output for 5.4.29
Time using '!': 0.05089807510376 Time using '===': 0.027590990066528 "===" was faster
Output for 5.4.28
Time using '!': 0.069432020187378 Time using '===': 0.035369157791138 "===" was faster
Output for 5.4.27
Time using '!': 0.068024158477783 Time using '===': 0.035619974136353 "===" was faster
Output for 5.4.26
Time using '!': 0.058081865310669 Time using '===': 0.027572870254517 "===" was faster
Output for 5.4.25
Time using '!': 0.047294139862061 Time using '===': 0.027537107467651 "===" was faster
Output for 5.4.24
Time using '!': 0.046768188476562 Time using '===': 0.026810884475708 "===" was faster
Output for 5.4.23
Time using '!': 0.046376943588257 Time using '===': 0.026921033859253 "===" was faster
Output for 5.4.22
Time using '!': 0.047391891479492 Time using '===': 0.027450084686279 "===" was faster
Output for 5.4.21
Time using '!': 0.047821998596191 Time using '===': 0.026764154434204 "===" was faster
Output for 5.4.20
Time using '!': 0.046586990356445 Time using '===': 0.026789903640747 "===" was faster
Output for 5.4.19
Time using '!': 0.04942512512207 Time using '===': 0.028162002563477 "===" was faster
Output for 5.4.18
Time using '!': 0.048894882202148 Time using '===': 0.027623891830444 "===" was faster
Output for 5.4.17
Time using '!': 0.045866966247559 Time using '===': 0.026638031005859 "===" was faster
Output for 5.4.16
Time using '!': 0.046060085296631 Time using '===': 0.045029878616333 "===" was faster
Output for 5.4.15
Time using '!': 0.052794933319092 Time using '===': 0.029541015625 "===" was faster
Output for 5.4.14
Time using '!': 0.046785831451416 Time using '===': 0.028450965881348 "===" was faster
Output for 5.4.13
Time using '!': 0.045154094696045 Time using '===': 0.02662181854248 "===" was faster
Output for 5.4.12
Time using '!': 0.050920963287354 Time using '===': 0.033688068389893 "===" was faster
Output for 5.4.11
Time using '!': 0.059054851531982 Time using '===': 0.032240152359009 "===" was faster
Output for 5.4.10
Time using '!': 0.046080112457275 Time using '===': 0.026798009872437 "===" was faster
Output for 5.4.9
Time using '!': 0.047197103500366 Time using '===': 0.027560949325562 "===" was faster
Output for 5.4.8
Time using '!': 0.061758041381836 Time using '===': 0.034873962402344 "===" was faster
Output for 5.4.7
Time using '!': 0.055227994918823 Time using '===': 0.028191089630127 "===" was faster
Output for 5.4.6
Time using '!': 0.049154043197632 Time using '===': 0.027519941329956 "===" was faster
Output for 5.4.5
Time using '!': 0.049171924591064 Time using '===': 0.028541088104248 "===" was faster
Output for 5.4.4
Time using '!': 0.048781871795654 Time using '===': 0.027530908584595 "===" was faster
Output for 5.4.3
Time using '!': 0.047259092330933 Time using '===': 0.027533769607544 "===" was faster
Output for 5.4.2
Time using '!': 0.069204092025757 Time using '===': 0.032580137252808 "===" was faster
Output for 5.4.1
Time using '!': 0.059118032455444 Time using '===': 0.027939081192017 "===" was faster
Output for 5.4.0
Time using '!': 0.064711809158325 Time using '===': 0.032227039337158 "===" was faster
Output for 5.3.29
Time using '!': 0.067044019699097 Time using '===': 0.041424036026001 "===" was faster
Output for 5.3.28
Time using '!': 0.052862882614136 Time using '===': 0.036610841751099 "===" was faster
Output for 5.3.27
Time using '!': 0.051360845565796 Time using '===': 0.034270048141479 "===" was faster
Output for 5.3.26
Time using '!': 0.051955938339233 Time using '===': 0.035023927688599 "===" was faster
Output for 5.3.25
Time using '!': 0.056168794631958 Time using '===': 0.034693002700806 "===" was faster
Output for 5.3.24
Time using '!': 0.062116861343384 Time using '===': 0.041183948516846 "===" was faster
Output for 5.3.23
Time using '!': 0.05125904083252 Time using '===': 0.034773111343384 "===" was faster
Output for 5.3.22
Time using '!': 0.059430122375488 Time using '===': 0.034705877304077 "===" was faster
Output for 5.3.21
Time using '!': 0.058794975280762 Time using '===': 0.039007902145386 "===" was faster
Output for 5.3.20
Time using '!': 0.077420949935913 Time using '===': 0.039916038513184 "===" was faster
Output for 5.3.19
Time using '!': 0.075971841812134 Time using '===': 0.041090965270996 "===" was faster
Output for 5.3.18
Time using '!': 0.058089971542358 Time using '===': 0.037177085876465 "===" was faster
Output for 5.3.17
Time using '!': 0.077362060546875 Time using '===': 0.041959047317505 "===" was faster
Output for 5.3.16
Time using '!': 0.075308084487915 Time using '===': 0.040063858032227 "===" was faster
Output for 5.3.15
Time using '!': 0.067615032196045 Time using '===': 0.036164045333862 "===" was faster
Output for 5.3.14
Time using '!': 0.078874111175537 Time using '===': 0.042755126953125 "===" was faster
Output for 5.3.13
Time using '!': 0.055983066558838 Time using '===': 0.035799026489258 "===" was faster
Output for 5.3.12
Time using '!': 0.067266941070557 Time using '===': 0.037080049514771 "===" was faster
Output for 5.3.11
Time using '!': 0.064507007598877 Time using '===': 0.03627610206604 "===" was faster
Output for 5.3.10
Time using '!': 0.07883095741272 Time using '===': 0.043874979019165 "===" was faster
Output for 5.3.9
Time using '!': 0.068532943725586 Time using '===': 0.038758993148804 "===" was faster
Output for 5.3.8
Time using '!': 0.076076030731201 Time using '===': 0.040581941604614 "===" was faster
Output for 5.3.7
Time using '!': 0.077301025390625 Time using '===': 0.040350914001465 "===" was faster
Output for 5.3.6
Time using '!': 0.083039045333862 Time using '===': 0.042531967163086 "===" was faster
Output for 5.3.5
Time using '!': 0.075757026672363 Time using '===': 0.039925098419189 "===" was faster
Output for 5.3.4
Time using '!': 0.055677175521851 Time using '===': 0.03528094291687 "===" was faster
Output for 5.3.3
Time using '!': 0.070148944854736 Time using '===': 0.042785882949829 "===" was faster
Output for 5.3.2
Time using '!': 0.069510936737061 Time using '===': 0.036098003387451 "===" was faster
Output for 5.3.1
Time using '!': 0.072623014450073 Time using '===': 0.039462804794312 "===" was faster
Output for 5.3.0
Time using '!': 0.07796311378479 Time using '===': 0.042919158935547 "===" was faster
Output for 5.2.17
Time using '!': 0.073240995407104 Time using '===': 0.045660018920898 "===" was faster
Output for 5.2.16
Time using '!': 0.089940786361694 Time using '===': 0.051694869995117 "===" was faster
Output for 5.2.15
Time using '!': 0.086732864379883 Time using '===': 0.04852294921875 "===" was faster
Output for 5.2.14
Time using '!': 0.063760995864868 Time using '===': 0.046186923980713 "===" was faster
Output for 5.2.13
Time using '!': 0.067901134490967 Time using '===': 0.045336961746216 "===" was faster
Output for 5.2.12
Time using '!': 0.064426183700562 Time using '===': 0.045685052871704 "===" was faster
Output for 5.2.11
Time using '!': 0.077018022537231 Time using '===': 0.046012163162231 "===" was faster
Output for 5.2.10
Time using '!': 0.090447187423706 Time using '===': 0.05243992805481 "===" was faster
Output for 5.2.9
Time using '!': 0.083639860153198 Time using '===': 0.049513816833496 "===" was faster
Output for 5.2.8
Time using '!': 0.076551914215088 Time using '===': 0.045831918716431 "===" was faster
Output for 5.2.7
Time using '!': 0.078516006469727 Time using '===': 0.046561002731323 "===" was faster
Output for 5.2.6
Time using '!': 0.088941097259521 Time using '===': 0.048896074295044 "===" was faster
Output for 5.2.5
Time using '!': 0.092929124832153 Time using '===': 0.05436897277832 "===" was faster
Output for 5.2.4
Time using '!': 0.090288877487183 Time using '===': 0.049561023712158 "===" was faster
Output for 5.2.3
Time using '!': 0.070074081420898 Time using '===': 0.048786878585815 "===" was faster
Output for 5.2.2
Time using '!': 0.11832594871521 Time using '===': 0.047324180603027 "===" was faster
Output for 5.2.1
Time using '!': 0.073302984237671 Time using '===': 0.044371128082275 "===" was faster
Output for 5.2.0
Time using '!': 0.069617986679077 Time using '===': 0.046188116073608 "===" was faster
Output for 5.1.6
Time using '!': 0.077400922775269 Time using '===': 0.047746896743774 "===" was faster
Output for 5.1.5
Time using '!': 0.064235925674438 Time using '===': 0.049759149551392 "===" was faster
Output for 5.1.4
Time using '!': 0.063653945922852 Time using '===': 0.048996210098267 "===" was faster
Output for 5.1.3
Time using '!': 0.093287944793701 Time using '===': 0.05306601524353 "===" was faster
Output for 5.1.2
Time using '!': 0.086752891540527 Time using '===': 0.064486980438232 "===" was faster
Output for 5.1.1
Time using '!': 0.061914920806885 Time using '===': 0.064973831176758 "!" was faster
Output for 5.1.0
Time using '!': 0.076888084411621 Time using '===': 0.066206932067871 "===" was faster
Output for 5.0.5
Time using '!': 0.14479112625122 Time using '===': 0.14323496818542 "===" was faster
Output for 5.0.4
Time using '!': 0.1285879611969 Time using '===': 0.13760900497437 "!" was faster
Output for 5.0.3
Time using '!': 0.1577410697937 Time using '===': 0.13523101806641 "===" was faster
Output for 5.0.2
Time using '!': 0.13781404495239 Time using '===': 0.1326699256897 "===" was faster
Output for 5.0.1
Time using '!': 0.1260678768158 Time using '===': 0.13091206550598 "!" was faster
Output for 5.0.0
Time using '!': 0.1361300945282 Time using '===': 0.13169002532959 "===" was faster
Output for 4.4.9
Time using '!': 0.156421 Time using '===': 0.128871 "===" was faster
Output for 4.4.8
Time using '!': 0.159873 Time using '===': -0.871738 "===" was faster
Output for 4.4.7
Time using '!': 0.161188 Time using '===': 0.133489 "===" was faster
Output for 4.4.6
Time using '!': -0.842247 Time using '===': 0.166444 "!" was faster
Output for 4.4.5
Time using '!': 0.13351 Time using '===': 0.128791 "===" was faster
Output for 4.4.4
Time using '!': 0.151091 Time using '===': -0.87134 "===" was faster
Output for 4.4.3
Time using '!': 0.149103 Time using '===': 0.133731 "===" was faster
Output for 4.4.2
Time using '!': 0.167371 Time using '===': -0.867128 "===" was faster
Output for 4.4.1
Time using '!': 0.153089 Time using '===': -0.85152 "===" was faster
Output for 4.4.0
Time using '!': 0.128244 Time using '===': 0.131948 "!" was faster
Output for 4.3.11
Time using '!': 0.154643 Time using '===': 0.127873 "===" was faster
Output for 4.3.10
Time using '!': 0.166965 Time using '===': 0.127769 "===" was faster
Output for 4.3.9
Time using '!': 0.132461 Time using '===': 0.124026 "===" was faster
Output for 4.3.8
Time using '!': 0.163108 Time using '===': 0.13156 "===" was faster
Output for 4.3.7
Time using '!': -0.839657 Time using '===': 0.125494 "!" was faster
Output for 4.3.6
Time using '!': 0.137067 Time using '===': 0.132666 "===" was faster
Output for 4.3.5
Time using '!': -0.882556 Time using '===': 0.128995 "!" was faster
Output for 4.3.4
Time using '!': 0.132773 Time using '===': 0.123292 "===" was faster
Output for 4.3.3
Time using '!': 0.107753 Time using '===': 0.122584 "!" was faster
Output for 4.3.2
Time using '!': 0.162884 Time using '===': 0.125713 "===" was faster
Output for 4.3.1
Time using '!': 0.149905 Time using '===': 0.123745 "===" was faster
Output for 4.3.0
Time using '!': -0.852054 Time using '===': 0.123139 "!" was faster