3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((float) "1", (float) "1.2", (float) "1.", (float) ".2", (float) "1e3", (float) "1.2e3", (float) "1.e3", (float) ".2e3");
Output for 4.3.0 - 7.1.0
float(1) float(1.2) float(1) float(0.2) float(1000) float(1200) float(1000) float(200)