3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prefix = 109; echo str_pad($prefix, 5, 0, PAD_STR_LEFT);
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant PAD_STR_LEFT - assumed 'PAD_STR_LEFT' in /in/LmkcB on line 3 Warning: str_pad() expects parameter 4 to be integer, string given in /in/LmkcB on line 3
Output for 5.3.0 - 5.6.28
Notice: Use of undefined constant PAD_STR_LEFT - assumed 'PAD_STR_LEFT' in /in/LmkcB on line 3 Warning: str_pad() expects parameter 4 to be long, string given in /in/LmkcB on line 3
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant PAD_STR_LEFT - assumed 'PAD_STR_LEFT' in /in/LmkcB on line 3 00109