3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hexadecimal = '00000206'; $decimal = '000206'; echo base_convert($hexadecimal, 16, 2); print("\n"); echo base_convert($decimal, 10, 2);
based on JjRKg
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0rc3
1000000110 11001110