3v4l.org

run code in 150+ 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, 16, 2)); var_dump(base_convert(100,10,2));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(64) string(7) "1100100" string(7) "1100100"