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.99); echo roundTo10(51.01);
based on iIrGB
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
20.610051.1