3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "Alien"; echo str_pad($input, 10); echo str_pad($input, 10, "-=", STR_PAD_LEFT); echo str_pad($input, 10, "_", STR_PAD_BOTH); 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 -=-=-Alien__Alien___Alien_