3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d\TH:i:sP'); $nextbid = 100; $bidmax = 300; $percent = 15; while($nextbid <= $bidmax ) { $nextbid = (($nextbid*$percent/100)+$nextbid); echo '\n'; print_r($nextbid); } $nextbid = round($nextbid/60, 0)* 60; print_r($nextbid);
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-07-25T15:09:43+02:00\n115\n132.25\n152.0875\n174.900625\n201.13571875\n231.3060765625\n266.00198804687\n305.90228625391300
Output for 4.3.0 - 5.1.2
2013-07-25T15:09:43P\n115\n132.25\n152.0875\n174.900625\n201.13571875\n231.3060765625\n266.00198804687\n305.90228625391300