3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "++i "; $start = microtime(true); for ($i = 0; $i < 10000000; ++$i); $delta_pre = microtime(true) - $start; printf('%.4F', $delta_pre); echo PHP_EOL; echo "i++ "; $start = microtime(true); for ($i = 0; $i < 10000000; $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.0870 i++ -0.0616 -141.23%
Output for 7.0.14
++i 0.0789 i++ 0.0886 89.10%
Output for 7.0.6
++i 0.0747 i++ 0.0814 91.86%
Output for 7.0.5
++i 0.1135 i++ 0.0938 120.92%
Output for 7.0.4
++i 0.0726 i++ 0.1008 72.03%
Output for 7.0.3
++i 0.0495 i++ 0.0795 62.29%
Output for 7.0.2
++i 0.0632 i++ 0.0817 77.30%
Output for 7.0.1
++i 0.0540 i++ 0.0760 71.01%
Output for 7.0.0
++i 0.0693 i++ 0.0753 92.07%
Output for hhvm-3.12.0
++i 0.3245 i++ 0.3232 100.40%
Output for hhvm-3.10.0
++i 0.4038 i++ 0.3973 101.64%
Output for 5.6.28
++i 0.2033 i++ 0.2591 78.46%
Output for 5.6.21
++i 0.1962 i++ 0.2128 92.17%
Output for 5.6.20
++i 0.1869 i++ 0.2134 87.58%
Output for 5.6.19
++i 0.2432 i++ 0.2129 114.20%
Output for 5.6.18
++i 0.1836 i++ 0.2128 86.31%
Output for 5.6.17
++i 0.2087 i++ 0.2743 76.08%
Output for 5.6.16
++i 0.1816 i++ 0.2116 85.84%
Output for 5.6.15
++i 0.1747 i++ 0.2132 81.95%
Output for 5.6.14
++i 0.2066 i++ 0.2129 97.03%
Output for 5.6.13
++i 0.1755 i++ 0.2129 82.42%
Output for 5.6.12
++i 0.1717 i++ 0.2129 80.66%
Output for 5.6.11
++i 0.1889 i++ 0.2130 88.68%
Output for 5.6.10
++i 0.1786 i++ 0.2127 83.99%
Output for 5.6.9
++i 0.1697 i++ 0.2072 81.89%
Output for 5.6.8
++i 0.1774 i++ 0.2128 83.36%
Output for 5.5.35
++i 0.2360 i++ 0.2123 111.16%
Output for 5.5.34
++i 0.1744 i++ 0.2136 81.63%
Output for 5.5.33
++i 0.1775 i++ 0.2135 83.14%
Output for 5.5.32
++i 0.1904 i++ 0.2136 89.12%
Output for 5.5.31
++i 0.1968 i++ 0.2384 82.58%
Output for 5.5.30
++i 0.1723 i++ 0.2331 73.90%
Output for 5.5.29
++i 0.1736 i++ 0.2134 81.35%
Output for 5.5.28
++i 0.1744 i++ 0.2144 81.33%
Output for 5.5.27
++i 0.1874 i++ 0.2164 86.59%
Output for 5.5.26
++i 0.1932 i++ 0.2127 90.87%
Output for 5.5.25
++i 0.2047 i++ 0.2352 87.03%
Output for 5.5.24
++i 0.1743 i++ 0.2037 85.56%
Output for 5.4.45
++i 0.2533 i++ 0.2948 85.93%
Output for 5.4.44
++i 0.2761 i++ 0.3428 80.54%
Output for 5.4.43
++i 0.2591 i++ 0.2993 86.57%
Output for 5.4.42
++i 0.2470 i++ 0.2934 84.18%
Output for 5.4.41
++i 0.2463 i++ 0.2899 84.96%
Output for 5.4.40
++i 0.2605 i++ 0.3015 86.40%
Output for 5.4.39
++i 0.2549 i++ 0.3015 84.53%
Output for 5.4.38
++i 0.2984 i++ 0.2896 103.02%
Output for 5.4.37
++i 0.2735 i++ 0.3269 83.65%
Output for 5.4.36
++i 0.2939 i++ 0.2902 101.28%
Output for 5.4.35
++i 0.2499 i++ 0.2914 85.78%
Output for 5.4.34
++i 0.2846 i++ 0.3204 88.83%
Output for 5.4.32
++i 0.2105 i++ 0.2296 91.70%
Output for 5.4.31
++i 0.1974 i++ 0.2495 79.13%
Output for 5.4.30
++i 0.2035 i++ 0.2220 91.68%
Output for 5.4.29
++i 0.2071 i++ 0.2526 81.98%
Output for 5.4.28
++i 0.2115 i++ 0.2616 80.85%
Output for 5.4.27
++i 0.2824 i++ 0.3435 82.20%
Output for 5.4.26
++i 0.2786 i++ 0.4421 63.02%
Output for 5.4.25
++i 0.2897 i++ 0.3496 82.85%
Output for 5.4.24
++i 0.2786 i++ 0.3440 80.98%
Output for 5.4.23
++i 0.2851 i++ 0.3443 82.79%
Output for 5.4.22
++i 0.3076 i++ 0.3833 80.27%
Output for 5.4.21
++i 0.2826 i++ 0.3049 92.69%
Output for 5.4.20
++i 0.1886 i++ 0.2257 83.54%
Output for 5.4.19
++i 0.2020 i++ 0.3067 65.85%
Output for 5.4.18
++i 0.1999 i++ 0.2239 89.29%
Output for 5.4.17
++i 0.2353 i++ 0.2946 79.87%
Output for 5.4.16
++i 0.1929 i++ 0.3058 63.07%
Output for 5.4.15
++i 0.2249 i++ 0.2308 97.45%
Output for 5.4.14
++i 0.2770 i++ 0.3420 80.99%
Output for 5.4.13
++i 0.1966 i++ 0.2426 81.02%
Output for 5.4.12
++i 0.1987 i++ 0.2718 73.10%
Output for 5.4.11
++i 0.2015 i++ 0.2371 84.98%
Output for 5.4.10
++i 0.2116 i++ 0.2369 89.30%
Output for 5.4.9
++i 0.1960 i++ 0.2501 78.35%
Output for 5.4.8
++i 0.2367 i++ 0.3421 69.18%
Output for 5.4.7
++i 0.2794 i++ 0.3244 86.11%
Output for 5.4.6
++i 0.2019 i++ 0.2308 87.49%
Output for 5.4.5
++i 0.2031 i++ 0.2530 80.29%
Output for 5.4.4
++i 0.2495 i++ 0.2290 108.94%
Output for 5.4.3
++i 0.2105 i++ 0.2410 87.32%
Output for 5.4.2
++i 0.1941 i++ 0.2281 85.09%
Output for 5.4.1
++i 0.2151 i++ 0.2831 75.99%
Output for 5.4.0
++i 0.1934 i++ 0.2227 86.83%
Output for 5.3.29
++i 0.2537 i++ 0.3157 80.36%
Output for 5.3.28
++i 0.2407 i++ 0.4179 57.60%
Output for 5.3.27
++i 0.2611 i++ 0.3879 67.33%
Output for 5.3.26
++i 0.3902 i++ 0.3447 113.20%
Output for 5.3.25
++i 0.3811 i++ 0.3123 122.04%
Output for 5.3.24
++i 0.2441 i++ 0.3030 80.57%
Output for 5.3.23
++i 0.2551 i++ 0.3188 80.01%
Output for 5.3.22
++i 0.3563 i++ 0.3064 116.28%
Output for 5.3.21
++i 0.2577 i++ 0.3137 82.15%
Output for 5.3.20
++i 0.2774 i++ 0.3118 88.99%
Output for 5.3.19
++i 0.3525 i++ 0.3735 94.37%
Output for 5.3.18
++i 0.2471 i++ 0.3154 78.33%
Output for 5.3.17
++i 0.2479 i++ 0.3114 79.61%
Output for 5.3.16
++i 0.2757 i++ 0.4142 66.57%
Output for 5.3.15
++i 0.2619 i++ 0.3499 74.85%
Output for 5.3.14
++i 0.2694 i++ 0.3732 72.19%
Output for 5.3.13
++i 0.3916 i++ 0.3464 113.05%
Output for 5.3.12
++i 0.2489 i++ 0.3079 80.83%
Output for 5.3.11
++i 0.2511 i++ 0.3291 76.32%
Output for 5.3.10
++i 0.2657 i++ 0.3507 75.78%
Output for 5.3.9
++i 0.3983 i++ 0.4471 89.08%
Output for 5.3.8
++i 0.3656 i++ 0.3498 104.50%
Output for 5.3.7
++i 0.3656 i++ 0.4584 79.76%
Output for 5.3.6
++i 0.4620 i++ 0.5542 83.36%
Output for 5.3.5
++i 0.3194 i++ 0.6534 48.88%
Output for 5.3.4
++i 0.3456 i++ 0.6379 54.18%
Output for 5.3.3
++i 0.4791 i++ 0.5511 86.93%
Output for 5.3.2
++i 0.6236 i++ 0.5029 124.00%
Output for 5.3.1
++i 0.4257 i++ 0.3825 111.29%
Output for 5.3.0
++i 0.3756 i++ 0.4041 92.93%
Output for 5.2.17
++i 0.5096 i++ 0.6601 77.19%
Output for 5.2.16
++i 0.5455 i++ 0.6836 79.81%
Output for 5.2.15
++i 0.5463 i++ 0.4512 121.08%
Output for 5.2.14
++i 0.3871 i++ 0.4932 78.48%
Output for 5.2.13
++i 0.4679 i++ 0.4264 109.71%
Output for 5.2.12
++i 0.4946 i++ 0.4174 118.51%
Output for 5.2.11
++i 0.4036 i++ 0.4177 96.62%
Output for 5.2.10
++i 0.4962 i++ 0.6134 80.90%
Output for 5.2.9
++i 0.6452 i++ 0.7211 89.47%
Output for 5.2.8
++i 0.5482 i++ 0.6801 80.61%
Output for 5.2.7
++i 0.5613 i++ 0.5742 97.75%
Output for 5.2.6
++i 0.6316 i++ 0.7540 83.76%
Output for 5.2.5
++i 0.5885 i++ 0.6468 90.99%
Output for 5.2.4
++i 0.6108 i++ 0.8021 76.16%
Output for 5.2.3
++i 0.7050 i++ 0.8753 80.55%
Output for 5.2.2
++i 0.5412 i++ 0.7106 76.16%
Output for 5.2.1
++i 0.5410 i++ 0.6747 80.19%
Output for 5.2.0
++i 0.6408 i++ 0.6549 97.84%
Output for 5.1.6
++i 0.8353 i++ 0.9198 90.81%
Output for 5.1.5
++i 0.6664 i++ 0.7324 90.98%
Output for 5.1.4
++i 0.6251 i++ 0.6504 96.10%
Output for 5.1.3
++i 0.5970 i++ 0.4501 132.63%
Output for 5.1.2
++i 0.5263 i++ 0.5699 92.36%
Output for 5.1.1
++i 0.4869 i++ 0.4308 113.03%
Output for 5.1.0
++i 0.4380 i++ 0.4197 104.35%
Output for 5.0.5
++i 1.3651 i++
Process exited with code 137.
Output for 5.0.4
++i 1.5338 i++
Process exited with code 137.
Output for 5.0.3
++i 1.2573 i++
Process exited with code 137.
Output for 5.0.2
++i i++
Process exited with code 137.
Output for 4.3.4, 4.3.6 - 4.3.9, 5.0.1
++i Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8RHgB on line 7 PHP_EOLi++
Process exited with code 137.
Output for 4.3.0 - 4.3.3, 5.0.0
++i Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8RHgB on line 7 PHP_EOLi++ Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8RHgB on line 14 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8RHgB on line 16 PHP_EOL% Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8RHgB on line 18 PHP_EOL
Output for 4.4.9
++i -0.1382 i++ -0.0611 225.99%
Output for 4.4.8
++i -0.0651 i++ 0.0404 -161.08%
Output for 4.4.7
++i 0.3117 i++
Process exited with code 137.
Output for 4.4.6
++i 0.1733 i++
Process exited with code 137.
Output for 4.4.5
++i -0.0466 i++
Process exited with code 137.
Output for 4.4.4
++i 0.8863 i++
Process exited with code 137.
Output for 4.4.3
++i 0.7355 i++
Process exited with code 137.
Output for 4.4.2
++i 0.4219 i++
Process exited with code 137.
Output for 4.4.1
++i -0.7144 i++
Process exited with code 137.
Output for 4.4.0
++i 0.1797 i++ 0.2593 69.28%
Output for 4.3.11
++i 0.5134 i++
Process exited with code 137.
Output for 4.3.10
++i 0.2636 i++
Process exited with code 137.
Output for 4.3.5
++i
Process exited with code 137.