3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $iterations = 1000000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = @$_GET['page'] ?: 'home'; } $suppressedTime = round(microtime(true) - $start, 8); $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = isset($_GET['page']) ? $_GET['page'] : 'home'; } $issetTime = round(microtime(true) - $start, 8); echo "results for {$iterations} iterations:\n\n"; echo "suppressed time: {$suppressedTime}\n"; echo "isset time: {$issetTime}\n\n"; echo "speed difference: " . round(100 / $suppressedTime * $issetTime, 2) . "%";
based on c6q3a
Output for 7.1.0
results for 1000000 iterations: suppressed time: 0.24855304 isset time: 0.02858305 speed difference: 11.5%
Output for 7.0.14
results for 1000000 iterations: suppressed time: 0.19847488 isset time: -0.04935598 speed difference: -24.87%
Output for 7.0.10
results for 1000000 iterations: suppressed time: 0.21590304 isset time: 0.02655411 speed difference: 12.3%
Output for 7.0.9
results for 1000000 iterations: suppressed time: 0.20303106 isset time: 0.02665496 speed difference: 13.13%
Output for 7.0.8
results for 1000000 iterations: suppressed time: 0.19040012 isset time: 0.02642107 speed difference: 13.88%
Output for 7.0.7
results for 1000000 iterations: suppressed time: 0.23305082 isset time: 0.0326159 speed difference: 14%
Output for 7.0.6
results for 1000000 iterations: suppressed time: 0.19489098 isset time: 0.02442503 speed difference: 12.53%
Output for 7.0.5
results for 1000000 iterations: suppressed time: 0.20639801 isset time: 0.02652693 speed difference: 12.85%
Output for 7.0.4
results for 1000000 iterations: suppressed time: 0.186553 isset time: 0.02664185 speed difference: 14.28%
Output for 7.0.3
results for 1000000 iterations: suppressed time: 0.20782995 isset time: 0.02653098 speed difference: 12.77%
Output for 7.0.2
results for 1000000 iterations: suppressed time: 0.18880296 isset time: 0.026613 speed difference: 14.1%
Output for 7.0.1
results for 1000000 iterations: suppressed time: 0.19919205 isset time: 0.02702403 speed difference: 13.57%
Output for 7.0.0
results for 1000000 iterations: suppressed time: 0.21514416 isset time: 0.02908897 speed difference: 13.52%
Output for hhvm-3.12.0
results for 1000000 iterations: suppressed time: 0.15746593 isset time: 0.11138701 speed difference: 70.74%
Output for hhvm-3.10.0
results for 1000000 iterations: suppressed time: 0.40462399 isset time: 0.14993811 speed difference: 37.06%
Output for 5.6.28
results for 1000000 iterations: suppressed time: 0.43219399 isset time: 0.11421108 speed difference: 26.43%
Output for 5.6.25
results for 1000000 iterations: suppressed time: 0.32497883 isset time: 0.06660914 speed difference: 20.5%
Output for 5.6.24
results for 1000000 iterations: suppressed time: 0.32695508 isset time: 0.07513404 speed difference: 22.98%
Output for 5.6.23
results for 1000000 iterations: suppressed time: 0.32277393 isset time: 0.06589603 speed difference: 20.42%
Output for 5.6.22
results for 1000000 iterations: suppressed time: 0.36443305 isset time: 0.08287597 speed difference: 22.74%
Output for 5.6.21
results for 1000000 iterations: suppressed time: 0.33698201 isset time: 0.0691669 speed difference: 20.53%
Output for 5.6.20
results for 1000000 iterations: suppressed time: 0.31762099 isset time: 0.07070804 speed difference: 22.26%
Output for 5.6.19
results for 1000000 iterations: suppressed time: 0.29137993 isset time: 0.06779695 speed difference: 23.27%
Output for 5.6.18
results for 1000000 iterations: suppressed time: 0.30268288 isset time: 0.06886601 speed difference: 22.75%
Output for 5.6.17
results for 1000000 iterations: suppressed time: 0.31294703 isset time: 0.06835985 speed difference: 21.84%
Output for 5.6.16
results for 1000000 iterations: suppressed time: 0.32131505 isset time: 0.06883097 speed difference: 21.42%
Output for 5.6.15
results for 1000000 iterations: suppressed time: 0.30878711 isset time: 0.067487 speed difference: 21.86%
Output for 5.6.14
results for 1000000 iterations: suppressed time: 0.3332231 isset time: 0.06791902 speed difference: 20.38%
Output for 5.6.13
results for 1000000 iterations: suppressed time: 0.37208104 isset time: 0.07945299 speed difference: 21.35%
Output for 5.6.12
results for 1000000 iterations: suppressed time: 0.33440995 isset time: 0.06750512 speed difference: 20.19%
Output for 5.6.11
results for 1000000 iterations: suppressed time: 0.29309201 isset time: 0.06814981 speed difference: 23.25%
Output for 5.6.10
results for 1000000 iterations: suppressed time: 0.30465007 isset time: 0.06779099 speed difference: 22.25%
Output for 5.6.9
results for 1000000 iterations: suppressed time: 0.31408715 isset time: 0.06879711 speed difference: 21.9%
Output for 5.6.8
results for 1000000 iterations: suppressed time: 0.31303 isset time: 0.0673759 speed difference: 21.52%
Output for 5.6.7
results for 1000000 iterations: suppressed time: 0.30268192 isset time: 0.06556797 speed difference: 21.66%
Output for 5.6.6
results for 1000000 iterations: suppressed time: 0.28983402 isset time: 0.06923008 speed difference: 23.89%
Output for 5.6.5
results for 1000000 iterations: suppressed time: 0.32742 isset time: 0.07552719 speed difference: 23.07%
Output for 5.6.4
results for 1000000 iterations: suppressed time: 0.34510303 isset time: 0.07042313 speed difference: 20.41%
Output for 5.6.3
results for 1000000 iterations: suppressed time: 0.341254 isset time: 0.06734109 speed difference: 19.73%
Output for 5.6.2
results for 1000000 iterations: suppressed time: 0.30482101 isset time: 0.06753898 speed difference: 22.16%
Output for 5.6.1
results for 1000000 iterations: suppressed time: 0.29699111 isset time: 0.06789804 speed difference: 22.86%
Output for 5.6.0
results for 1000000 iterations: suppressed time: 0.32686019 isset time: 0.06873178 speed difference: 21.03%
Output for 5.5.38
results for 1000000 iterations: suppressed time: 0.32483792 isset time: 0.07110119 speed difference: 21.89%
Output for 5.5.37
results for 1000000 iterations: suppressed time: 0.38960505 isset time: 0.07172608 speed difference: 18.41%
Output for 5.5.36
results for 1000000 iterations: suppressed time: 0.36376309 isset time: 0.07159591 speed difference: 19.68%
Output for 5.5.35
results for 1000000 iterations: suppressed time: 0.34751391 isset time: 0.08944702 speed difference: 25.74%
Output for 5.5.34
results for 1000000 iterations: suppressed time: 0.32164216 isset time: 0.07698798 speed difference: 23.94%
Output for 5.5.33
results for 1000000 iterations: suppressed time: 0.31126404 isset time: 0.07252908 speed difference: 23.3%
Output for 5.5.32
results for 1000000 iterations: suppressed time: 0.32650518 isset time: 0.07450819 speed difference: 22.82%
Output for 5.5.31
results for 1000000 iterations: suppressed time: 0.30899882 isset time: 0.072335 speed difference: 23.41%
Output for 5.5.30
results for 1000000 iterations: suppressed time: 0.36826491 isset time: 0.08039308 speed difference: 21.83%
Output for 5.5.29
results for 1000000 iterations: suppressed time: 0.36449003 isset time: 0.08927107 speed difference: 24.49%
Output for 5.5.28
results for 1000000 iterations: suppressed time: 0.31373382 isset time: 0.0722971 speed difference: 23.04%
Output for 5.5.27
results for 1000000 iterations: suppressed time: 0.3044281 isset time: 0.072191 speed difference: 23.71%
Output for 5.5.26
results for 1000000 iterations: suppressed time: 0.32111883 isset time: 0.0719161 speed difference: 22.4%
Output for 5.5.25
results for 1000000 iterations: suppressed time: 0.33720493 isset time: 0.06283498 speed difference: 18.63%
Output for 5.5.24
results for 1000000 iterations: suppressed time: 0.31940293 isset time: 0.079427 speed difference: 24.87%
Output for 5.5.23
results for 1000000 iterations: suppressed time: 0.34366512 isset time: 0.07138395 speed difference: 20.77%
Output for 5.5.22
results for 1000000 iterations: suppressed time: 0.29488587 isset time: 0.0617938 speed difference: 20.96%
Output for 5.5.21
results for 1000000 iterations: suppressed time: 0.31602716 isset time: 0.07224178 speed difference: 22.86%
Output for 5.5.20
results for 1000000 iterations: suppressed time: 0.32756305 isset time: 0.07821512 speed difference: 23.88%
Output for 5.5.19
results for 1000000 iterations: suppressed time: 0.33700204 isset time: 0.07523704 speed difference: 22.33%
Output for 5.5.18
results for 1000000 iterations: suppressed time: 0.32160592 isset time: 0.07480001 speed difference: 23.26%
Output for 5.5.16
results for 1000000 iterations: suppressed time: 0.30996609 isset time: 0.07517004 speed difference: 24.25%
Output for 5.5.15
results for 1000000 iterations: suppressed time: 0.3220799 isset time: 0.07225108 speed difference: 22.43%
Output for 5.5.14
results for 1000000 iterations: suppressed time: 0.32032204 isset time: 0.07544398 speed difference: 23.55%
Output for 5.5.13
results for 1000000 iterations: suppressed time: 0.30521393 isset time: 0.07655716 speed difference: 25.08%
Output for 5.5.12
results for 1000000 iterations: suppressed time: 0.33225703 isset time: 0.08275604 speed difference: 24.91%
Output for 5.5.11
results for 1000000 iterations: suppressed time: 0.3270309 isset time: 0.07433009 speed difference: 22.73%
Output for 5.5.10
results for 1000000 iterations: suppressed time: 0.31448603 isset time: 0.07376814 speed difference: 23.46%
Output for 5.5.9
results for 1000000 iterations: suppressed time: 0.31009698 isset time: 0.07321715 speed difference: 23.61%
Output for 5.5.8
results for 1000000 iterations: suppressed time: 0.30600619 isset time: 0.07213187 speed difference: 23.57%
Output for 5.5.7
results for 1000000 iterations: suppressed time: 0.30591488 isset time: 0.07445002 speed difference: 24.34%
Output for 5.5.6
results for 1000000 iterations: suppressed time: 0.3086338 isset time: 0.07223392 speed difference: 23.4%
Output for 5.5.5
results for 1000000 iterations: suppressed time: 0.29895306 isset time: 0.06600499 speed difference: 22.08%
Output for 5.5.4
results for 1000000 iterations: suppressed time: 0.31411099 isset time: 0.07378292 speed difference: 23.49%
Output for 5.5.3
results for 1000000 iterations: suppressed time: 0.30105805 isset time: 0.07209992 speed difference: 23.95%
Output for 5.5.2
results for 1000000 iterations: suppressed time: 0.29164195 isset time: 0.06318879 speed difference: 21.67%
Output for 5.5.1
results for 1000000 iterations: suppressed time: 0.33876109 isset time: 0.07269812 speed difference: 21.46%
Output for 5.5.0
results for 1000000 iterations: suppressed time: 0.32664585 isset time: 0.07435703 speed difference: 22.76%
Output for 5.4.45
results for 1000000 iterations: suppressed time: 0.34393716 isset time: 0.07026386 speed difference: 20.43%
Output for 5.4.44
results for 1000000 iterations: suppressed time: 0.30095601 isset time: 0.07555103 speed difference: 25.1%
Output for 5.4.43
results for 1000000 iterations: suppressed time: 0.30116296 isset time: 0.07254505 speed difference: 24.09%
Output for 5.4.42
results for 1000000 iterations: suppressed time: 0.31782699 isset time: 0.07310081 speed difference: 23%
Output for 5.4.41
results for 1000000 iterations: suppressed time: 0.32330394 isset time: 0.0794239 speed difference: 24.57%
Output for 5.4.40
results for 1000000 iterations: suppressed time: 0.29907799 isset time: 0.07523298 speed difference: 25.15%
Output for 5.4.39
results for 1000000 iterations: suppressed time: 0.24999404 isset time: 0.06099391 speed difference: 24.4%
Output for 5.4.38
results for 1000000 iterations: suppressed time: 0.27937198 isset time: 0.07518911 speed difference: 26.91%
Output for 5.4.37
results for 1000000 iterations: suppressed time: 0.31501102 isset time: 0.0730021 speed difference: 23.17%
Output for 5.4.36
results for 1000000 iterations: suppressed time: 0.31277895 isset time: 0.07216382 speed difference: 23.07%
Output for 5.4.35
results for 1000000 iterations: suppressed time: 0.32761407 isset time: 0.07283497 speed difference: 22.23%
Output for 5.4.34
results for 1000000 iterations: suppressed time: 0.32074213 isset time: 0.07323289 speed difference: 22.83%
Output for 5.4.32
results for 1000000 iterations: suppressed time: 0.33598089 isset time: 0.07365203 speed difference: 21.92%
Output for 5.4.31
results for 1000000 iterations: suppressed time: 0.31552911 isset time: 0.0726819 speed difference: 23.03%
Output for 5.4.30
results for 1000000 iterations: suppressed time: 0.30653596 isset time: 0.07635117 speed difference: 24.91%
Output for 5.4.29
results for 1000000 iterations: suppressed time: 0.30598187 isset time: 0.06933689 speed difference: 22.66%
Output for 5.4.28
results for 1000000 iterations: suppressed time: 0.32681489 isset time: 0.07304692 speed difference: 22.35%
Output for 5.4.27
results for 1000000 iterations: suppressed time: 0.30561996 isset time: 0.07247305 speed difference: 23.71%
Output for 5.4.26
results for 1000000 iterations: suppressed time: 0.35858607 isset time: 0.09061503 speed difference: 25.27%
Output for 5.4.25
results for 1000000 iterations: suppressed time: 0.37432599 isset time: 0.09647393 speed difference: 25.77%
Output for 5.4.24
results for 1000000 iterations: suppressed time: 0.30493808 isset time: 0.07350802 speed difference: 24.11%
Output for 5.4.23
results for 1000000 iterations: suppressed time: 0.37171888 isset time: 0.09146786 speed difference: 24.61%
Output for 5.4.22
results for 1000000 iterations: suppressed time: 0.29570794 isset time: 0.06711793 speed difference: 22.7%
Output for 5.4.21
results for 1000000 iterations: suppressed time: 0.33443189 isset time: 0.07274079 speed difference: 21.75%
Output for 5.4.20
results for 1000000 iterations: suppressed time: 0.29125023 isset time: 0.07158208 speed difference: 24.58%
Output for 5.4.19
results for 1000000 iterations: suppressed time: 0.32176399 isset time: 0.07280517 speed difference: 22.63%
Output for 5.4.18
results for 1000000 iterations: suppressed time: 0.29963803 isset time: 0.07253981 speed difference: 24.21%
Output for 5.4.17
results for 1000000 iterations: suppressed time: 0.33602095 isset time: 0.07529688 speed difference: 22.41%
Output for 5.4.16
results for 1000000 iterations: suppressed time: 0.39954114 isset time: 0.09117103 speed difference: 22.82%
Output for 5.4.15
results for 1000000 iterations: suppressed time: 0.3160069 isset time: 0.07294393 speed difference: 23.08%
Output for 5.4.14
results for 1000000 iterations: suppressed time: 0.33101892 isset time: 0.07612896 speed difference: 23%
Output for 5.4.13
results for 1000000 iterations: suppressed time: 0.31185389 isset time: 0.07193708 speed difference: 23.07%
Output for 5.4.12
results for 1000000 iterations: suppressed time: 0.31559014 isset time: 0.07448888 speed difference: 23.6%
Output for 5.4.11
results for 1000000 iterations: suppressed time: 0.31542587 isset time: 0.07269287 speed difference: 23.05%
Output for 5.4.10
results for 1000000 iterations: suppressed time: 0.33080506 isset time: 0.07369113 speed difference: 22.28%
Output for 5.4.9
results for 1000000 iterations: suppressed time: 0.31978607 isset time: 0.07232881 speed difference: 22.62%
Output for 5.4.8
results for 1000000 iterations: suppressed time: 0.31015491 isset time: 0.07914209 speed difference: 25.52%
Output for 5.4.7
results for 1000000 iterations: suppressed time: 0.31997705 isset time: 0.07273293 speed difference: 22.73%
Output for 5.4.6
results for 1000000 iterations: suppressed time: 0.35218596 isset time: 0.07849193 speed difference: 22.29%
Output for 5.4.5
results for 1000000 iterations: suppressed time: 0.31084013 isset time: 0.07336497 speed difference: 23.6%
Output for 5.4.4
results for 1000000 iterations: suppressed time: 0.33864212 isset time: 0.08779001 speed difference: 25.92%
Output for 5.4.3
results for 1000000 iterations: suppressed time: 0.31448698 isset time: 0.07279801 speed difference: 23.15%
Output for 5.4.2
results for 1000000 iterations: suppressed time: 0.37744713 isset time: 0.08689713 speed difference: 23.02%
Output for 5.4.1
results for 1000000 iterations: suppressed time: 0.37863517 isset time: 0.08819914 speed difference: 23.29%
Output for 5.4.0
results for 1000000 iterations: suppressed time: 0.32072806 isset time: 0.07193899 speed difference: 22.43%
Output for 5.3.29
results for 1000000 iterations: suppressed time: 0.46048093 isset time: 0.08823895 speed difference: 19.16%
Output for 5.3.28
results for 1000000 iterations: suppressed time: 0.4750371 isset time: 0.10061693 speed difference: 21.18%
Output for 5.3.27
results for 1000000 iterations: suppressed time: 0.49141383 isset time: 0.08543205 speed difference: 17.38%
Output for 5.3.26
results for 1000000 iterations: suppressed time: 0.45130992 isset time: 0.08814096 speed difference: 19.53%
Output for 5.3.25
results for 1000000 iterations: suppressed time: 0.53335595 isset time: 0.11423802 speed difference: 21.42%
Output for 5.3.24
results for 1000000 iterations: suppressed time: 0.4463768 isset time: 0.09123206 speed difference: 20.44%
Output for 5.3.23
results for 1000000 iterations: suppressed time: 0.43851304 isset time: 0.09092212 speed difference: 20.73%
Output for 5.3.22
results for 1000000 iterations: suppressed time: 0.46053195 isset time: 0.08985281 speed difference: 19.51%
Output for 5.3.21
results for 1000000 iterations: suppressed time: 0.53380895 isset time: 0.09091687 speed difference: 17.03%
Output for 5.3.20
results for 1000000 iterations: suppressed time: 0.47400093 isset time: 0.14069605 speed difference: 29.68%
Output for 5.3.19
results for 1000000 iterations: suppressed time: 0.46474409 isset time: 0.08926606 speed difference: 19.21%
Output for 5.3.18
results for 1000000 iterations: suppressed time: 0.43066096 isset time: 0.0902369 speed difference: 20.95%
Output for 5.3.17
results for 1000000 iterations: suppressed time: 0.47685003 isset time: 0.09801698 speed difference: 20.56%
Output for 5.3.16
results for 1000000 iterations: suppressed time: 0.48550606 isset time: 0.09072685 speed difference: 18.69%
Output for 5.3.15
results for 1000000 iterations: suppressed time: 0.48091412 isset time: 0.09082389 speed difference: 18.89%
Output for 5.3.14
results for 1000000 iterations: suppressed time: 0.49124908 isset time: 0.09230494 speed difference: 18.79%
Output for 5.3.13
results for 1000000 iterations: suppressed time: 0.50525808 isset time: 0.11621594 speed difference: 23%
Output for 5.3.12
results for 1000000 iterations: suppressed time: 0.48881507 isset time: 0.08717704 speed difference: 17.83%
Output for 5.3.11
results for 1000000 iterations: suppressed time: 0.42955208 isset time: 0.09072804 speed difference: 21.12%
Output for 5.3.10
results for 1000000 iterations: suppressed time: 0.52508903 isset time: 0.12129807 speed difference: 23.1%
Output for 5.3.9
results for 1000000 iterations: suppressed time: 0.43013406 isset time: 0.10622191 speed difference: 24.7%
Output for 5.3.8
results for 1000000 iterations: suppressed time: 0.48488212 isset time: 0.10212517 speed difference: 21.06%
Output for 5.3.7
results for 1000000 iterations: suppressed time: 0.43905997 isset time: 0.09271216 speed difference: 21.12%
Output for 5.3.6
results for 1000000 iterations: suppressed time: 0.47784781 isset time: 0.08885407 speed difference: 18.59%
Output for 5.3.5
results for 1000000 iterations: suppressed time: 0.43564415 isset time: 0.09149909 speed difference: 21%
Output for 5.3.4
results for 1000000 iterations: suppressed time: 0.46066403 isset time: 0.09022188 speed difference: 19.59%
Output for 5.3.3
results for 1000000 iterations: suppressed time: 0.41103911 isset time: 0.08444095 speed difference: 20.54%
Output for 5.3.2
results for 1000000 iterations: suppressed time: 0.37710905 isset time: 0.07453203 speed difference: 19.76%
Output for 5.3.1
results for 1000000 iterations: suppressed time: 0.4163909 isset time: 0.07525897 speed difference: 18.07%
Output for 5.3.0
results for 1000000 iterations: suppressed time: 0.35647988 isset time: 0.0754149 speed difference: 21.16%
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/0b47S on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/0b47S on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/0b47S on line 9
Process exited with code 255.