3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set( "precision", 14 ); ini_set( "serialize_precision", -1 ); $r = ["e" => round((14984 / 83112), 4)*100]; var_dump($r); echo json_encode($r);
Output for 7.1.0 - 7.3.0beta1
array(1) { ["e"]=> float(18.03) } {"e":18.029999999999998}
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.0.27
array(1) { ["e"]=> float(18.03) } {"e":18.03}