3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y') . str_pad(03, 5, 0, STR_PAD_LEFT);echo "<br>"; echo date('Y') . str_pad(13, 5, 0, STR_PAD_LEFT);echo "<br>"; echo date('Y') . str_pad(133, 5, 0, STR_PAD_LEFT);echo "<br>"; echo date('Y') . str_pad(1223, 5, 0, STR_PAD_LEFT);echo "<br>"; echo date('Y') . str_pad(22213, 5, 0, STR_PAD_LEFT);echo "<br>";
based on sc014
Output for 5.6.28, 7.0.14 - 7.1.0
201600003<br>201600013<br>201600133<br>201601223<br>201622213<br>
Output for 4.3.0 - 5.6.23, 7.0.0 - 7.0.8
201400003<br>201400013<br>201400133<br>201401223<br>201422213<br>