3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c5 = 215601; $c1 = 6; $p = str_pad($c1, 3, '0', STR_PAD_LEFT) . str_pad($c5, 10, '0', STR_PAD_LEFT); $ctr = 22; $ctro = '0' . substr($p,2,2) . substr($p,7); echo $p; echo $ctro;
based on QguHC
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
0060000215601060215601