3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'credit/'.sprintf('%03d', substr(2, -3)).'/2/';
Output for 4.3.0 - 5.2.1, 5.2.7 - 7.1.0
credit/002/2/
Output for 5.2.2 - 5.2.6
credit/000/2/