3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=702; echo bcsqrt(bcsqrt('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', 10),10) do { $i--; $a = trim(bcdiv('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', $i, 10),'.0'); } while (strpos($a, '.') !== false && $i > 1); echo $a . "\n" . $i;
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'do' (T_DO), expecting ',' or ';' in /in/uBPTA on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DO, expecting ',' or ';' in /in/uBPTA on line 7
Process exited with code 255.