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){ $p = ($time1-$time2)/$time2; echo "'===' was faster by $p%"; } else { $p = ($time2-$time1)/$time1; echo "'!' was faster by $p%"; }
Output for 7.1.0
'===' was faster by 0.62778505897772%
Output for 7.0.14
'===' was faster by 0.57082748948107%
Output for 7.0.11
'===' was faster by 0.29299363057325%
Output for 7.0.10
'===' was faster by 0.69574468085106%
Output for 7.0.9
'===' was faster by 0.74198473282443%
Output for 7.0.8
'===' was faster by 0.77266387726639%
Output for 7.0.7
'===' was faster by 0.71523178807947%
Output for 7.0.6
'===' was faster by 0.67357512953368%
Output for 7.0.5
'===' was faster by 0.65252525252525%
Output for 7.0.4
'===' was faster by 0.33377483443709%
Output for 7.0.3
'===' was faster by 0.66060606060606%
Output for 7.0.2
'===' was faster by 0.34953703703704%
Output for 7.0.1
'===' was faster by 0.40881458966565%
Output for 7.0.0
'===' was faster by 0.68048359240069%
Output for hhvm-3.13.2
'===' was faster by 0.047695390781563%
Output for hhvm-3.12.0
'===' was faster by 0.08504854368932%
Output for hhvm-3.10.0
'===' was faster by 0.46738461538462%
Output for 5.6.28
'===' was faster by 0.78044955567172%
Output for 5.6.25
'===' was faster by 0.72624292007552%
Output for 5.6.24
'===' was faster by 0.92275221612495%
Output for 5.6.23
'===' was faster by 0.70569029850746%
Output for 5.6.22
'===' was faster by 0.44552196235026%
Output for 5.6.21
'===' was faster by 0.47582037996546%
Output for 5.6.20
'===' was faster by 0.71767095463778%
Output for 5.6.19
'===' was faster by 0.70765370138018%
Output for 5.6.18
'===' was faster by 0.71109271523179%
Output for 5.6.17
'===' was faster by 0.6594427244582%
Output for 5.6.16
'===' was faster by 0.77805486284289%
Output for 5.6.15
'===' was faster by 0.72566949706074%
Output for 5.6.14
'===' was faster by 0.61819090454773%
Output for 5.6.13
'===' was faster by 0.67615658362989%
Output for 5.6.12
'===' was faster by 0.63569553805774%
Output for 5.6.11
'===' was faster by 0.7098133654425%
Output for 5.6.10
'===' was faster by 0.69539078156313%
Output for 5.6.9
'===' was faster by 0.40310465698548%
Output for 5.6.8
'===' was faster by 0.73620309050773%
Output for 5.6.7
'===' was faster by 0.70421052631579%
Output for 5.6.6
'===' was faster by 0.71698113207547%
Output for 5.6.5
'===' was faster by 0.80265435660704%
Output for 5.6.4
'===' was faster by 0.92588883324987%
Output for 5.6.3
'===' was faster by 0.76600441501104%
Output for 5.6.2
'===' was faster by 0.78542510121457%
Output for 5.6.1
'===' was faster by 0.75660377358491%
Output for 5.6.0
'===' was faster by 0.79398148148148%
Output for 5.5.38
'===' was faster by 0.94127906976744%
Output for 5.5.37
'===' was faster by 0.62203626220363%
Output for 5.5.36
'===' was faster by 0.73813333333333%
Output for 5.5.35
'===' was faster by 0.71721084670725%
Output for 5.5.34
'===' was faster by 0.84905660377358%
Output for 5.5.33
'===' was faster by 0.56381957773512%
Output for 5.5.32
'===' was faster by 0.74652987326494%
Output for 5.5.31
'===' was faster by 0.75246132208158%
Output for 5.5.30
'===' was faster by 0.71501457725948%
Output for 5.5.29
'===' was faster by 0.81584739545121%
Output for 5.5.28
'===' was faster by 0.79573512906846%
Output for 5.5.27
'===' was faster by 0.94641661085064%
Output for 5.5.26
'===' was faster by 0.60541871921182%
Output for 5.5.25
'===' was faster by 0.71580928481807%
Output for 5.5.24
'===' was faster by 0.73154800783801%
Output for 5.5.23
'===' was faster by 0.71136720796228%
Output for 5.5.22
'===' was faster by 0.71287128712871%
Output for 5.5.21
'===' was faster by 1.0221870047544%
Output for 5.5.20
'===' was faster by 0.62378502001144%
Output for 5.5.19
'===' was faster by 0.70588235294118%
Output for 5.5.18
'===' was faster by 0.70850935425468%
Output for 5.5.16
'===' was faster by 0.715859030837%
Output for 5.5.15
'===' was faster by 0.74157894736842%
Output for 5.5.14
'===' was faster by 0.71378340365682%
Output for 5.5.13
'===' was faster by 0.74630261660978%
Output for 5.5.12
'===' was faster by 0.3158820941487%
Output for 5.5.11
'===' was faster by 0.708071278826%
Output for 5.5.10
'===' was faster by 0.52645935624659%
Output for 5.5.9
'===' was faster by 0.73565121412804%
Output for 5.5.8
'===' was faster by 0.77483443708609%
Output for 5.5.7
'===' was faster by 0.60110294117647%
Output for 5.5.6
'===' was faster by 0.72618453865337%
Output for 5.5.5
'===' was faster by 0.74193548387097%
Output for 5.5.4
'===' was faster by 0.71051120045951%
Output for 5.5.3
'===' was faster by 0.72067988668555%
Output for 5.5.2
'===' was faster by 0.72292545710267%
Output for 5.5.1
'===' was faster by 0.83615384615385%
Output for 5.5.0
'===' was faster by 0.70131421744325%
Output for 5.4.45
'===' was faster by 0.65531561461794%
Output for 5.4.44
'===' was faster by 0.65983906364301%
Output for 5.4.43
'===' was faster by 0.66734279918864%
Output for 5.4.42
'===' was faster by 0.6574614976102%
Output for 5.4.41
'===' was faster by 0.60666993624326%
Output for 5.4.40
'===' was faster by 0.57373737373737%
Output for 5.4.39
'===' was faster by 0.72142857142857%
Output for 5.4.38
'===' was faster by 0.64594594594595%
Output for 5.4.37
'===' was faster by 0.53832442067736%
Output for 5.4.36
'===' was faster by 0.65992925720061%
Output for 5.4.35
'===' was faster by 0.66349670811997%
Output for 5.4.34
'===' was faster by 0.66032064128257%
Output for 5.4.32
'===' was faster by 0.71184738955823%
Output for 5.4.31
'===' was faster by 0.65642994241843%
Output for 5.4.30
'===' was faster by 0.67788461538462%
Output for 5.4.29
'===' was faster by 0.74583741429971%
Output for 5.4.28
'===' was faster by 0.55243317340644%
Output for 5.4.27
'===' was faster by 0.69153225806452%
Output for 5.4.26
'===' was faster by 0.65656565656566%
Output for 5.4.25
'===' was faster by 0.67256637168142%
Output for 5.4.24
'===' was faster by 0.66897918731417%
Output for 5.4.23
'===' was faster by 0.61891744122471%
Output for 5.4.22
'===' was faster by 0.5360315893386%
Output for 5.4.21
'===' was faster by 0.65958451369216%
Output for 5.4.20
'===' was faster by 0.66716343765524%
Output for 5.4.19
'===' was faster by 0.74220489977728%
Output for 5.4.18
'===' was faster by 0.69736842105263%
Output for 5.4.17
'===' was faster by 0.65169162506933%
Output for 5.4.16
'===' was faster by 0.58108108108108%
Output for 5.4.15
'===' was faster by 0.67691532258065%
Output for 5.4.14
'===' was faster by 0.70947867298578%
Output for 5.4.13
'===' was faster by 0.64635316698656%
Output for 5.4.12
'===' was faster by 0.65326633165829%
Output for 5.4.11
'===' was faster by 0.56613343737807%
Output for 5.4.10
'===' was faster by 0.67075208913649%
Output for 5.4.9
'===' was faster by 0.68453805648636%
Output for 5.4.8
'===' was faster by 0.69289827255278%
Output for 5.4.7
'===' was faster by 0.70406976744186%
Output for 5.4.6
'===' was faster by 0.67415048543689%
Output for 5.4.5
'===' was faster by 0.67191225560324%
Output for 5.4.4
'===' was faster by 0.5473036896878%
Output for 5.4.3
'===' was faster by 0.65591966173362%
Output for 5.4.2
'===' was faster by 0.43701272055806%
Output for 5.4.1
'===' was faster by 0.77588466579292%
Output for 5.4.0
'===' was faster by 0.83206494165398%
Output for 5.3.29
'===' was faster by 0.52804532577904%
Output for 5.3.28
'===' was faster by 0.41216216216216%
Output for 5.3.27
'===' was faster by 0.47784810126582%
Output for 5.3.26
'===' was faster by 0.49162011173184%
Output for 5.3.25
'===' was faster by 0.81%
Output for 5.3.24
'===' was faster by 0.51746894409938%
Output for 5.3.23
'===' was faster by 0.74718008556982%
Output for 5.3.22
'===' was faster by 0.50081234768481%
Output for 5.3.21
'===' was faster by 0.506734619585%
Output for 5.3.20
'===' was faster by 1.0526887561108%
Output for 5.3.19
'===' was faster by 0.78659112370161%
Output for 5.3.18
'===' was faster by 0.49200304645849%
Output for 5.3.17
'===' was faster by 0.52103120759837%
Output for 5.3.16
'===' was faster by 0.36051123843103%
Output for 5.3.15
'===' was faster by 0.64869089488081%
Output for 5.3.14
'===' was faster by 0.53933910306845%
Output for 5.3.13
'===' was faster by 0.49593967517401%
Output for 5.3.12
'===' was faster by 0.53344275748872%
Output for 5.3.11
'===' was faster by 0.65800089645899%
Output for 5.3.10
'===' was faster by 0.49668874172185%
Output for 5.3.9
'===' was faster by 0.49329244921426%
Output for 5.3.8
'===' was faster by 0.5139808682855%
Output for 5.3.7
'===' was faster by 0.50332299512627%
Output for 5.3.6
'===' was faster by 0.56544088572558%
Output for 5.3.5
'===' was faster by 0.48431618569636%
Output for 5.3.4
'===' was faster by 0.50546647230321%
Output for 5.3.3
'===' was faster by 0.77430262045647%
Output for 5.3.2
'===' was faster by 0.51929012345679%
Output for 5.3.1
'===' was faster by 0.50158898305085%
Output for 5.3.0
'===' was faster by 0.47716718266254%
Output for 5.2.17
'===' was faster by 0.38315789473684%
Output for 5.2.16
'===' was faster by 0.31171494488593%
Output for 5.2.15
'===' was faster by 0.34814398200225%
Output for 5.2.14
'===' was faster by 0.34830132939439%
Output for 5.2.13
'===' was faster by 0.56868537666174%
Output for 5.2.12
'===' was faster by 0.408%
Output for 5.2.11
'===' was faster by 0.36752988047809%
Output for 5.2.10
'===' was faster by 0.40789473684211%
Output for 5.2.9
'===' was faster by 0.47679814385151%
Output for 5.2.8
'===' was faster by 0.38624338624339%
Output for 5.2.7
'===' was faster by 0.43107876712329%
Output for 5.2.6
'===' was faster by 0.34171696847753%
Output for 5.2.5
'===' was faster by 0.3363802559415%
Output for 5.2.4
'===' was faster by 0.16128048780488%
Output for 5.2.3
'===' was faster by 0.38373071528752%
Output for 5.2.2
'===' was faster by 0.41556027615507%
Output for 5.2.1
'===' was faster by 0.32068679036278%
Output for 5.2.0
'===' was faster by 0.35173878417839%
Output for 5.1.6
'===' was faster by 0.35237572095578%
Output for 5.1.5
'===' was faster by 0.2183081715792%
Output for 5.1.4
'===' was faster by 0.27417949462678%
Output for 5.1.3
'===' was faster by 0.31602822580645%
Output for 5.1.2
'===' was faster by 0.0081743869209809%
Output for 5.1.1
'!' was faster by 0.028778349533067%
Output for 5.1.0
'===' was faster by 0.054554193703437%
Output for 5.0.5
'!' was faster by 0.057576487593351%
Output for 5.0.4
'!' was faster by 0.050668968493742%
Output for 5.0.3
'!' was faster by 0.034307824591574%
Output for 5.0.2
'===' was faster by 0.18098039215686%
Output for 5.0.1
'!' was faster by 0.0007069913589945%
Output for 5.0.0
'!' was faster by 0.13610402235995%
Output for 4.4.9
'!' was faster by 0.077746925823086%
Output for 4.4.8
'!' was faster by 0.077057793345009%
Output for 4.4.7
'!' was faster by 0.085055643879173%
Output for 4.4.6
'!' was faster by 0.086452762923351%
Output for 4.4.5
'!' was faster by 0.089574708317651%
Output for 4.4.4
'===' was faster by 0.049484536082474%
Output for 4.4.3
'!' was faster by 0.074351978171897%
Output for 4.4.2
'!' was faster by 0.082229018008834%
Output for 4.4.1
'!' was faster by 0.017945109078114%
Output for 4.4.0
'!' was faster by 0.083174360930943%
Output for 4.3.11
'!' was faster by 0.083364626361247%
Output for 4.3.10
'!' was faster by 0.055150884495317%
Output for 4.3.9
'!' was faster by 0.080394387561623%
Output for 4.3.8
'!' was faster by 0.093693036820999%
Output for 4.3.7
'!' was faster by 0.0043391188251003%
Output for 4.3.6
'!' was faster by 0.10234375%
Output for 4.3.5
'===' was faster by 0.010448916408669%
Output for 4.3.4
'!' was faster by 0.14983579638752%
Output for 4.3.3
'!' was faster by 0.0436413228776%
Output for 4.3.2
'===' was faster by 0.00035273368606707%
Output for 4.3.1
'!' was faster by 0.04804469273743%
Output for 4.3.0
'!' was faster by 0.079906385824139%