3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sMsgId = date('YmdHis').str_pad('13913938335652', 4, '0', STR_PAD_LEFT); echo '<pre>'; var_dump($sMsgId); echo '</pre>';
Output for 4.3.0 - 7.1.0
<pre>string(28) "2014020303182713913938335652" </pre>