3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo str_pad("4562", 5, "0", STR_PAD_LEFT); echo str_pad("14562", 5, "0", STR_PAD_LEFT); echo str_pad("714562", 5, "0", STR_PAD_LEFT);
based on P2HFN
Output for 4.3.0 - 7.2.0
0456214562714562