3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sMicrotime = microtime(true); $sMsgId = preg_replace('/^.+\./', '', $sMicrotime); $sDatetime = date('YmdHis').str_pad(preg_replace('/^.+\./', '', $sMicrotime, 4, '0', STR_PAD_LEFT); echo '<pre>'; var_dump($sMicrotime); var_dump($sMsgId); var_dump($sDatetime); echo '</pre>';
Output for 5.3.0 - 5.4.24
Fatal error: Only variables can be passed by reference in /in/LNlpo on line 4
Process exited with code 255.