3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (24*60*60*60 < $diff) { // 60 days return 604800000; // a week in milliseconds } elseif (24*60*60*60 < $diff) { // 60 days return 604800000; // a week in milliseconds } elseif (24*60*60 < $diff) { // 24 hours return 'DAY'; } elseif (60*60 < $diff) { // 60 minutes return 'HOUR'; } elseif (2*60 < $diff) { // 2 minutes return 'MINUTE'; } return 'second'
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file in /in/vEEDV on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/vEEDV on line 14
Process exited with code 255.