3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime(); echo (clone $d)->modify('+1 day')->format('c');
based on 0lNl4
Output for 7.0.20 - 7.2.0
2016-01-12T13:35:40+01:00
Output for 7.0.6
2016-05-22T13:37:09+02:00
Output for 7.0.5
2016-04-04T09:36:45+02:00
Output for 7.0.4
2016-03-11T21:43:21+01:00
Output for 7.0.3
2016-03-19T23:09:34+01:00
Output for 7.0.2
2016-03-24T05:22:50+01:00
Output for 7.0.1
2016-03-25T08:28:11+01:00
Output for 7.0.0
2016-03-28T10:21:24+02:00
Output for 5.4.11 - 5.6.28
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ',' or ';' in /in/ZlsV5 on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/ZlsV5 on line 4
Process exited with code 255.