3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=702; $e = '0'; $i = 4; do { $e = bcpow(3,++$i); } while ($e < '27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274'); echo $i."\n"; echo $e."\n"; echo bcpow(2,$i-1)."\n"; echo bcsub('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', $e)."\n"; echo bcsub('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', bcpow(2,$i-1));
Output for 4.3.0 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.4, 7.0.6 - 7.1.0
211 47052721287394587764057094854672253553918218437190874778408030747195017485692977810906266281547645147 1645504557321206042154969182557350504982735865633579863348609024 -19869903002804135410454220141145628576345747500191279028738354469954251182157501865192444496295980873 27182818284590452353602874713526624975926966379678389707514707094683415798552740080080241921903055250
Output for 7.0.5
Fatal error: Uncaught Error: Call to undefined function bcpow() in /in/XAbk3:8 Stack trace: #0 {main} thrown in /in/XAbk3 on line 8
Process exited with code 255.
Output for 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Call to undefined function bcpow() in /in/XAbk3 on line 8
Process exited with code 255.