3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $first = gmp_init('2'); $second = gmp_pow($first, '8589934592'); //Number of bits in 1GB echo strlen(gmp_strval($second));
based on QJoDT
Output for 5.6.3 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
GNU MP: Cannot reallocate memory (old_size=8 new_size=1073741864)
Process exited with code 134.
Output for 5.6.0 - 5.6.2
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1073741864 bytes) in /in/YIAMK on line 4
Process exited with code 255.