3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set("precision", 20); var_dump(2.05*100); var_dump(intval(2.05*100)); var_dump(1/3);
based on DQm9S
Output for 5.4.38 - 5.6.28, 7.0.0 - 7.1.0
float(204.99999999999997158) int(204) float(0.33333333333333331483)
Output for hhvm-3.10.0 - 3.12.0
float(205) int(204) float(0.33333333333333)
Output for 4.3.5 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/d9jRv on line 2 float(205) int(204) float(0.33333333333333)
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/d9jRv on line 2 float(205) int(204) float(0.33333333333333)
Output for 4.3.0
float(204.99999999999997158) int(204) float(0.33333333333333330373)