3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dec = 0.0002/0.05; $decimals = 3; echo floor($dec*pow(100,$decimals))/pow(100,$decimals);
based on mhuES
Output for 4.3.0 - 7.2.0
0.004