3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (range(1, 100) as $id) { echo str_pad(10, "TOM-{$id}", STR_PAD_RIGHT); }
based on QX7W1
Output for 7.0.0 - 7.2.0
Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be integer, string given in /in/o0HaP on line 6
Output for 5.3.20 - 5.6.28
Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6 Warning: str_pad() expects parameter 2 to be long, string given in /in/o0HaP on line 6