3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dec = 5; $input = decbin($dec); echo str_pad($input, 24, "0", STR_PAD_LEFT);
based on orSlZ
Output for 5.5.0 - 7.3.0rc4
000000000000000000000101