3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new DateTime))->modify('+ ' . $offset . ' days')->format('Y-m-d');
Output for 7.0.0 - 7.0.15, 7.1.0 - 7.1.1
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/bNucC on line 3
Process exited with code 255.

preferences:
169.82 ms | 1395 KiB | 25 Q