3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 1; for ($i = 2; $i < 100; $i++) { $x /= $i; } ini_set("precision", 20); var_dump($x, (string) $x, (float) (string) $str);
Output for 5.4.38 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881254668584E-156) string(26) "1.0715102881254668584E-156" float(0)
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881255E-156) string(20) "1.0715102881255E-156" float(0)
Output for 5.0.4 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/MSYJ8 on line 8 Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881255E-156) string(20) "1.0715102881255E-156" float(0)
Output for 4.3.5 - 5.0.3
Warning: ini_set() has been disabled for security reasons in /in/MSYJ8 on line 8 Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881255E-156) string(20) "1.0715102881255E-156" float(0)
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/MSYJ8 on line 8 Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881255E-156) string(20) "1.0715102881255E-156" float(0)
Output for 4.3.0
Notice: Undefined variable: str in /in/MSYJ8 on line 10 float(1.0715102881254683354E-156) string(26) "1.0715102881254668584E-156" float(0)