3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function roundTo10($value) { $value = ceil($value * 10) / 10; return $value; } echo roundTo10(39.20); echo roundTo10(39.99); echo roundTo10(39.51);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
39.24039.6