3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/London'); $date = new DateTime('+7 days 23:59:59'); echo date('Y-m-d H:i:s', $date->getTimestamp()); echo PHP_EOL; $date = new DateTime('today'); echo date('Y-m-d H:i:s', $date->getTimestamp())
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/AVijO on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/AVijO on line 11
Process exited with code 255.