3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = DateTime::createFromFormat('H:s:i', '03:00:00'); $date->add(new DateInterval('P1D')); echo "Format: $format; " . $date->format('Y-m-d H:i:s') . "\n";
based on JmpTm
Output for 5.3.20 - 5.4.45, 7.0.20 - 7.2.0
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2015-12-03 03:00:00
Output for 7.0.6
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-05-04 03:00:00
Output for 7.0.5
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-04 03:00:00
Output for 7.0.4
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-11 03:00:00
Output for 7.0.3
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-19 03:00:00
Output for 7.0.2
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-24 03:00:00
Output for 7.0.1
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-25 03:00:00
Output for 7.0.0
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-28 03:00:00
Output for 5.6.21
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-05-03 03:00:00
Output for 5.6.20
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-11 03:00:00
Output for 5.6.19
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-09 03:00:00
Output for 5.6.18
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-16 03:00:00
Output for 5.6.17
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-21 03:00:00
Output for 5.6.16
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-29 03:00:00
Output for 5.6.15
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-30 03:00:00
Output for 5.6.14
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-15 03:00:00
Output for 5.6.13
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-16 03:00:00
Output for 5.6.12
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-21 03:00:00
Output for 5.6.11
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-25 03:00:00
Output for 5.6.10
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-26 03:00:00
Output for 5.6.9
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-28 03:00:00
Output for 5.6.8
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-05-01 03:00:00
Output for 5.5.35
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-05-24 03:00:00
Output for 5.5.34
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-12 03:00:00
Output for 5.5.33
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-10 03:00:00
Output for 5.5.32
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-18 03:00:00
Output for 5.5.31
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-03-22 03:00:00
Output for 5.5.30
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-02 03:00:00
Output for 5.5.29
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-18 03:00:00
Output for 5.5.28
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-22 03:00:00
Output for 5.5.27
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-23 03:00:00
Output for 5.5.26
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-27 03:00:00
Output for 5.5.25
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-04-30 03:00:00
Output for 5.5.24
Notice: Undefined variable: format in /in/YWo4P on line 4 Format: ; 2016-05-25 03:00:00