3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $step = 5; $usernumber = 188; $myseries = range(0, 59, $step); $myseries = range(0, 59, 5); $check = round($usernumber/$step) * $step; echo "<br>".$check; if(in_array($check,$myseries)) echo "<br>".$check; else echo "<br>".max($myseries);
Output for 5.3.6 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<br>190<br>55