3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = .000021; echo $var; echo \PHP_EOL; ini_set('precision', '200'); echo (string) $var;
based on mf1qF
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
2.1E-5 2.099999999999999883795211153003634763081208802759647369384765625E-5
Output for hhvm-3.12.14 - 3.17.3
2.1E-5 2.1E-5