3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(str_pad("3",5, ""));
Output for 5.2.5 - 7.1.0
Warning: str_pad(): Padding string cannot be empty in /in/indJE on line 3 NULL
Output for 4.3.2 - 5.2.4
Warning: str_pad(): Padding string cannot be empty. in /in/indJE on line 3 NULL
Output for 4.3.0 - 4.3.1
Warning: str_pad() [http://www.php.net/function.str-pad]: Padding string cannot be empty. in /in/indJE on line 3 NULL