3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0x40; // equivalent decimal value assigned to $a var_dump($a); // 64 (base 10) var_dump(base_convert($a, 10, 2)); var_dump(base_convert(40,16,2));
Output for 4.3.0 - 7.2.0
int(64) string(7) "1000000" string(7) "1000000"