3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function roundTo10($value) { $value = ceil($value * 10) / 10; return $value; } echo roundTo10(20.54); echo roundTo10(99); echo roundTo10(51);
based on iDgHh
Output for 4.3.0 - 7.1.0
20.69951