3v4l.org

run code in 200+ 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.2.0
++i 0.0492 i++ 0.0732 67.16%
Output for 7.1.7
++i 0.0739 i++ 0.0848 87.09%
Output for 7.1.6
++i 0.0939 i++ 0.0849 110.56%
Output for 7.1.5
++i 0.0526 i++ 0.0736 71.47%
Output for 7.1.0
++i 0.0870 i++ -0.0616 -141.23%
Output for 7.0.20
++i 0.0607 i++ 0.0910 66.70%
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 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.2943 i++ 0.4655 63.22%
Output for 5.4.26
++i 0.3100 i++ 0.4136 74.96%
Output for 5.4.25
++i 0.3072 i++ 0.3562 86.24%
Output for 5.4.24
++i 0.3830 i++ 0.4480 85.47%
Output for 5.4.23
++i 0.3723 i++ 0.5419 68.69%
Output for 5.4.22
++i 0.3732 i++ 0.4475 83.39%
Output for 5.4.21
++i 0.3302 i++ 0.3811 86.63%
Output for 5.4.20
++i 0.2698 i++ 0.4647 58.06%
Output for 5.4.19
++i 0.4133 i++ 0.4691 88.10%
Output for 5.4.18
++i 0.3042 i++ 0.3207 94.87%
Output for 5.4.17
++i 0.2578 i++ 0.4399 58.60%
Output for 5.4.16
++i 0.5662 i++ 0.5673 99.80%
Output for 5.4.15
++i 0.3048 i++ 0.3649 83.53%
Output for 5.4.14
++i 0.3065 i++ 0.3867 79.25%
Output for 5.4.13
++i 0.2797 i++ 0.5707 49.01%
Output for 5.4.12
++i 0.3635 i++ 0.3384 107.42%
Output for 5.4.11
++i 0.2850 i++ 0.4298 66.31%
Output for 5.4.10
++i 0.2441 i++ 0.4493 54.33%
Output for 5.4.9
++i 0.4124 i++ 0.4373 94.32%
Output for 5.4.8
++i 0.3745 i++ 0.3269 114.55%
Output for 5.4.7
++i 0.2973 i++ 0.3559 83.53%
Output for 5.4.6
++i 0.2881 i++ 0.3764 76.55%
Output for 5.4.5
++i 0.3698 i++ 0.4230 87.44%
Output for 5.4.4
++i 0.3577 i++ 0.5031 71.09%
Output for 5.4.3
++i 0.4644 i++ 0.4053 114.56%
Output for 5.4.2
++i 0.4375 i++ 0.3681 118.84%
Output for 5.4.1
++i 0.3195 i++ 0.4157 76.87%
Output for 5.4.0
++i 0.4033 i++ 0.4811 83.83%
Output for 5.3.29
++i 0.2537 i++ 0.3157 80.36%
Output for 5.3.28
++i 0.5465 i++ 0.5353 102.10%
Output for 5.3.27
++i 0.4654 i++ 0.5073 91.74%
Output for 5.3.26
++i 0.4626 i++ 0.5005 92.43%
Output for 5.3.25
++i 0.5125 i++ 0.5643 90.81%
Output for 5.3.24
++i 0.3442 i++ 0.4981 69.10%
Output for 5.3.23
++i 0.4751 i++ 0.5769 82.34%
Output for 5.3.22
++i 0.6566 i++ 0.5688 115.44%
Output for 5.3.21
++i 0.3744 i++ 0.4457 84.01%
Output for 5.3.20
++i 0.3844 i++ 0.4982 77.16%
Output for 5.3.19
++i 0.4809 i++ 0.4748 101.30%
Output for 5.3.18
++i 0.4743 i++ 0.5353 88.60%
Output for 5.3.17
++i 0.4271 i++ 0.5924 72.10%
Output for 5.3.16
++i 0.4020 i++ 0.4295 93.59%
Output for 5.3.15
++i 0.4440 i++ 0.4881 90.96%
Output for 5.3.14
++i 0.5587 i++ 0.4869 114.74%
Output for 5.3.13
++i 0.8681 i++ 0.7691 112.86%
Output for 5.3.12
++i 0.4725 i++ 0.6087 77.62%
Output for 5.3.11
++i 0.5622 i++ 0.6038 93.11%
Output for 5.3.10
++i 0.4983 i++ 0.6556 76.00%
Output for 5.3.9
++i 0.4728 i++ 0.4824 98.01%
Output for 5.3.8
++i 0.5223 i++ 0.5336 97.88%
Output for 5.3.7
++i 0.4167 i++ 0.5682 73.34%
Output for 5.3.6
++i 0.5265 i++ 0.5228 100.70%
Output for 5.3.5
++i 0.5029 i++ 0.8633 58.25%
Output for 5.3.4
++i 0.4562 i++ 0.4984 91.54%
Output for 5.3.3
++i 0.5215 i++ 0.4436 117.56%
Output for 5.3.2
++i 0.3947 i++ 0.4730 83.43%
Output for 5.3.1
++i 0.4178 i++ 0.4620 90.43%
Output for 5.3.0
++i 0.3809 i++ 0.6614 57.59%
Output for 5.2.17
++i 0.7881 i++ 0.8931 88.24%
Output for 5.2.16
++i 0.7229 i++ 0.8588 84.18%
Output for 5.2.15
++i 0.6977 i++ 0.8134 85.77%
Output for 5.2.14
++i 0.6572 i++ 0.9537 68.91%
Output for 5.2.13
++i 0.6118 i++ 0.8434 72.54%
Output for 5.2.12
++i 0.7821 i++ 0.6434 121.56%
Output for 5.2.11
++i 0.6812 i++ 0.7330 92.92%
Output for 5.2.10
++i 0.7669 i++ 0.6451 118.87%
Output for 5.2.9
++i 0.6269 i++ 0.6879 91.14%
Output for 5.2.8
++i 0.5609 i++ 0.7158 78.36%
Output for 5.2.7
++i 0.5867 i++ 0.7339 79.95%
Output for 5.2.6
++i 1.0502 i++ 0.7521 139.63%
Output for 5.2.5
++i 0.8545 i++ 0.9172 93.17%
Output for 5.2.4
++i 0.6306 i++ 0.6729 93.72%
Output for 5.2.3
++i 0.8426 i++ 0.7367 114.38%
Output for 5.2.2
++i 0.7057 i++ 0.6058 116.49%
Output for 5.2.1
++i 0.6648 i++ 0.5544 119.91%
Output for 5.2.0
++i 0.7074 i++ 0.7618 92.86%
Output for 5.1.6
++i 0.6552 i++ 1.2520 52.33%
Output for 5.1.5
++i 0.9466 i++ 0.6715 140.98%
Output for 5.1.4
++i 0.9106 i++ 1.0589 86.00%
Output for 5.1.3
++i 0.7212 i++ 0.7445 96.87%
Output for 5.1.2
++i 0.6076 i++ 0.6786 89.54%
Output for 5.1.1
++i 0.7423 i++ 0.6788 109.35%
Output for 5.1.0
++i 1.0136 i++ 0.8795 115.25%
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.8220 i++
Process exited with code 137.
Output for 5.0.2
++i i++
Process exited with code 137.
Output for 4.3.1 - 4.3.6, 4.3.8 - 4.3.9, 5.0.0 - 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.4.9
++i 0.7632 i++
Process exited with code 137.
Output for 4.4.8
++i 0.7393 i++
Process exited with code 137.
Output for 4.4.7
++i 0.3117 i++
Process exited with code 137.
Output for 4.4.6
++i 0.9293 i++
Process exited with code 137.
Output for 4.4.5
++i 0.4319 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.8329 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.7965 i++
Process exited with code 137.
Output for 4.3.10
++i 0.8697 i++
Process exited with code 137.
Output for 4.3.7
No input file specified.
Process exited with code 255.
Output for 4.3.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