3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for( $tmp = 0, $i = 0; $i < 100; $i++ ) { $tmp += 100000; echo round($tmp),"\n"; }
Output for 4.3.0 - 5.2.1, 5.2.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
100000 200000 300000 400000 500000 600000 700000 800000 900000 1000000 1100000 1200000 1300000 1400000 1500000 1600000 1700000 1800000 1900000 2000000 2100000 2200000 2300000 2400000 2500000 2600000 2700000 2800000 2900000 3000000 3100000 3200000 3300000 3400000 3500000 3600000 3700000 3800000 3900000 4000000 4100000 4200000 4300000 4400000 4500000 4600000 4700000 4800000 4900000 5000000 5100000 5200000 5300000 5400000 5500000 5600000 5700000 5800000 5900000 6000000 6100000 6200000 6300000 6400000 6500000 6600000 6700000 6800000 6900000 7000000 7100000 7200000 7300000 7400000 7500000 7600000 7700000 7800000 7900000 8000000 8100000 8200000 8300000 8400000 8500000 8600000 8700000 8800000 8900000 9000000 9100000 9200000 9300000 9400000 9500000 9600000 9700000 9800000 9900000 10000000
Output for 5.2.2 - 5.2.6
100000 200000 300000 400000 500000 600000 700000 800000 900000 1000000 1100000 1.2E+6 1300000 1.4E+6 1500000 1600000 1700000 1800000 1900000 2000000 2100000 2200000 2.3E+6 2.4E+6 2500000 2600000 2700000 2.8E+6 2900000 3000000 3100000 3200000 3.3E+6 3.4E+6 3500000 3600000 3700000 3.8E+6 3900000 4000000 4.1E+6 4200000 4.3E+6 4400000 4500000 4.6E+6 4700000 4.8E+6 4900000 5000000 5.1E+6 5200000 5.3E+6 5400000 5500000 5.6E+6 5700000 5.8E+6 5900000 6000000 6.1E+6 6200000 6.3E+6 6400000 6500000 6.6E+6 6700000 6.8E+6 6900000 7000000 7.1E+6 7200000 7.3E+6 7400000 7500000 7.6E+6 7700000 7.8E+6 7900000 8000000 8.1E+6 8.2E+6 8300000 8400000 8500000 8.6E+6 8.7E+6 8800000 8900000 9000000 9.1E+6 9.2E+6 9300000 9400000 9500000 9.6E+6 9.7E+6 9800000 9900000 10000000