3v4l.org

run code in 200+ PHP versions simultaneously
<?php $s = sprintf('%03d', 12); echo $s, PHP_EOL;
Output for 5.6.30 - 7.2.9
012