3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = 10000000000000000.0; $s = (string)$f; var_dump($f, $s, $f == $s);
Output for 5.2.2 - 7.1.0
float(1.0E+16) string(7) "1.0E+16" bool(true)
Output for 4.3.3 - 5.2.1
float(1.0E+16) string(5) "1E+16" bool(true)
Output for 4.3.0 - 4.3.2
float(1.E+16) string(5) "1E+16" bool(true)