3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function gmp_base_convert($numStr,$base){ $gnum = gmp_init($numStr); return gmp_strval($gnum,$base); } echo gmp_base_convert("0x40",8);
based on kfq7Y
Output for 7.0.6, 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function gmp_init() in /in/ajOqN:5 Stack trace: #0 /in/ajOqN(9): gmp_base_convert('0x40', 8) #1 {main} thrown in /in/ajOqN on line 5
Process exited with code 255.
Output for 5.4.12 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.6
100
Output for 5.3.22 - 5.3.29, 5.5.35, 5.6.21
Fatal error: Call to undefined function gmp_init() in /in/ajOqN on line 5
Process exited with code 255.