3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "Alien"; echo str_pad($input, 10)."<br />"; echo str_pad($input, 10, "-=", STR_PAD_LEFT)."<br />"; echo str_pad($input, 10, "_", STR_PAD_BOTH)."<br />"; echo str_pad($input, 6 , "___"); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Alien <br />-=-=-Alien<br />__Alien___<br />Alien_