3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(sprintf("%f", (int) '1e309'));
based on KtGgO
Output for 7.1.0 - 7.2.0
string(8) "0.000000"
Output for 5.3.17 - 7.0.20
string(8) "1.000000"