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, 10, 2)); var_dump(base_convert(40,16,2));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(64) string(7) "1000000" string(7) "1000000"