3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d\TH:i:sP'); $nextbid = 100; $percent = 50; $bidmax = 300; 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:13:54+02:00\n150\n225\n337.5360
Output for 4.3.0 - 5.1.2
2013-07-25T15:13:54P\n150\n225\n337.5360