3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = ("579.17" * 100); var_dump($n, (int)$n); ini_set("precision", 20); $n = ("579.17" * 100); var_dump($n, (int)$n);
Output for 4.3.0, 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
float(57917) int(57916) float(57916.999999999992724) int(57916)
Output for hhvm-3.10.0 - 3.12.0
float(57917) int(57916) float(57917) int(57916)
Output for 4.3.5 - 5.4.32
float(57917) int(57916) Warning: ini_set() has been disabled for security reasons in /in/BjoM1 on line 5 float(57917) int(57916)
Output for 4.3.1 - 4.3.4
float(57917) int(57916) Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/BjoM1 on line 5 float(57917) int(57916)