3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function roundDown($var){ $len = strlen($var)-1; $divide = 1; for($i=1;$i<=$len;$i++){ $divide .= 0; } return floor($var/$divide)*$divide; } echo roundDown(23);
based on VcdUV
Output for 4.3.0 - 7.2.0
20