3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "AHD"; echo str_pad($input, 8, "0", STR_PAD_RIGHT);
Output for 4.3.0 - 7.1.0
AHD00000