3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump({new DateTime('now')}); var_dump({new DateTime('now +1 weekday')});
based on Z6QVK
Output for 5.5.24 - 7.0.0
Parse error: syntax error, unexpected '{' in /in/WXpvZ on line 3
Process exited with code 255.
Output for 5.3.20 - 5.4.45
Parse error: syntax error, unexpected '{', expecting ')' in /in/WXpvZ on line 3
Process exited with code 255.