3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = $timeRow['time'] / 1000; $days = floor($time / (24*60*60)); $hours = floor(($time - ($days*24*60*60)) / (60*60)); $minutes = floor(($time - ($days*24*60*60)-($hours*60*60)) / 60); $seconds = ($time - ($days*24*60*60) - ($hours*60*60) - ($minutes*60)) % 60; echo'Time Played: '.$days.' days '.$hours.' hours '.$minutes.' minutes '.$seconds.' seconds'
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/qGvU6 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/qGvU6 on line 10
Process exited with code 255.