3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=1000; do { $a = bcdiv('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', --$i, 2); } while (strpos($a, '.') >= 0 && $i > 1); echo $i;
Output for 4.3.0 - 5.4.45, 5.6.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
1
Output for 5.5.0 - 5.5.38
Fatal error: Call to undefined function bcdiv() in /in/OuWdI on line 5
Process exited with code 255.