3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($msec, $sec) = explode(' ', microtime()); $one = date('YmdHis', $sec).str_pad(round($msec*1000, 0), 3, '0') . "\n"; sleep(1); list($msec, $sec) = explode(' ', microtime()); $two = date('YmdHis', $sec).str_pad(round($msec*1000, 0), 3, '0'); echo $one == $two
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/4fnZF on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/4fnZF on line 7
Process exited with code 255.