3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 1000000; ++$i); $delta_pre = microtime(true) - $start; printf('%.4F', $delta_pre); echo PHP_EOL; echo "i++ "; $start = microtime(true); for ($i = 0; $i < 1000000; $i++); $delpa_post = microtime(true) - $start; printf('%.4F', $delpa_post); echo PHP_EOL; echo PHP_EOL; printf('%.2F', $delta_pre / $delpa_post * 100); echo "%", PHP_EOL;
Output for 7.1.0
++i 0.0100 i++ 0.0131 76.03%
Output for 7.0.14
++i 0.0091 i++ 0.0130 70.10%
Output for 7.0.6
++i 0.0096 i++ 0.0114 84.61%
Output for 7.0.5
++i 0.0063 i++ 0.0082 76.02%
Output for 7.0.4
++i 0.0054 i++ 0.0084 64.14%
Output for 7.0.3
++i 0.0065 i++ 0.0103 62.75%
Output for 7.0.2
++i 0.0047 i++ 0.0080 58.94%
Output for 7.0.1
++i 0.0049 i++ 0.0076 65.11%
Output for 7.0.0
++i 0.0075 i++ 0.0103 73.30%
Output for hhvm-3.12.0
++i 0.0327 i++ 0.0324 100.94%
Output for hhvm-3.10.0
++i 0.0378 i++ 0.0361 104.74%
Output for 5.6.21
++i 0.0216 i++ 0.0238 90.66%
Output for 5.6.20
++i 0.0174 i++ 0.0213 81.44%
Output for 5.6.19
++i 0.0260 i++ 0.0291 89.48%
Output for 5.6.18
++i 0.0171 i++ 0.0213 80.62%
Output for 5.6.17
++i 0.0169 i++ 0.0209 80.65%
Output for 5.6.16
++i 0.0175 i++ 0.0215 81.26%
Output for 5.6.15
++i 0.0204 i++ 0.0220 92.67%
Output for 5.6.14
++i 0.0229 i++ 0.0245 93.50%
Output for 5.6.13
++i 0.0209 i++ 0.0259 80.60%
Output for 5.6.12
++i 0.0256 i++ 0.0283 90.48%
Output for 5.6.11
++i 0.0294 i++ 0.0309 95.45%
Output for 5.6.10
++i 0.0210 i++ 0.0243 86.41%
Output for 5.6.9
++i 0.0215 i++ 0.0244 87.96%
Output for 5.6.8
++i 0.0262 i++ 0.0290 90.25%
Output for 5.6.7
++i 0.0237 i++ 0.0263 90.36%
Output for 5.5.35
++i 0.0275 i++ 0.0297 92.52%
Output for 5.5.34
++i 0.0258 i++ 0.0285 90.37%
Output for 5.5.33
++i 0.0245 i++ 0.0270 90.69%
Output for 5.5.32
++i 0.0174 i++ 0.0214 81.39%
Output for 5.5.31
++i 0.0211 i++ 0.0236 89.62%
Output for 5.5.30
++i 0.0187 i++ 0.0216 86.56%
Output for 5.5.29
++i 0.0173 i++ 0.0229 75.38%
Output for 5.5.28
++i 0.0211 i++ 0.0244 86.23%
Output for 5.5.27
++i 0.0256 i++ 0.0283 90.42%
Output for 5.5.26
++i 0.0233 i++ 0.0267 87.49%
Output for 5.5.25
++i 0.0260 i++ 0.0275 94.77%
Output for 5.5.24
++i 0.0252 i++ 0.0301 83.57%
Output for 5.4.45
++i 0.0247 i++ 0.0309 80.02%
Output for 5.4.44
++i 0.0247 i++ 0.0291 84.89%
Output for 5.4.43
++i 0.0282 i++ 0.0296 95.31%
Output for 5.4.42
++i 0.0258 i++ 0.0299 86.35%
Output for 5.4.41
++i 0.0258 i++ 0.0333 77.55%
Output for 5.4.40
++i 0.0261 i++ 0.0323 80.96%
Output for 5.4.39
++i 0.0254 i++ 0.0295 85.95%
Output for 5.4.38
++i 0.0256 i++ 0.0297 86.04%
Output for 5.4.37
++i 0.0279 i++ 0.0330 84.58%
Output for 5.4.36
++i 0.0254 i++ 0.0315 80.76%
Output for 5.4.35
++i 0.0310 i++ 0.0382 81.22%
Output for 5.4.34
++i 0.0247 i++ 0.0319 77.44%
Output for 5.4.32
++i 0.0193 i++ 0.0219 88.41%
Output for 5.4.31
++i 0.0206 i++ 0.0222 92.87%
Output for 5.4.30
++i 0.0263 i++ 0.0285 92.34%
Output for 5.4.29
++i 0.0236 i++ 0.0231 101.77%
Output for 5.4.28
++i 0.0236 i++ 0.0227 104.13%
Output for 5.4.27
++i 0.0404 i++ 0.0444 90.88%
Output for 5.4.26
++i 0.0359 i++ 0.0891 40.29%
Output for 5.4.25
++i 0.0331 i++ 0.0452 73.19%
Output for 5.4.24
++i 0.0534 i++ 0.0584 91.40%
Output for 5.4.23
++i 0.0572 i++ 0.0701 81.62%
Output for 5.4.22
++i 0.0359 i++ 0.0563 63.83%
Output for 5.4.21
++i 0.0596 i++ 0.0739 80.54%
Output for 5.4.20
++i 0.0248 i++ 0.0237 104.55%
Output for 5.4.19
++i 0.0508 i++ 0.0688 73.81%
Output for 5.4.18
++i 0.0564 i++ 0.0622 90.75%
Output for 5.4.17
++i 0.0587 i++ 0.0727 80.75%
Output for 5.4.16
++i 0.0399 i++ 0.0424 93.96%
Output for 5.4.15
++i 0.0402 i++ 0.0423 95.01%
Output for 5.4.14
++i 0.0334 i++ 0.0427 78.23%
Output for 5.4.13
++i 0.0187 i++ 0.0223 83.81%
Output for 5.4.12
++i 0.0495 i++ 0.0450 109.93%
Output for 5.4.11
++i 0.0506 i++ 0.0702 72.04%
Output for 5.4.10
++i 0.0420 i++ 0.0464 90.72%
Output for 5.4.9
++i 0.0351 i++ 0.0244 143.88%
Output for 5.4.8
++i 0.0355 i++ 0.0436 81.35%
Output for 5.4.7
++i 0.0472 i++ 0.0460 102.57%
Output for 5.4.6
++i 0.0486 i++ 0.0424 114.72%
Output for 5.4.5
++i 0.0418 i++ 0.0407 102.79%
Output for 5.4.4
++i 0.0322 i++ 0.0539 59.86%
Output for 5.4.3
++i 0.0515 i++ 0.0623 82.64%
Output for 5.4.2
++i 0.0639 i++ 0.0607 105.17%
Output for 5.4.1
++i 0.0365 i++ 0.0426 85.76%
Output for 5.4.0
++i 0.0338 i++ 0.0570 59.24%
Output for 5.3.29
++i 0.0242 i++ 0.0320 75.51%
Output for 5.3.28
++i 0.0867 i++ 0.0716 121.13%
Output for 5.3.27
++i 0.0451 i++ 0.0313 144.27%
Output for 5.3.26
++i 0.0466 i++ 0.0637 73.21%
Output for 5.3.25
++i 0.0529 i++ 0.0573 92.41%
Output for 5.3.24
++i 0.0375 i++ 0.0574 65.41%
Output for 5.3.23
++i 0.0307 i++ 0.0300 102.31%
Output for 5.3.22
++i 0.0749 i++ 0.0508 147.49%
Output for 5.3.21
++i 0.0515 i++ 0.0515 100.05%
Output for 5.3.20
++i 0.0434 i++ 0.0310 139.87%
Output for 5.3.19
++i 0.0448 i++ 0.0623 71.97%
Output for 5.3.18
++i 0.0443 i++ 0.0371 119.52%
Output for 5.3.17
++i 0.0488 i++ 0.0606 80.55%
Output for 5.3.16
++i 0.0451 i++ 0.0299 150.79%
Output for 5.3.15
++i 0.0243 i++ 0.0308 78.77%
Output for 5.3.14
++i 0.0451 i++ 0.0516 87.29%
Output for 5.3.13
++i 0.0440 i++ 0.0647 67.97%
Output for 5.3.12
++i 0.0307 i++ 0.0302 101.63%
Output for 5.3.11
++i 0.0551 i++ 0.0705 78.14%
Output for 5.3.10
++i 0.0442 i++ 0.0553 80.01%
Output for 5.3.9
++i 0.0504 i++ 0.0573 88.03%
Output for 5.3.8
++i 0.0411 i++ 0.0950 43.34%
Output for 5.3.7
++i 0.0725 i++ 0.0581 124.90%
Output for 5.3.6
++i 0.0566 i++ 0.0603 93.90%
Output for 5.3.5
++i 0.0452 i++ 0.1113 40.62%
Output for 5.3.4
++i 0.0708 i++ 0.0525 135.04%
Output for 5.3.3
++i 0.0468 i++ 0.0536 87.19%
Output for 5.3.2
++i 0.0449 i++ 0.0295 152.09%
Output for 5.3.1
++i 0.0562 i++ 0.0583 96.45%
Output for 5.3.0
++i 0.0496 i++ 0.0573 86.55%
Output for 5.2.17
++i 0.0958 i++ 0.0967 99.10%
Output for 5.2.16
++i 0.0660 i++ 0.0747 88.35%
Output for 5.2.15
++i 0.0771 i++ 0.0797 96.85%
Output for 5.2.14
++i 0.0736 i++ 0.1138 64.70%
Output for 5.2.13
++i 0.0806 i++ 0.0599 134.65%
Output for 5.2.12
++i 0.0420 i++ 0.0455 92.12%
Output for 5.2.11
++i 0.0888 i++ 0.0990 89.63%
Output for 5.2.10
++i 0.0978 i++ 0.0817 119.60%
Output for 5.2.9
++i 0.1140 i++ 0.0719 158.55%
Output for 5.2.8
++i 0.1134 i++ 0.1312 86.37%
Output for 5.2.7
++i 0.0362 i++ 0.0397 91.00%
Output for 5.2.6
++i 0.0709 i++ 0.0743 95.53%
Output for 5.2.5
++i 0.0689 i++ 0.0720 95.66%
Output for 5.2.4
++i 0.0984 i++ 0.0829 118.63%
Output for 5.2.3
++i 0.0469 i++ 0.0426 110.03%
Output for 5.2.2
++i 0.0807 i++ 0.0833 96.89%
Output for 5.2.1
++i 0.0685 i++ 0.0723 94.82%
Output for 5.2.0
++i 0.0958 i++ 0.0978 97.94%
Output for 5.1.6
++i 0.1033 i++ 0.1233 83.80%
Output for 5.1.5
++i 0.0903 i++ 0.0487 185.49%
Output for 5.1.4
++i 0.0392 i++ 0.0423 92.60%
Output for 5.1.3
++i 0.0953 i++ 0.0911 104.54%
Output for 5.1.2
++i 0.1232 i++ 0.1159 106.25%
Output for 5.1.1
++i 0.0728 i++ 0.0552 131.82%
Output for 5.1.0
++i 0.1016 i++ 0.1096 92.65%
Output for 5.0.5
++i 0.2016 i++ 0.1174 171.67%
Output for 5.0.4
++i 0.1836 i++ 0.1101 166.68%
Output for 5.0.3
++i 0.2308 i++ 0.2073 111.34%
Output for 5.0.2
++i i++ %
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
++i Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/546rq on line 7 PHP_EOLi++ Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/546rq on line 14 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/546rq on line 16 PHP_EOL% Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/546rq on line 18 PHP_EOL
Output for 4.4.9
++i 0.1801 i++ 0.1675 107.55%
Output for 4.4.8
++i -0.7572 i++ 0.1266 -598.11%
Output for 4.4.7
++i 0.2536 i++ 0.1795 141.33%
Output for 4.4.6
++i -0.7686 i++ 0.1619 -474.75%
Output for 4.4.5
++i 0.1779 i++ 0.1931 92.09%
Output for 4.4.4
++i 0.2938 i++ -0.8341 -35.22%
Output for 4.4.3
++i 0.1785 i++ 0.1889 94.47%
Output for 4.4.2
++i 0.1852 i++ 0.2143 86.39%
Output for 4.4.1
++i 0.1700 i++ 0.1087 156.33%
Output for 4.4.0
++i 0.1966 i++ 0.1983 99.14%
Output for 4.3.11
++i -0.8105 i++ 0.2754 -294.24%
Output for 4.3.10
++i 0.1784 i++ 0.1179 151.33%