3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(gmp_popcount(gmp_init("4578454"))); var_dump(gmp_testbit(gmp_init("4578454")));
based on vorkf
Output for 7.0.6, 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function gmp_popcount() in /in/SeW2q:3 Stack trace: #0 {main} thrown in /in/SeW2q on line 3
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
int(12) Warning: gmp_testbit() expects exactly 2 parameters, 1 given in /in/SeW2q on line 4 NULL
Output for 5.3.22 - 5.3.29, 5.5.35, 5.6.21
Fatal error: Call to undefined function gmp_popcount() in /in/SeW2q on line 3
Process exited with code 255.