3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo str_pad(decbin(63), 7, '0', STRPAD_LEFT);
based on cYHB5
Output for 7.2.0
Warning: Use of undefined constant STRPAD_LEFT - assumed 'STRPAD_LEFT' (this will throw an Error in a future version of PHP) in /in/Onboo on line 3 Warning: str_pad() expects parameter 4 to be integer, string given in /in/Onboo on line 3
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant STRPAD_LEFT - assumed 'STRPAD_LEFT' in /in/Onboo on line 3 Warning: str_pad() expects parameter 4 to be integer, string given in /in/Onboo on line 3
Output for 5.3.20 - 5.6.28
Notice: Use of undefined constant STRPAD_LEFT - assumed 'STRPAD_LEFT' in /in/Onboo on line 3 Warning: str_pad() expects parameter 4 to be long, string given in /in/Onboo on line 3