3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y') . str_pad(03, 6, 0, STR_PAD_LEFT);echo "</n>"; echo date('Y') . str_pad(13, 6, 0, STR_PAD_LEFT);echo "</n>"; echo date('Y') . str_pad(133, 6, 0, STR_PAD_LEFT);echo "</n>"; echo date('Y') . str_pad(1223, 6, 0, STR_PAD_LEFT);echo "</n>"; echo date('Y') . str_pad(22213, 6, 0, STR_PAD_LEFT);echo "</n>"; echo date('Y') . str_pad(232213, 6, 0, STR_PAD_LEFT);
based on nAROW
Output for 4.3.0 - 7.1.0
2014000003</n>2014000013</n>2014000133</n>2014001223</n>2014022213</n>2014232213