3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = null; $var = new stdClass(); $time = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if (!$var) {} } $time = microtime(true) - $time; echo "Time using '!': $time\n"; $time = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if ($var === null) {} } $time = microtime(true) - $time; echo "Time using '===': $time\n";
Output for 7.1.0
Time using '!': 0.027214050292969 Time using '===': 0.016152858734131
Output for 7.0.14
Time using '!': 0.026946067810059 Time using '===': 0.016082048416138
Output for 7.0.6
Time using '!': 0.018281936645508 Time using '===': 0.01005482673645
Output for 7.0.5
Time using '!': 0.02331018447876 Time using '===': 0.014520168304443
Output for 7.0.4
Time using '!': 0.025075912475586 Time using '===': 0.014201879501343
Output for 7.0.3
Time using '!': 0.017422914505005 Time using '===': 0.01058292388916
Output for 7.0.2
Time using '!': 0.018352031707764 Time using '===': 0.010089159011841
Output for 7.0.1
Time using '!': 0.025845050811768 Time using '===': 0.014370918273926
Output for 7.0.0
Time using '!': 0.026365041732788 Time using '===': 0.014722108840942
Output for hhvm-3.12.0
Time using '!': 0.044841051101685 Time using '===': 0.042948007583618
Output for hhvm-3.10.0
Time using '!': 0.052879095077515 Time using '===': 0.051127910614014
Output for 5.6.28
Time using '!': 0.069806098937988 Time using '===': 0.034398078918457
Output for 5.6.21
Time using '!': 0.064153909683228 Time using '===': 0.031111001968384
Output for 5.6.20
Time using '!': 0.049892902374268 Time using '===': 0.028347969055176
Output for 5.6.19
Time using '!': 0.061275959014893 Time using '===': 0.029996871948242
Output for 5.6.18
Time using '!': 0.060205936431885 Time using '===': 0.029739141464233
Output for 5.6.17
Time using '!': 0.067329883575439 Time using '===': 0.032217979431152
Output for 5.6.16
Time using '!': 0.06110405921936 Time using '===': 0.029633045196533
Output for 5.6.15
Time using '!': 0.067580938339233 Time using '===': 0.028274059295654
Output for 5.6.14
Time using '!': 0.056420087814331 Time using '===': 0.02855110168457
Output for 5.6.13
Time using '!': 0.06821608543396 Time using '===': 0.031715869903564
Output for 5.6.12
Time using '!': 0.049178123474121 Time using '===': 0.028043985366821
Output for 5.6.11
Time using '!': 0.053185224533081 Time using '===': 0.02935004234314
Output for 5.6.10
Time using '!': 0.047662973403931 Time using '===': 0.027266979217529
Output for 5.6.9
Time using '!': 0.047329902648926 Time using '===': 0.027278184890747
Output for 5.6.8
Time using '!': 0.048205852508545 Time using '===': 0.027364015579224
Output for 5.6.7
Time using '!': 0.053776025772095 Time using '===': 0.027522087097168
Output for 5.6.6
Time using '!': 0.047279119491577 Time using '===': 0.027462005615234
Output for 5.6.5
Time using '!': 0.06585693359375 Time using '===': 0.030519962310791
Output for 5.6.4
Time using '!': 0.063897848129272 Time using '===': 0.031178951263428
Output for 5.6.3
Time using '!': 0.068520069122314 Time using '===': 0.031306028366089
Output for 5.6.2
Time using '!': 0.064527034759521 Time using '===': 0.031080961227417
Output for 5.6.1
Time using '!': 0.063625812530518 Time using '===': 0.033949136734009
Output for 5.6.0
Time using '!': 0.071280002593994 Time using '===': 0.032088041305542
Output for 5.5.35
Time using '!': 0.057955026626587 Time using '===': 0.03016185760498
Output for 5.5.34
Time using '!': 0.063722133636475 Time using '===': 0.030459880828857
Output for 5.5.33
Time using '!': 0.069454908370972 Time using '===': 0.032489061355591
Output for 5.5.32
Time using '!': 0.066695928573608 Time using '===': 0.031838893890381
Output for 5.5.31
Time using '!': 0.067183017730713 Time using '===': 0.031769037246704
Output for 5.5.30
Time using '!': 0.068733930587769 Time using '===': 0.032295942306519
Output for 5.5.29
Time using '!': 0.049094915390015 Time using '===': 0.028063058853149
Output for 5.5.28
Time using '!': 0.049695014953613 Time using '===': 0.028097867965698
Output for 5.5.27
Time using '!': 0.048035860061646 Time using '===': 0.027412176132202
Output for 5.5.26
Time using '!': 0.057409048080444 Time using '===': 0.0326988697052
Output for 5.5.25
Time using '!': 0.059965133666992 Time using '===': 0.028524875640869
Output for 5.5.24
Time using '!': 0.047569036483765 Time using '===': 0.027247905731201
Output for 5.5.23
Time using '!': 0.047463893890381 Time using '===': 0.031146049499512
Output for 5.5.22
Time using '!': 0.047653913497925 Time using '===': 0.028916120529175
Output for 5.5.21
Time using '!': 0.047682046890259 Time using '===': 0.027427911758423
Output for 5.5.20
Time using '!': 0.068285942077637 Time using '===': 0.032468795776367
Output for 5.5.19
Time using '!': 0.058795928955078 Time using '===': 0.029155015945435
Output for 5.5.18
Time using '!': 0.048975944519043 Time using '===': 0.028061866760254
Output for 5.5.16
Time using '!': 0.062083005905151 Time using '===': 0.032156229019165
Output for 5.5.15
Time using '!': 0.066118001937866 Time using '===': 0.028994798660278
Output for 5.5.14
Time using '!': 0.050469875335693 Time using '===': 0.028053998947144
Output for 5.5.13
Time using '!': 0.063498020172119 Time using '===': 0.030549049377441
Output for 5.5.12
Time using '!': 0.061918020248413 Time using '===': 0.030372142791748
Output for 5.5.11
Time using '!': 0.070267915725708 Time using '===': 0.032737970352173
Output for 5.5.10
Time using '!': 0.062016010284424 Time using '===': 0.032678127288818
Output for 5.5.9
Time using '!': 0.060333013534546 Time using '===': 0.039037942886353
Output for 5.5.8
Time using '!': 0.055436134338379 Time using '===': 0.028335094451904
Output for 5.5.7
Time using '!': 0.06859302520752 Time using '===': 0.030864000320435
Output for 5.5.6
Time using '!': 0.049280881881714 Time using '===': 0.028278112411499
Output for 5.5.5
Time using '!': 0.068645000457764 Time using '===': 0.034049987792969
Output for 5.5.4
Time using '!': 0.059013843536377 Time using '===': 0.029259920120239
Output for 5.5.3
Time using '!': 0.070605993270874 Time using '===': 0.033435106277466
Output for 5.5.2
Time using '!': 0.070687055587769 Time using '===': 0.031384944915771
Output for 5.5.1
Time using '!': 0.067822933197021 Time using '===': 0.032145023345947
Output for 5.5.0
Time using '!': 0.054670095443726 Time using '===': 0.028136968612671
Output for 5.4.45
Time using '!': 0.049056053161621 Time using '===': 0.027427911758423
Output for 5.4.44
Time using '!': 0.05929708480835 Time using '===': 0.033233165740967
Output for 5.4.43
Time using '!': 0.045805931091309 Time using '===': 0.026789903640747
Output for 5.4.42
Time using '!': 0.04591703414917 Time using '===': 0.026731967926025
Output for 5.4.41
Time using '!': 0.046639919281006 Time using '===': 0.027170896530151
Output for 5.4.40
Time using '!': 0.046123027801514 Time using '===': 0.026838064193726
Output for 5.4.39
Time using '!': 0.053154945373535 Time using '===': 0.03105092048645
Output for 5.4.38
Time using '!': 0.048131942749023 Time using '===': 0.026649951934814
Output for 5.4.37
Time using '!': 0.050943851470947 Time using '===': 0.026723861694336
Output for 5.4.36
Time using '!': 0.054481029510498 Time using '===': 0.027752876281738
Output for 5.4.35
Time using '!': 0.066437005996704 Time using '===': 0.032132863998413
Output for 5.4.34
Time using '!': 0.064287185668945 Time using '===': 0.031466007232666
Output for 5.4.32
Time using '!': 0.06020712852478 Time using '===': 0.028525114059448
Output for 5.4.31
Time using '!': 0.066580057144165 Time using '===': 0.031805992126465
Output for 5.4.30
Time using '!': 0.064761161804199 Time using '===': 0.029881954193115
Output for 5.4.29
Time using '!': 0.067406892776489 Time using '===': 0.032259941101074
Output for 5.4.28
Time using '!': 0.047327041625977 Time using '===': 0.02751898765564
Output for 5.4.27
Time using '!': 0.06971287727356 Time using '===': 0.033078193664551
Output for 5.4.26
Time using '!': 0.050994157791138 Time using '===': 0.027687072753906
Output for 5.4.25
Time using '!': 0.058904886245728 Time using '===': 0.032109975814819
Output for 5.4.24
Time using '!': 0.047302007675171 Time using '===': 0.027519941329956
Output for 5.4.23
Time using '!': 0.070881843566895 Time using '===': 0.032906055450439
Output for 5.4.22
Time using '!': 0.059576988220215 Time using '===': 0.028984069824219
Output for 5.4.21
Time using '!': 0.067406892776489 Time using '===': 0.032238960266113
Output for 5.4.20
Time using '!': 0.049299001693726 Time using '===': 0.027596950531006
Output for 5.4.19
Time using '!': 0.061552047729492 Time using '===': 0.030974864959717
Output for 5.4.18
Time using '!': 0.066006898880005 Time using '===': 0.031767129898071
Output for 5.4.17
Time using '!': 0.067329883575439 Time using '===': 0.032435894012451
Output for 5.4.16
Time using '!': 0.065426111221313 Time using '===': 0.03190803527832
Output for 5.4.15
Time using '!': 0.065777778625488 Time using '===': 0.031984806060791
Output for 5.4.14
Time using '!': 0.067445993423462 Time using '===': 0.03132700920105
Output for 5.4.13
Time using '!': 0.068108081817627 Time using '===': 0.033304929733276
Output for 5.4.12
Time using '!': 0.05817699432373 Time using '===': 0.028496980667114
Output for 5.4.11
Time using '!': 0.073653936386108 Time using '===': 0.032226800918579
Output for 5.4.10
Time using '!': 0.06040096282959 Time using '===': 0.028411865234375
Output for 5.4.9
Time using '!': 0.06742787361145 Time using '===': 0.032341003417969
Output for 5.4.8
Time using '!': 0.059731960296631 Time using '===': 0.032593011856079
Output for 5.4.7
Time using '!': 0.065219879150391 Time using '===': 0.028067111968994
Output for 5.4.6
Time using '!': 0.063334941864014 Time using '===': 0.029917001724243
Output for 5.4.5
Time using '!': 0.066484212875366 Time using '===': 0.032208919525146
Output for 5.4.4
Time using '!': 0.06859302520752 Time using '===': 0.032853126525879
Output for 5.4.3
Time using '!': 0.062449932098389 Time using '===': 0.029575109481812
Output for 5.4.2
Time using '!': 0.06470513343811 Time using '===': 0.031473159790039
Output for 5.4.1
Time using '!': 0.068942070007324 Time using '===': 0.032579898834229
Output for 5.4.0
Time using '!': 0.062246799468994 Time using '===': 0.031053066253662
Output for 5.3.29
Time using '!': 0.070544958114624 Time using '===': 0.037568807601929
Output for 5.3.28
Time using '!': 0.05351185798645 Time using '===': 0.035730838775635
Output for 5.3.27
Time using '!': 0.072646141052246 Time using '===': 0.040012836456299
Output for 5.3.26
Time using '!': 0.064385175704956 Time using '===': 0.036684036254883
Output for 5.3.25
Time using '!': 0.053486824035645 Time using '===': 0.035624027252197
Output for 5.3.24
Time using '!': 0.071538209915161 Time using '===': 0.04057502746582
Output for 5.3.23
Time using '!': 0.082696914672852 Time using '===': 0.04283618927002
Output for 5.3.22
Time using '!': 0.058280944824219 Time using '===': 0.036409139633179
Output for 5.3.21
Time using '!': 0.08100700378418 Time using '===': 0.045248985290527
Output for 5.3.20
Time using '!': 0.057131052017212 Time using '===': 0.036293029785156
Output for 5.3.19
Time using '!': 0.072309970855713 Time using '===': 0.03736686706543
Output for 5.3.18
Time using '!': 0.077975988388062 Time using '===': 0.039705991744995
Output for 5.3.17
Time using '!': 0.074781179428101 Time using '===': 0.039486885070801
Output for 5.3.16
Time using '!': 0.076143980026245 Time using '===': 0.039505958557129
Output for 5.3.15
Time using '!': 0.076235055923462 Time using '===': 0.041232109069824
Output for 5.3.14
Time using '!': 0.070369005203247 Time using '===': 0.047092914581299
Output for 5.3.13
Time using '!': 0.071489095687866 Time using '===': 0.03636908531189
Output for 5.3.12
Time using '!': 0.065389156341553 Time using '===': 0.037482023239136
Output for 5.3.11
Time using '!': 0.065876007080078 Time using '===': 0.036314964294434
Output for 5.3.10
Time using '!': 0.079230070114136 Time using '===': 0.040992975234985
Output for 5.3.9
Time using '!': 0.075989007949829 Time using '===': 0.039930820465088
Output for 5.3.8
Time using '!': 0.069132089614868 Time using '===': 0.037565946578979
Output for 5.3.7
Time using '!': 0.068565130233765 Time using '===': 0.038939952850342
Output for 5.3.6
Time using '!': 0.080743074417114 Time using '===': 0.037429809570312
Output for 5.3.5
Time using '!': 0.058253049850464 Time using '===': 0.036542892456055
Output for 5.3.4
Time using '!': 0.056763887405396 Time using '===': 0.036584138870239
Output for 5.3.3
Time using '!': 0.055722951889038 Time using '===': 0.036115884780884
Output for 5.3.2
Time using '!': 0.064890146255493 Time using '===': 0.036704063415527
Output for 5.3.1
Time using '!': 0.068080902099609 Time using '===': 0.038115978240967
Output for 5.3.0
Time using '!': 0.074588060379028 Time using '===': 0.038634061813354
Output for 5.2.17
Time using '!': 0.067816019058228 Time using '===': 0.045644998550415
Output for 5.2.16
Time using '!': 0.089108943939209 Time using '===': 0.049559116363525
Output for 5.2.15
Time using '!': 0.062652111053467 Time using '===': 0.046803951263428
Output for 5.2.14
Time using '!': 0.063863039016724 Time using '===': 0.04617714881897
Output for 5.2.13
Time using '!': 0.0849289894104 Time using '===': 0.0486900806427
Output for 5.2.12
Time using '!': 0.084712982177734 Time using '===': 0.047230005264282
Output for 5.2.11
Time using '!': 0.082498073577881 Time using '===': 0.045847177505493
Output for 5.2.10
Time using '!': 0.063368082046509 Time using '===': 0.045974016189575
Output for 5.2.9
Time using '!': 0.080671787261963 Time using '===': 0.046643972396851
Output for 5.2.8
Time using '!': 0.064579010009766 Time using '===': 0.04601001739502
Output for 5.2.7
Time using '!': 0.093418121337891 Time using '===': 0.0506911277771
Output for 5.2.6
Time using '!': 0.063482999801636 Time using '===': 0.046016931533813
Output for 5.2.5
Time using '!': 0.088578939437866 Time using '===': 0.04936695098877
Output for 5.2.4
Time using '!': 0.088987112045288 Time using '===': 0.050009965896606
Output for 5.2.3
Time using '!': 0.089077949523926 Time using '===': 0.05048394203186
Output for 5.2.2
Time using '!': 0.11842393875122 Time using '===': 0.047432899475098
Output for 5.2.1
Time using '!': 0.060373067855835 Time using '===': 0.043582916259766
Output for 5.2.0
Time using '!': 0.070432901382446 Time using '===': 0.046451091766357
Output for 5.1.6
Time using '!': 0.088846921920776 Time using '===': 0.046290874481201
Output for 5.1.5
Time using '!': 0.098664999008179 Time using '===': 0.05344295501709
Output for 5.1.4
Time using '!': 0.063029050827026 Time using '===': 0.048978090286255
Output for 5.1.3
Time using '!': 0.088857889175415 Time using '===': 0.050657987594604
Output for 5.1.2
Time using '!': 0.0847008228302 Time using '===': 0.068331003189087
Output for 5.1.1
Time using '!': 0.077080965042114 Time using '===': 0.066234111785889
Output for 5.1.0
Time using '!': 0.061506986618042 Time using '===': 0.06334114074707
Output for 5.0.5
Time using '!': 0.13434505462646 Time using '===': 0.14261484146118
Output for 5.0.4
Time using '!': 0.16915392875671 Time using '===': 0.15457701683044
Output for 5.0.3
Time using '!': 0.16382598876953 Time using '===': 0.13740301132202
Output for 5.0.2
Time using '!': 0.13073301315308 Time using '===': 0.13428902626038
Output for 5.0.1
Time using '!': 0.18761897087097 Time using '===': 0.17695808410645
Output for 5.0.0
Time using '!': 0.15218901634216 Time using '===': 0.13376688957214
Output for 4.4.9
Time using '!': 0.116467 Time using '===': -0.87158
Output for 4.4.8
Time using '!': 0.115467 Time using '===': 0.128622
Output for 4.4.7
Time using '!': 0.152144 Time using '===': 0.128768
Output for 4.4.6
Time using '!': -0.871564 Time using '===': 0.127653
Output for 4.4.5
Time using '!': 0.148438 Time using '===': 0.129324
Output for 4.4.4
Time using '!': 0.132389 Time using '===': 0.128128
Output for 4.4.3
Time using '!': 0.1253 Time using '===': -0.867154
Output for 4.4.2
Time using '!': 0.163006 Time using '===': 0.132442
Output for 4.4.1
Time using '!': 0.166477 Time using '===': 0.195578
Output for 4.4.0
Time using '!': 0.153946 Time using '===': 0.132568
Output for 4.3.11
Time using '!': 0.148431 Time using '===': 0.142302
Output for 4.3.10
Time using '!': -0.854502 Time using '===': 0.132032
Output for 4.3.9
Time using '!': 0.155449 Time using '===': -0.874701
Output for 4.3.8
Time using '!': 0.135117 Time using '===': 0.131565
Output for 4.3.7
Time using '!': 0.160384 Time using '===': 0.123974
Output for 4.3.6
Time using '!': 0.117979 Time using '===': 0.131955
Output for 4.3.5
Time using '!': 0.143391 Time using '===': 0.13289
Output for 4.3.4
Time using '!': 0.128658 Time using '===': 0.123171
Output for 4.3.3
Time using '!': 0.146853 Time using '===': 0.1243
Output for 4.3.2
Time using '!': -0.84858 Time using '===': 0.12612
Output for 4.3.1
Time using '!': 0.156119 Time using '===': 0.129606
Output for 4.3.0
Time using '!': 0.114099 Time using '===': -0.876793