3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set("precision", "32"); $f = 1234567890123456789.0; $s = (string)$f; var_dump($f, $s, $f == $s);
Output for 5.4.38 - 7.1.0
float(1234567890123456768) string(19) "1234567890123456768" bool(true)
Output for 4.3.5 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/NVFlF on line 3 float(1.2345678901235E+18) string(19) "1.2345678901235E+18" bool(false)
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/NVFlF on line 3 float(1.2345678901235E+18) string(19) "1.2345678901235E+18" bool(false)
Output for 4.3.0
float(1234567890123456700) string(19) "1234567890123456768" bool(true)