3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ts1 = strtotime(date('Y-m-d H:i:s')); $ts2 = strtotime('2014-05-06 12:20:06'); $seconds_diff = $ts1 - $ts2; $iNbDaysNotedAfterBuyingProject = ($seconds_diff/3600/ 24); echo round($iNbDaysNotedAfterBuyingProject, 2)
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/ekgEm on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/ekgEm on line 9
Process exited with code 255.