3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTimeImmutable())->modify('next monday')->format('Y-m-d H:i:s');
based on iS41V
Output for 5.5.0 - 7.3.0
2015-10-19 00:00:00
Output for 5.4.0 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/l1LWn on line 3
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/l1LWn on line 3
Process exited with code 255.